{"cve":"CVE-2026-54498","nvd":{"published":"2026-07-17T21:17:09.043","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#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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7},"cwes":["CWE-79"],"references":["https://github.com/ViewComponent/view_component/commit/48e5fd2d602344c7d33019fbc5c8b087e315bb78","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-97jw-64cj-jc58","https://github.com/ViewComponent/view_component/security/advisories/GHSA-97jw-64cj-jc58"],"products":["viewcomponent:view_component"],"source":"nvd","synced_at":"2026-10-25T17:50:08.599881581+00:00"},"epss":{"cve":"CVE-2026-54498","score":0.00453,"percentile":0.39066,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-97jw-64cj-jc58","url":"https://osv.dev/vulnerability/GHSA-97jw-64cj-jc58","summary":"ViewComponent: around_render HTML-Safety Bypass","modified":"2026-07-15T23:11:43.016236Z","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."]}