Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-9h85-g7w3-rh49: ViewComponent: Reused Component Instances Retain Stale Render Context

0
Medium
Published: 07/15/2026 (07/15/2026, 22:51:33 UTC)
Source: GCVE Database
Product: view_component

Description

ViewComponent versions 4.0.0 through before 4.12.0 have a vulnerability where component instances retain stale render context across multiple render calls. This can cause components to render with outdated authorization, request, and helper state, potentially exposing privileged UI to unauthorized users, leaking request data, and mixing context in concurrent rendering scenarios. The root cause is that component instances are mutable and memoize request-scoped data without resetting between renders. There is no runtime enforcement preventing reuse of component instances across different requests or users. A proof of concept demonstrates cross-user authorization impact, stale Host headers in URLs, slot child context leakage, and cross-thread context mixing. No official patch or fix is currently documented.

CVSS v3.1

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected software

RubyGemsghsa
view_component
Affected versions
>=4.0.0 <4.12.0

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

AILast updated: 07/16/2026, 10:48:49 UTC

Technical Analysis

The vulnerability in ViewComponent (RubyGems) arises because instances of ViewComponent::Base retain multiple render-scoped objects such as helpers, controller, request, view_flow, and slot child context across calls to render_in. When the same component instance is reused across requests, users, tenants, or threads, stale context from earlier renders can be used in later renders. This leads to authorization-aware components potentially rendering privileged UI for lower-privileged users, generating links with stale Host headers, leaking slot/helper state, and mixing request context under concurrent rendering. The root cause is that component instances are mutable and memoize request-scoped values using ||= or store them for later rendering without a full reset at the start of each render. The runtime does not enforce the invariant that component instances should not be shared between renders. The vulnerability affects versions >=4.0.0 and <4.12.0. The CVSS vector is AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N with a moderate severity rating. No patch or official fix is currently available.

Potential Impact

This vulnerability can lead to cross-user authorization issues where privileged UI elements are rendered for unauthorized users due to stale authorization context. It can also cause generation of URLs with stale Host headers, leakage of slot and helper state, and mixing of request context in concurrent rendering scenarios. These impacts can compromise confidentiality and integrity of user interface rendering and data exposure in affected applications.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid reusing component instances across requests, users, or threads. Ensure that component instances are not shared and are freshly instantiated per render to prevent stale context retention. Follow any updates from the maintainers regarding enforcement of instance reuse invariants or official patches.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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/16/2026, 10:48:49 UTC

Last updated: 07/17/2026, 03:38:41 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses