CVE-2026-73648: Rails Rails-Html-Sanitizer
Medium severity, CVSS 5.1. EPSS: 0.5% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for the versions it affects. If you run one, update to it.
- Rails Rails-Html-Sanitizer, from 1.0.3, before 1.7.1: fixed in 1.7.1
Affected products
- Rails Rails-Html-Sanitizer: from 1.0.3, before 1.7.1 (fixed in 1.7.1)
Affected packages
- rails-html-sanitizer (RubyGems)
Published 2026-08-13. Last modified 2026-10-24.