CVE-2026-54497: CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') in ViewComponent view_component
A race condition vulnerability exists in the view_component Ruby on Rails framework versions 4.0.0 up to but not including 4.12.0. The issue arises because ViewComponent::Base instances retain render-scoped objects across calls to render_in, causing stale context to be reused across requests or threads. This can lead to unauthorized UI rendering, leaking of request context, and mixing of state between users. The vulnerability is fixed in version 4.12.0.
AI Analysis
Technical Summary
The view_component framework for Ruby on Rails versions >=4.0.0 and <4.12.0 suffers from a concurrency issue where render-scoped objects are improperly retained across multiple render_in calls. This improper synchronization leads to stale helpers, controller, request, view_flow, format/variant details, and slot child context being reused across requests, users, tenants, or threads. As a result, authorization-aware components may render privileged UI to lower-privileged users, generate links with stale Host headers, leak slot/helper state, and mix request contexts during concurrent rendering. The vulnerability is classified under CWE-362 (Race Condition) and related CWEs. It has a CVSS 3.1 score of 6.8 (medium severity). The issue is resolved in version 4.12.0.
Potential Impact
Exploiting this vulnerability can cause authorization bypass in UI rendering, leading to privileged information being shown to unauthorized users. It can also cause leakage of request-specific context and stale data usage, potentially exposing sensitive information or causing incorrect application behavior under concurrent requests. There is no indication of availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade to view_component version 4.12.0 or later, where this race condition vulnerability is fixed. No other mitigations are indicated or recommended by the vendor. Patch status is confirmed fixed in 4.12.0.
CVE-2026-54497: CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') in ViewComponent view_component
Description
A race condition vulnerability exists in the view_component Ruby on Rails framework versions 4.0.0 up to but not including 4.12.0. The issue arises because ViewComponent::Base instances retain render-scoped objects across calls to render_in, causing stale context to be reused across requests or threads. This can lead to unauthorized UI rendering, leaking of request context, and mixing of state between users. The vulnerability is fixed in version 4.12.0.
CVSS v3.1
Score 6.8medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The view_component framework for Ruby on Rails versions >=4.0.0 and <4.12.0 suffers from a concurrency issue where render-scoped objects are improperly retained across multiple render_in calls. This improper synchronization leads to stale helpers, controller, request, view_flow, format/variant details, and slot child context being reused across requests, users, tenants, or threads. As a result, authorization-aware components may render privileged UI to lower-privileged users, generate links with stale Host headers, leak slot/helper state, and mix request contexts during concurrent rendering. The vulnerability is classified under CWE-362 (Race Condition) and related CWEs. It has a CVSS 3.1 score of 6.8 (medium severity). The issue is resolved in version 4.12.0.
Potential Impact
Exploiting this vulnerability can cause authorization bypass in UI rendering, leading to privileged information being shown to unauthorized users. It can also cause leakage of request-specific context and stale data usage, potentially exposing sensitive information or causing incorrect application behavior under concurrent requests. There is no indication of availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade to view_component version 4.12.0 or later, where this race condition vulnerability is fixed. No other mitigations are indicated or recommended by the vendor. Patch status is confirmed fixed in 4.12.0.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-9h85-g7w3-rh49
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-54497"]
- Ecosystems
- ["RubyGems"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a58b40468715ace43d67069
Added to database: 07/16/2026, 10:35:48 UTC
Last enriched: 07/23/2026, 21:01:09 UTC
Last updated: 09/01/2026, 10:52:09 UTC
Views: 150
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.