Cross-site scripting in rails-html-sanitizer - CVE-2026-73648
Published: November 8, 2026
Vulnerability details
The vulnerability allows an unauthenticated attacker to execute scripts in a victim's browser in the context of a sanitized document.
The vulnerability exists due to rails-html-sanitizer restricting SVG references through xlink:href but not plain href when applications override allowed tags to include use. An unauthenticated attacker can supply a use element referencing a same-origin SVG document containing scripts, which may execute when a victim views the sanitized content.