CVE-2026-54497

Source
https://cve.org/CVERecord?id=CVE-2026-54497
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54497.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-54497
Aliases
Published
2026-07-17T20:45:28.338Z
Modified
2026-07-22T05:29:44.795578436Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
view_component: Reused Component Instances Retain Stale Render Context
Details

viewcomponent 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 renderin; 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54497.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-362",
        "CWE-488",
        "CWE-668"
    ]
}
References

Affected packages

Git / github.com/viewcomponent/view_component

Affected ranges

Type
GIT
Repo
https://github.com/viewcomponent/view_component
Events
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "4.0.0"
        },
        {
            "fixed": "4.12.0"
        }
    ]
}

Affected versions

v4.*
v4.0.0
v4.0.1
v4.0.2
v4.1.0
v4.1.1
v4.10.0
v4.11.0
v4.2.0
v4.3.0
v4.4.0
v4.5.0
v4.6.0
v4.7.0
v4.8.0
v4.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54497.json"