CVE-2026-54497
published medium CVSS 3.1 · 6.8view_component: Reused Component Instances Retain Stale Render Context
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ViewComponent | — | view_component>= 4.0.0, < 4.12.0 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ViewComponent | view_component | >= 4.0.0, < 4.12.0 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-362 CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
- CWE-488 CWE-488: Exposure of Data Element to Wrong Session
- CWE-668 CWE-668: Exposure of Resource to Wrong Sphere
References
3Provider assertions
2GitHub_M · cna
view_component: Reused Component Instances Retain Stale Render Context
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 092dbac75b3a6116092eaa48d7bf81169194be44517ad59929d94b95d26aaabe
- Ingested
- 23 Sep 2026, 09:20:18 UTC
- Source record
- Official CVE record