Skip to content
Heist/ feed
Back to feed
High

view_component: around_render HTML-Safety Bypass

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-54498
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 01:43 UTC · Revision 1

Source evidence

view_component: around_render HTML-Safety Bypass

core-osv · Original source

Published 17 Jul 2026, 20:46 UTC

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.

osv:CVE-2026-54498
Complete source record
{
  "id": "0b96d4e2a3db4db5b054a42bad04c084c0be845a230e6bd86b7f78a8d0bafe03",
  "url": "https://osv.dev/vulnerability/CVE-2026-54498",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "view_component: around_render HTML-Safety Bypass",
    "summary": "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.",
    "evidence": "osv:CVE-2026-54498",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-54498",
      "aliases": [
        "CVE-2026-54498",
        "GHSA-97jw-64cj-jc58"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/viewcomponent/view_component",
              "type": "GIT",
              "events": [
                {
                  "introduced": "bde6dc9e10ff43e3526ecdfe4007de98ef1d521e"
                },
                {
                  "fixed": "4cbdbaaf8fb37299926a5dc45be2ffc03e436fc1"
                },
                {
                  "fixed": "48e5fd2d602344c7d33019fbc5c8b087e315bb78"
                },
                {
                  "fixed": "6796b2e89d0bd7b9d7d763a86275e5334731dd61"
                }
              ],
              "database_specific": {
                "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"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4cbdbaaf8fb37299926a5dc45be2ffc03e436fc1"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v4.12.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.11.0",
            "v4.10.0",
            "v4.9.0",
            "v4.8.0",
            "v4.7.0",
            "v4.6.0",
            "v4.5.0",
            "v4.4.0",
            "v4.3.0",
            "v4.2.0",
            "v4.1.1",
            "v4.1.0",
            "v4.0.2",
            "v4.0.1",
            "v4.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54498.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.635403889Z",
      "provider": "osv",
      "references": [
        "https://github.com/ViewComponent/view_component/releases/tag/v4.12.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54498.json",
        "https://github.com/ViewComponent/view_component/security/advisories/GHSA-97jw-64cj-jc58",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-54498",
        "https://github.com/ViewComponent/view_component/commit/48e5fd2d602344c7d33019fbc5c8b087e315bb78",
        "https://github.com/ViewComponent/view_component/commit/6796b2e89d0bd7b9d7d763a86275e5334731dd61"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54498.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-54498",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521458,
  "published_at": "2026-07-17T20:46:52.176+00:00"
}