{"cve":"CVE-2026-54497","nvd":{"published":"2026-07-17T21:17:08.907","modified":"2026-10-24T20:10:00.137","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8},"cwes":["CWE-362","CWE-488","CWE-668"],"references":["https://github.com/ViewComponent/view_component/commit/6796b2e89d0bd7b9d7d763a86275e5334731dd61","https://github.com/ViewComponent/view_component/releases/tag/v4.12.0","https://github.com/ViewComponent/view_component/security/advisories/GHSA-9h85-g7w3-rh49","https://github.com/ViewComponent/view_component/security/advisories/GHSA-9h85-g7w3-rh49"],"products":["viewcomponent:view_component"],"source":"nvd","synced_at":"2026-10-25T17:50:08.599881581+00:00"},"epss":{"cve":"CVE-2026-54497","score":0.0033,"percentile":0.25887,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-9h85-g7w3-rh49","url":"https://osv.dev/vulnerability/GHSA-9h85-g7w3-rh49","summary":"ViewComponent: Reused Component Instances Retain Stale Render Context","modified":"2026-07-15T23:11:42.851858Z","packages":[{"ecosystem":"RubyGems","name":"view_component","purl":"pkg:gem/view_component","ranges":[">=4.0.0 <4.12.0"],"fixed":["4.12.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}