CVE-2026-54498

Source
https://cve.org/CVERecord?id=CVE-2026-54498
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54498.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-54498
Aliases
Published
2026-07-17T20:46:52Z
Modified
2026-10-28T02:30:52Z
Severity
  • 8.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N CVSS Calculator
Summary
view_component: around_render HTML-Safety Bypass
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54498.json"
}
References

Affected packages

Git / github.com/viewcomponent/view_component

Affected ranges

Type
GIT
Repo
https://github.com/viewcomponent/view_component
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "cpe": "cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:*",
            "range": [
                {
                    "introduced": "4.0.0"
                },
                {
                    "fixed": "4.12.0"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "range": [
                {
                    "fixed": "48e5fd2d602344c7d33019fbc5c8b087e315bb78"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "range": [
                {
                    "fixed": "6796b2e89d0bd7b9d7d763a86275e5334731dd61"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "v4.12.0",
            "range": [
                {
                    "fixed": "4cbdbaaf8fb37299926a5dc45be2ffc03e436fc1"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Affected versions

v4.*
v4.0.0
v4.0.1
v4.0.2
v4.1.0
v4.1.1
v4.10.0
v4.11.0
v4.2.0
v4.3.0
v4.4.0
v4.5.0
v4.6.0
v4.7.0
v4.8.0
v4.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54498.json"