{"id":"CVE-2026-54497","published":"2026-07-17T20:45:28Z","modified":"2026-07-20T13:46:20Z","title":"view_component: Reused Component Instances Retain Stale Render Context","vendor":"ViewComponent","product":"view_component","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0033,"percentile":0.18583,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"},{"id":"CWE-488","name":"Exposure of Data Element to Wrong Session"},{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"references":[{"url":"https://github.com/ViewComponent/view_component/security/advisories/GHSA-9h85-g7w3-rh49","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ViewComponent/view_component/commit/6796b2e89d0bd7b9d7d763a86275e5334731dd61","tags":["x_refsource_MISC"]},{"url":"https://github.com/ViewComponent/view_component/releases/tag/v4.12.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":3.72},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"viewcomponent","affectedVersions":[{"vendor":"ViewComponent","product":"view_component","versions":[">= 4.0.0, < 4.12.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-20T13:46:16.399609Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"view_component","vulnerableRanges":[">=4.0.0, <4.12.0"],"patched":["4.12.0"],"from":["GHSA-9h85-g7w3-rh49"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-45332","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-viewcomponent-view-component-cve-2024-21636","parents":[{"from":"CVE-2024-21636","to":"CVE-2026-54497","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/view_component/base.rb"],"commits":["https://github.com/ViewComponent/view_component/commit/0d26944a8d2730ea40e60eae23d70684483e5017","https://github.com/ViewComponent/view_component/commit/c43d8bafa7117cbce479669a423ab266de150697","https://github.com/ViewComponent/view_component/commit/6796b2e89d0bd7b9d7d763a86275e5334731dd61","https://github.com/ViewComponent/view_component/commit/7b05073be28037f7d5ff141e9dd42f3cf47956a4"],"basis":"shared function","functions":["render_in"]}]}],"packageHistory":[{"cve":"CVE-2024-21636","published":"2024-01-04","fixed":"3.9.0","kev":false},{"cve":"CVE-2026-44836","published":"2026-05-26","fixed":"4.9.0","kev":false},{"cve":"CVE-2026-44837","published":"2026-05-26","fixed":"4.9.0","kev":false,"link":{"from":"CVE-2026-44837","to":"CVE-2026-54497","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:view_component","fromFixed":"4.9.0","toFixed":"4.12.0","daysApart":52}]}},{"cve":"CVE-2026-54497","published":"2026-07-17","fixed":"4.12.0","kev":false},{"cve":"CVE-2026-54498","published":"2026-07-17","fixed":"4.12.0","kev":false}],"package":"RubyGems:view_component"}}