CVE-2026-54497
Description
view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. From 4.0.0 until 4.12.0, ViewComponent::Base instances retain render-scoped objects across calls to render_in; if the same component, collection, or spacer component instance is reused across requests, users, tenants, or threads, later renders can use stale helpers, controller, request, view_flow, format/variant details, and slot child context from an earlier render. This can cause authorization-aware components to render privileged UI for a lower-privileged user, generate links using a stale Host header, leak slot/helper state, and mix request context under concurrent rendering. This issue is fixed in version 4.12.0.
Weakness
- CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization
- CWE-488: Exposure of Data Element to Wrong Session
- CWE-668: Exposure of Resource to Wrong Sphere
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-07-20 |
Timeline
- 2026-07-15GitHub advisory published (GHSA-9h85-g7w3-rh49)2 days before publication
- 2026-07-17Published by the CNA20:45 UTC
- 2026-07-20CISA SSVC decision recorded3 days after publication
Exploit and advisory records
GitHub advisory GHSA-9h85-g7w3-rh49, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| RubyGems view_component | from 4.0.0 before 4.12.0 | 4.12.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| viewcomponent view_component | from 4.0.0 before 4.12.0fixed in 4.12.0 | 4.12.0 |
References
- https://github.com/ViewComponent/view_component/commit/6796b2e89d0bd7b9d7d763a86275e5334731dd61
- https://github.com/ViewComponent/view_component/security/advisories/GHSA-9h85-g7w3-rh49
- https://github.com/ViewComponent/view_component/releases/tag/v4.12.0
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-54497'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-54497'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-54497'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-54497'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).