# CVE-2026-54497: view_component: Reused Component Instances Retain Stale Render Context

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-15T22:51:33.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-9h85-g7w3-rh49
- Weaknesses: CWE-362, CWE-488, CWE-668
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ViewComponent view_component: >= 4.0.0, < 4.12.0; from 4.0.0 before 4.12.0
- view_component (RubyGems): from 4.0.0 before 4.12.0

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/ViewComponent/view_component/security/advisories/GHSA-9h85-g7w3-rh49> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/ViewComponent/view_component/commit/6796b2e89d0bd7b9d7d763a86275e5334731dd61> (patch)
- <https://github.com/ViewComponent/view_component/releases/tag/v4.12.0> (product, release-notes, web)
- <https://github.com/ViewComponent/view_component/commit/7b05073be28037f7d5ff141e9dd42f3cf47956a4> (web)
- <https://github.com/ViewComponent/view_component> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/view_component/CVE-2026-54497.yml> (web)
- <https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54497> (web)

## Sources

- CVE List: [CVE-2026-54497](https://www.cve.org/CVERecord?id=CVE-2026-54497), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-9h85-g7w3-rh49](https://github.com/advisories/GHSA-9h85-g7w3-rh49), CC-BY-4.0, modified 2026-07-15
- NVD: [CVE-2026-54497](https://nvd.nist.gov/vuln/detail/CVE-2026-54497), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-54497 · Whole record: https://cve.day/CVE-2026-54497.json · Rebuilt by cve.day 2026-11-25T22:59:28.583Z
