# CVE-2026-54498: view_component: around_render HTML-Safety Bypass

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-15T22:51:04.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-97jw-64cj-jc58
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ViewComponent view_component: >= 4.0.0, < 4.12.0; from 4.0.0 before 4.12.0
- view_component (RubyGems): from 4.0.0 before 4.12.0

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`

## References

- <https://github.com/ViewComponent/view_component/security/advisories/GHSA-97jw-64cj-jc58> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/ViewComponent/view_component/commit/48e5fd2d602344c7d33019fbc5c8b087e315bb78> (patch, web)
- <https://github.com/ViewComponent/view_component/commit/6796b2e89d0bd7b9d7d763a86275e5334731dd61> (patch)
- <https://github.com/ViewComponent/view_component/releases/tag/v4.12.0> (product, release-notes, web)
- <https://github.com/ViewComponent/view_component> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/view_component/CVE-2026-54498.yml> (web)
- <https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54498> (web)

## Sources

- CVE List: [CVE-2026-54498](https://www.cve.org/CVERecord?id=CVE-2026-54498), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-97jw-64cj-jc58](https://github.com/advisories/GHSA-97jw-64cj-jc58), CC-BY-4.0, modified 2026-07-15
- NVD: [CVE-2026-54498](https://nvd.nist.gov/vuln/detail/CVE-2026-54498), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-54498 · Whole record: https://cve.day/CVE-2026-54498.json · Rebuilt by cve.day 2026-11-25T22:59:28.585Z
