CVE-2026-54497 json
view_component: Reused Component Instances Retain Stale Render Context
published 2026-07-15 3 mo ago modified 2026-10-24 15 d ago also EUVD-2026-45332 , GHSA-9h85-g7w3-rh49
- cvss
- 6.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 26%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems view_component 4.12.0
- viewcomponent view_component 4.12.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 3 mo ago
Exploit prediction
0.33% chance of exploitation in the next 30 days, higher than 26% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/ViewComponent/view_component/security/advisories/GHSA-9h85-g7w3-rh49 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | view_component | >=4.0.0, <4.12.0 |
4.12.0 |
Affected products
- ViewComponent view_component
Classification
References
-
github.com
/ViewComponent/view_component/commit/6796b2e89d0bd7b9d7d763a86275e5334731dd61
patch
-
github.com
/ViewComponent/view_component/commit/7b05073be28037f7d5ff141e9dd42f3cf47956a4
web
-
github.com
/ViewComponent/view_component/security/advisories/GHSA-9h85-g7w3-rh49
exploit, web, mitigation, vendor-advisory
-
github.com
/ViewComponent/view_component/releases/tag/v4.12.0
web, product, release-notes
-
github.com
/ViewComponent/view_component
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/view_component/CVE-2026-54497.yml
web
-
cve.org
/CVERecord/SearchResults?query=CVE-2026-54497
web
Sources
- CVE List CVE-2026-54497
- GitHub Advisory GHSA-9h85-g7w3-rh49
- NVD CVE-2026-54497
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.