---
id: CVE-2026-73648
title: >-
  rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails
  applications
summary: >-
  rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails
  applications. From 1.0.3 until 1.7.1, Rails::HTML::PermitScrubber restricted
  SVG reference elements in SVG_ALLOW_LOCAL_HREF only when they used xlink:href,
  even t…
severity: none
cwe:
  - CWE-79
published: '2026-08-13'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T20:05:53.723'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-73648'
references:
  - url: >-
      https://github.com/rails/rails-html-sanitizer/commit/74dcb8053e6da9921246ce71b06ad9fd65b19586
    label: security-advisories@github.com
  - url: 'https://github.com/rails/rails-html-sanitizer/pull/223'
    label: security-advisories@github.com
  - url: 'https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.1'
    label: security-advisories@github.com
  - url: >-
      https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cj75-f6xr-r4g7
    label: security-advisories@github.com
tags:
  - nvd
epss: 0.00547
epssPercentile: 0.434
ingestedAt: '2026-09-18T20:51:25.609Z'
---

## Overview

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 until 1.7.1, Rails::HTML::PermitScrubber restricted SVG reference elements in SVG_ALLOW_LOCAL_HREF only when they used xlink:href, even though browsers also accept the plain href attribute. Applications with non-default allowed tags that included SVG use or feImage elements could therefore permit external references; a same-origin external SVG referenced by use could execute scripts in the sanitized document's context, while feImage could load external images for tracking. Applications using the default allowed tags are not affected. This issue is fixed in version 1.7.1.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
