CVE-2024-21636 is a Cross-Site Scripting (XSS) vulnerability affecting the view_component gem in Ruby on Rails, specifically versions prior to 3.9.0 and 2.83.0. It arises when components defining a #call method or using #output_postamble are rendered directly from a controller, as their return values are not sanitized and can include user-defined content. Rated as MEDIUM severity (CVSS 6.1), this vulnerability requires user interaction (UI:R) and could lead to limited confidentiality and integrity impacts (C:L/I:L). There is currently no evidence of active exploitation, public exploit code (Metasploit, Nuclei, ExploitDB), or significant community discussion or media coverage.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 2.83.0CPE matchmatch criteria | cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:* | ||
>= 3.0.0, < 3.9.0CPE matchmatch criteria | cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.1 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.