Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-73648: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in rails rails-html-sanitizer

0
Medium
VulnerabilityCVE-2026-73648cvecve-2026-73648cwe-79
Published: 08/13/2026 (08/13/2026, 18:00:21 UTC)
Source: CVE Database V5
Vendor/Project: rails
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Affected software

Affected versions
>=1.0.3 <1.7.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/13/2026, 18:27:24 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses