CVE-2026-54498

High

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.

SeverityHigh
CVSS8.7
Exploit probability—
ProductViewcomponent View Component
PublishedJul 17, 2026
First seenJul 17, 2026

How to fix

Update
  • viewcomponent view_component4.12.0 or later

Affected products

ProductAffected versionsFixed in
viewcomponent view_component4.0.0 ≤ v < 4.12.04.12.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.