CVE-2026-73648: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in rails rails-html-sanitizer
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.
AI Analysis
Technical Summary
The rails-html-sanitizer library, responsible for sanitizing HTML fragments in Rails applications, improperly restricts SVG reference elements only when they use the xlink:href attribute, ignoring the plain href attribute accepted by browsers. This flaw affects versions from 1.0.3 until 1.7.1. Applications that customize allowed tags to include SVG use or feImage elements could allow external references, leading to possible script execution in the context of the sanitized document or external image loading for tracking purposes. The default allowed tags configuration is not vulnerable. The issue is resolved in version 1.7.1.
Potential Impact
Applications using non-default allowed tags that include SVG use or feImage elements may be vulnerable to cross-site scripting attacks or external resource loading, which could lead to script execution in the context of the sanitized document or privacy issues due to external image tracking. Applications using the default allowed tags are not impacted.
Mitigation Recommendations
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.
CVE-2026-73648: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in rails rails-html-sanitizer
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.
CVSS v4.0
Score 5.1medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The rails-html-sanitizer library, responsible for sanitizing HTML fragments in Rails applications, improperly restricts SVG reference elements only when they use the xlink:href attribute, ignoring the plain href attribute accepted by browsers. This flaw affects versions from 1.0.3 until 1.7.1. Applications that customize allowed tags to include SVG use or feImage elements could allow external references, leading to possible script execution in the context of the sanitized document or external image loading for tracking purposes. The default allowed tags configuration is not vulnerable. The issue is resolved in version 1.7.1.
Potential Impact
Applications using non-default allowed tags that include SVG use or feImage elements may be vulnerable to cross-site scripting attacks or external resource loading, which could lead to script execution in the context of the sanitized document or privacy issues due to external image tracking. Applications using the default allowed tags are not impacted.
Mitigation Recommendations
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.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-13T14:04:09.604Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7e08efbf8831d5399b79b0
Added to database: 08/13/2026, 18:11:59 UTC
Last enriched: 08/13/2026, 18:27:24 UTC
Last updated: 08/13/2026, 22:04:00 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.