# CVE-2026-54498: view\_component: around\_render HTML-Safety Bypass

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 4.12.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-07-17 · Modified: 2026-07-20
- Aliases: GHSA-97jw-64cj-jc58
- Record: https://cvemate.com/vulnerability/CVE-2026-54498 · JSON: https://cvemate.com/vulnerability/CVE-2026-54498/json

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

## Signals

- CVSS: 8.7 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- EPSS: 0.312%, percentile 26.001%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- RubyGems view\_component (RubyGems): ≥ 4.0.0, \< 4.12.0
- viewcomponent view\_component: ≥ 4.0.0, \< 4.12.0

## References

- <https://github.com/ViewComponent/view_component/security/advisories/GHSA-97jw-64cj-jc58>
- <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>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/view_component/CVE-2026-54498.yml>
- <https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54498>

---

Data as of 2026-12-05T10:27:45.804Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
