CVE-2026-73648: rails-html-sanitizer · Cross-site Scripting
Affects rails-html-sanitizerSource CVE Database V5
Not known to be exploited · CVSS 5.1 Medium : upgrade to 1.7.1 when convenient.
Data as of 12 Nov 2026, 23:24 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 46% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.7.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade rails-html-sanitizer to 1.7.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| railsrails-html-sanitizer | Affected
| Fixed in
|
AI-suggested
Upgrade rails-html-sanitizer to version 1.7.1 or later, where this vulnerability is fixed. No other official remediation or temporary fix is documented. Patch status is not explicitly confirmed beyond the fix in 1.7.1, so users should verify vendor advisories for the latest guidance.
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.
References
- github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cj75-f6xr-r4g7 (opens in a new tab)
- github.com/rails/rails-html-sanitizer/pull/223 (opens in a new tab)
- github.com/rails/rails-html-sanitizer/commit/74dcb8053e6da9921246ce71b06ad9fd65b19586 (opens in a new tab)
- github.com/rails/rails-html-sanitizer/releases/tag/v1.7.1 (opens in a new tab)