viewcomponent の Ruby 用 view component におけるクロスサイトスクリプティングの脆弱性
タイトル viewcomponent の Ruby 用 view component におけるクロスサイトスクリプティングの脆弱性
概要

viewcomponent の Ruby 用 view component には、クロスサイトスクリプティングの脆弱性が存在します。

想定される影響 情報を取得される、および情報を改ざんされる可能性があります。
対策

ベンダアドバイザリまたはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。

公表日 2024年1月4日0:00
登録日 2024年2月2日16:29
最終更新日 2024年2月2日16:29
CVSS3.0 : 警告
スコア 6.1
ベクター CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
影響を受けるシステム
viewcomponent
view component 2.83.0 未満
view component 3.0.0 以上 3.9.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
変更履歴
No 変更内容 変更日
1 [2024年02月01日]   掲載 2024年2月1日11:30

NVD脆弱性情報
CVE-2024-21636
概要

view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. Versions prior to 3.9.0 and 2.83.0 have a cross-site scripting vulnerability that has the potential to impact anyone rendering a component directly from a controller with the view_component gem. Note that only components that define a `#call` method (i.e. instead of using a sidecar template) are affected. The return value of the `#call` method is not sanitized and can include user-defined content. In addition, the return value of the `#output_postamble` methodis not sanitized, which can also lead to cross-site scripting issues. Versions 3.9.0 and 2.83.0 have been released and fully mitigate both the `#call` and the `#output_postamble` vulnerabilities. As a workaround, sanitize the return value of `#call`.

公表日 2024年1月5日5:15
登録日 2024年1月5日10:00
最終更新日 2024年1月11日0:45
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:* 3.0.0 3.9.0
cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:* 2.83.0
関連情報、対策とツール
共通脆弱性一覧