# CVE-2026-54497: view\_component: Reused Component Instances Retain Stale Render Context

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-17 · Modified: 2026-07-20
- Aliases: GHSA-9h85-g7w3-rh49
- Record: https://cvemate.com/vulnerability/CVE-2026-54497 · JSON: https://cvemate.com/vulnerability/CVE-2026-54497/json

## Description

```text
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.
```

## Signals

- CVSS: 6.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.249%, percentile 17.299%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- RubyGems view\_component (RubyGems): ≥ 4.0.0, \< 4.12.0
- viewcomponent view\_component: ≥ 4.0.0, \< 4.12.0

## References

- <https://github.com/ViewComponent/view_component/security/advisories/GHSA-9h85-g7w3-rh49>
- <https://github.com/ViewComponent/view_component/commit/6796b2e89d0bd7b9d7d763a86275e5334731dd61>
- <https://github.com/ViewComponent/view_component/releases/tag/v4.12.0>
- <https://github.com/ViewComponent/view_component/commit/7b05073be28037f7d5ff141e9dd42f3cf47956a4>
- <https://github.com/ViewComponent/view_component>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/view_component/CVE-2026-54497.yml>
- <https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54497>

---

Data as of 2026-12-05T10:27:35.139Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
