Back to overview

CVE-2026-54498

HIGH
8.7
CVSS 3.1
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.

Metadata

CVE ID
CVE-2026-54498
State
PUBLISHED
Assigner
GitHub_M
Reserved
2026-06-15 18:01 UTC
Published
2026-07-17 20:46 UTC
Last updated
2026-07-17 20:46 UTC
Primary CWE
CWE-79
CWE-79: Improper Neutralization of Input During Web Page Gen…
Vendor / Product
ViewComponent / view_component
Sources
cve.org  ·  NVD

Severity & Metrics

8.7 HIGH CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Affected products (1)
VendorProductPlatformVersions
ViewComponent view_component >= 4.0.0, < 4.12.0
Weakness (CWE)
CWESourceDescription
CWE-79 cna CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSS scores (1)
ScoreSeverityVersionSourceVector
8.7 HIGH 3.1 cna CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
References (4)
Back to overview