CVE-2026-54498: view_component: around_render HTML-Safety Bypass
Vulnerability summary
CVE-2026-54498 is a high (CVSS 8.7) vulnerability in viewcomponent view_component. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 26% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Timeline
- 17-07-2026PublishedVulnerability first disclosed.
- 20-07-2026Last modifiedVulnerability information updated.
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 metrics
3 scores · 3 sources · 1 version- OSV · RubygemsEcosystem advisory · calculated8.7HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- NVDNIST8.7HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
EPSS trend
Probability
0.31%
Chance of exploitation in the next 30 days
Percentile
26%
Versus all other CVEs
30-day change
Decrease -0.14 pp
From 0.45% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundView Component
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
RubyGems1 product
- view_component≥ 4.0.0, < 4.12.0
Viewcomponent1 product
- view_component≥ 4.0.0, < 4.12.0
2 vendors · 2 products
References
7 links- github.com/ViewComponent/view_component/security/advisories/GHSA-97jw-64cj-jc58X Refsource CONFIRMWEBExploitMitigationVendor Advisory
- github.com/ViewComponent/view_component/commit/48e5fd2d602344c7d33019fbc5c8b087e315bb78X Refsource MISCWEBPatch