Loofah: SVG `href` attribute bypasses local-reference restriction
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| flavorjones | loofah | before 2.25.2 | 2.25.2 | Patch available | CNA |
| — | loofah (RubyGems) | before 2.25.2 | 2.25.2 | Patch available | GHSA-9wjq-cp2p-hrgf |
- loofah Vendorflavorjones Affected before 2.25.2 Fixed in 2.25.2 Patch available CNA
- loofah (RubyGems) Vendor— Affected before 2.25.2 Fixed in 2.25.2 Patch available GHSA-9wjq-cp2p-hrgf
Remediation
- Fix · CNA loofah (flavorjones) Fixed in 2.25.2
- Fix · GHSA-9wjq-cp2p-hrgf loofah (RubyGems) Fixed in 2.25.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-73490
- 2026-10-03 Alias added: GHSA-9wjq-cp2p-hrgf
References
Other 5
- https://github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf
- https://github.com/flavorjones/loofah/pull/308
- https://github.com/flavorjones/loofah/commit/20867b9be689521887364b74822c41ef830523c9
- https://github.com/flavorjones/loofah/releases/tag/v2.25.2
- https://github.com/flavorjones/loofah
More flavorjones vulnerabilities
- TI-2022-07573 Inefficient Regular Expression Complexity in Loofah CVSS 3.1HIGH 7.5
- TI-2022-07575 Uncontrolled Recursion in Loofah CVSS 3.1HIGH 7.5
- TI-2018-05825 In the Loofah gem through 2.2.0 for Ruby, non-whitelisted HTML attributes may occur in… CVSS 3.0MEDIUM 6.1
- TI-2022-07577 Improper neutralization of data URIs allows XSS in rails-html-sanitizer CVSS 3.1MEDIUM 6.1
- TI-2022-07574 Improper neutralization of data URIs may allow XSS in Loofah CVSS 3.1MEDIUM 6.1
- TI-2019-11687 Cross-site scripting in Loofah CVSS 3.1MEDIUM 5.4
Sources
- CVE-2026-73490 · CVE Program
- CVE-2026-73490 · NVD
- FIRST EPSS
- GHSA-9wjq-cp2p-hrgf · GitHub Advisory Database · CC BY 4.0
- CVE-2026-73490 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences