Vulnerability · Published Aug 13, 2026 · Assigned by GitHub_M

CVE-2026-73648rails-html-sanitizer: Possible XSS vulnerability with certain configurations

Medium 5.1

In plain English

A medium-severity cross-site scripting in rails-html-sanitizer from rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.1Medium
Exploit odds (30 days)0.5%top 54.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ruby-rails-html-sanitizerno fix listedDEBIAN-CVE-2026-73648
Debian:13ruby-rails-html-sanitizerno fix listedDEBIAN-CVE-2026-73648
Debian:14ruby-rails-html-sanitizer1.7.1-1DEBIAN-CVE-2026-73648
RubyGemsrails-html-sanitizer1.7.1GHSA-cj75-f6xr-r4g7
Ubuntu:22.04:LTSruby-rails-html-sanitizerno fix listedUBUNTU-CVE-2026-73648
Ubuntu:24.04:LTSruby-rails-html-sanitizerno fix listedUBUNTU-CVE-2026-73648
Ubuntu:26.04:LTSruby-rails-html-sanitizerno fix listedUBUNTU-CVE-2026-73648

Affected products (as reported)

VendorProductVersions
rails rails-html-sanitizer >= 1.0.3, < 1.7.1

Weakness: CWE-79 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

References