CVE-2024-21636 — Vulnerability in view_component — CVE Details
view_component Cross-site Scripting vulnerability
Summary
Advisory Timeline
- First published January 4, 2024 (1012 days ago).
- Last revised September 10, 2026 — 979 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install view_component -v 3.9.0
gem install view_component -v 2.83.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| view_component | rubygems | 3.0.0, 3.1.0, 3.2.0, 3.3.0 (+5 more) | 3.9.0 |
| view_component | rubygems | 1.16.0, 1.17.0, 2.0.0, 2.1.0 (+105 more) | 2.83.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/ViewComponent/view_component/security/advisories/GHSA-wf2x-8w6j-qw37WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21636ADVISORY
- https://github.com/ViewComponent/view_component/pull/1950WEB
- https://github.com/ViewComponent/view_component/pull/1962WEB
- https://github.com/ViewComponent/view_component/commit/0d26944a8d2730ea40e60eae23d70684483e5017WEB
- https://github.com/ViewComponent/view_component/commit/c43d8bafa7117cbce479669a423ab266de150697WEB
- https://github.com/ViewComponent/view_componentPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/view_component/CVE-2024-21636.ymlWEB
Frequently Asked Questions
- What is CVE-2024-21636?
- view_component Cross-site Scripting vulnerability This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
- How do I check if my project is affected by CVE-2024-21636?
- CVE-2024-21636 affects view_component. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-21636 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2026-54498HIGH
ViewComponent: around_render HTML-Safety Bypass
- CVE-2022-24722HIGH
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in view_component
- CVE-2026-107715MEDIUM
Mechanize sends credential headers to another host after an HTTP redirect
- CVE-2026-44836MEDIUM
view_component: Preview Route Can Dispatch Inherited Helper Methods
- CVE-2026-54497MEDIUM
ViewComponent: Reused Component Instances Retain Stale Render Context
- CVE-2026-107399MEDIUM
Mechanize sends credential headers to another origin after a meta refresh
- CVE-2026-44837MEDIUM
view_component: System Test Entry Point Path Check Allows Sibling Directory Escape
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies