CVE-2026-73490 — Vulnerability in loofah — CVE Details
Loofah: SVG `href` attribute bypasses local-reference restriction
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.30%). Schedule for your next planned update.
Does your project use an affected loofah version?
Paste your Gemfile.lock to check it for CVE-2026-73490 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
Loofah's HTML5 sanitizer restricted only the xlink:href attribute on certain SVG elements to local, same-document references. Browsers also accept a plain href attribute as an alternative to the deprecated xlink:href per the SVG 2 spec, but Loofah did not apply the same restriction to it, allowing those elements to reference arbitrary external documents.
Impact
SVG <use> can load and render external SVG content by reference. If the referenced external SVG is same-origin and contains scripts or other dangerous content, it could execute in the context of the sanitized document. <feImage> can load external images, which can be used for tracking. Modern browsers restrict cross-origin <use> fetches, which limits but does not eliminate the risk.
Applications that sanitize user-supplied SVG (directly, or as part of HTML) with Loofah's default allowlist are affected.
Mitigation
Upgrade to Loofah >= 2.25.2.
Credit
Found by the maintainer, Mike Dalessio, during a security audit.
Advisory Timeline
- First published July 21, 2026 (128 days ago).
- Last revised September 10, 2026 — 50 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install loofah -v 2.25.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| loofah RubyGems · Affected: 0.2.0, 0.2.1, 0.2.2, 0.3.0 (+60 more) | 2.25.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 4.7 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
References
Frequently Asked Questions
- What is CVE-2026-73490?
- Loofah: SVG `href` attribute bypasses local-reference restriction. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 4.7/10).
- How do I check if my project is affected by CVE-2026-73490?
- CVE-2026-73490 affects loofah. It has a 0.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-73490 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 14.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2022-23516HIGH
Uncontrolled Recursion in Loofah
- CVE-2022-23514HIGH
Inefficient Regular Expression Complexity in Loofah
- CVE-2022-23515MEDIUM
Improper neutralization of data URIs may allow XSS in Loofah
- CVE-2026-126203MEDIUM
Loofah: Mutation XSS in the HTML5 scrubbers through unescaped attribute values
- CVE-2026-126206MEDIUM
Loofah allowed_uri? treats data:text/html as safe text/plain
- GHSA-46fp-8f5p-pf2mLOW
Improper detection of disallowed URIs by Loofah `allowed_uri?`
- CVE-2026-73492LOW
Loofah `allowed_uri?` does not detect `javascript:` URIs split by numeric character references without semicolons
- CVE-2026-73491LOW
Loofah `allowed_uri?` does not detect `javascript:` URIs split by named whitespace character references