{"id":"CVE-2026-54498","published":"2026-07-17T20:46:52Z","modified":"2026-07-20T17:38:56Z","title":"view_component: around_render HTML-Safety Bypass","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#around_render can return HTML-unsafe strings that bypass the escaping behavior applied to normal #call return values. This creates an XSS risk when downstream applications use around_render to wrap, replace, instrument, or conditionally return content that includes user-controlled data, and ViewComponent::Collection#render_in can amplify the issue by joining per-item results and marking the entire output html_safe, converting raw unsafe output into an ActiveSupport::SafeBuffer. This issue is fixed in version 4.12.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00453,"percentile":0.31281,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/ViewComponent/view_component/security/advisories/GHSA-97jw-64cj-jc58","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ViewComponent/view_component/commit/48e5fd2d602344c7d33019fbc5c8b087e315bb78","tags":["x_refsource_MISC"]},{"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":12.3,"factors":[{"name":"EPSS percentile","points":6.26},{"name":"CVSS severity","points":6.09}]},"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-20T17:38:49.299715Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"view_component","vulnerableRanges":[">=4.0.0, <4.12.0"],"patched":["4.12.0"],"from":["GHSA-97jw-64cj-jc58"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-45333","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-viewcomponent-view-component-cve-2024-21636","parents":[{"from":"CVE-2024-21636","to":"CVE-2026-54498","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/48e5fd2d602344c7d33019fbc5c8b087e315bb78"],"basis":"shared function","functions":["render_in"]}]}],"packageHistory":[{"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-54498","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"}}