Medium severity · published Aug 12, 2026
CVE-2026-73490
Loofah: SVG `href` attribute bypasses local-reference restriction
4.7
CVSS
0.3%
EPSS
No
On KEV
Description
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.2, Loofah's HTML5 sanitizer applies its local-reference restriction only to the xlink:href attribute on SVG use and feImage elements, while browsers also accept the plain href attribute. A crafted sanitized SVG can therefore reference an arbitrary same-origin external document; use may render external SVG content containing scripts or other dangerous content, and feImage may load external images for tracking. Applications that sanitize user-supplied SVG with Loofah's default allowlist are affected. This issue is fixed in version 2.25.2.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
High
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 22% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LO
loofah · flavorjones
< 2.25.2 · source: vendor
Affected product
LO
loofah
flavorjones
More from loofah
7.5
CVE-2022-23516
Uncontrolled Recursion in Loofah
7.5
CVE-2022-23514
Inefficient Regular Expression Complexity in Loofah
6.1
CVE-2022-23515
Improper neutralization of data URIs may allow XSS in Loofah
2.3
CVE-2026-73492
Loofah `allowed_uri?` does not detect `javascript:` URIs split by numeric character references without semicolons
2.3
CVE-2026-73491
Loofah `allowed_uri?` does not detect `javascript:` URIs split by named whitespace character references