{"id":"CVE-2026-54498","aliases":["GHSA-97jw-64cj-jc58"],"url":"https://o3.security/vulnerability/CVE-2026-54498","summary":"view_component: around_render HTML-Safety Bypass","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#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.","published":"2026-07-17T20:46:52.176Z","modified":"2026-08-12T03:51:18.023878103Z","cvss":{"score":8.7,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"},"epss":{"score":0.00312,"percentile":0.23578,"asOf":"2026-09-01"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"view_component","fixedVersion":"4.12.0"}],"fix":{"url":"https://github.com/ViewComponent/view_component/commit/48e5fd2d602344c7d33019fbc5c8b087e315bb78","label":"ViewComponent/view_component@48e5fd2"},"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-54498.json"},{"type":"ADVISORY","url":"https://github.com/ViewComponent/view_component/security/advisories/GHSA-97jw-64cj-jc58"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54498"},{"type":"FIX","url":"https://github.com/ViewComponent/view_component/commit/48e5fd2d602344c7d33019fbc5c8b087e315bb78"},{"type":"FIX","url":"https://github.com/ViewComponent/view_component/commit/6796b2e89d0bd7b9d7d763a86275e5334731dd61"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:18.023878103Z"}}