Skip to main content
← All vulnerabilities
CVE-2026-73648GHSA-CJ75-F6XR-R4G7

rails-html-sanitizer: Possible XSS vulnerability with certain configurations

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.7.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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 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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • rails rails-html-sanitizer

    From 1.0.3 · fixed in 1.7.1

  • rails-html-sanitizerRubyGems

    From 1.0.3 · fixed in 1.7.1

References 4

GitHub · rails/rails-html-sanitizer