CVE-2026-73490: Loofah · SVG `href` attribute bypasses local-reference restriction
Affects loofahSource GCVE Database
Mentioned vulnerabilities
CVSS 4.7 Medium : upgrade to 2.25.2 when convenient.
Data as of 26 Oct 2026, 16:10 UTC
- Patch
- Available – fixed in 2.25.2
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:NWhat to do
Upgrade loofah to 2.25.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemsloofah | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Loofah to version 2.25.2 or later, where this vulnerability is fixed. No other mitigation is required as the fix addresses the root cause by applying the local-reference restriction to the href attribute on SVG elements.
Description
Loofah's HTML5 sanitizer did not restrict the SVG plain href attribute on certain elements, allowing references to arbitrary external documents. This bypasses the intended local-reference restriction applied only to the deprecated xlink:href attribute. The vulnerability affects applications sanitizing user-supplied SVG with Loofah versions prior to 2.25.2. Exploitation could lead to loading and rendering external SVG content with potential script execution in the context of the sanitized document or tracking via external images. Modern browsers limit cross-origin fetches, reducing but not eliminating risk. Upgrading to Loofah 2.25.2 or later mitigates this issue.
References
- github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf (opens in a new tab)
- github.com/flavorjones/loofah/commit/20867b9be689521887364b74822c41ef830523c9 (opens in a new tab)
- github.com/flavorjones/loofah (opens in a new tab)
- github.com/flavorjones/loofah/releases/tag/v2.25.2 (opens in a new tab)