{"id":"CVE-2026-54497","summary":"view_component: Reused Component Instances Retain Stale Render Context","details":"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.","aliases":["GHSA-9h85-g7w3-rh49"],"modified":"2026-07-22T05:29:44.795578436Z","published":"2026-07-17T20:45:28.338Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-362","CWE-488","CWE-668"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54497.json"},"references":[{"type":"WEB","url":"https://github.com/ViewComponent/view_component/releases/tag/v4.12.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54497.json"},{"type":"ADVISORY","url":"https://github.com/ViewComponent/view_component/security/advisories/GHSA-9h85-g7w3-rh49"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54497"},{"type":"FIX","url":"https://github.com/ViewComponent/view_component/commit/6796b2e89d0bd7b9d7d763a86275e5334731dd61"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/viewcomponent/view_component","events":[{"introduced":"bde6dc9e10ff43e3526ecdfe4007de98ef1d521e"},{"fixed":"6796b2e89d0bd7b9d7d763a86275e5334731dd61"},{"fixed":"4cbdbaaf8fb37299926a5dc45be2ffc03e436fc1"}],"database_specific":{"extracted_events":[{"introduced":"4.0.0"},{"fixed":"4.12.0"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v4.11.0","v4.10.0","v4.9.0","v4.8.0","v4.7.0","v4.6.0","v4.5.0","v4.4.0","v4.3.0","v4.2.0","v4.1.1","v4.1.0","v4.0.2","v4.0.1","v4.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54497.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"}]}