Read the docs
TI-2026-51602 Aliases CVE-2026-73490GHSA-9wjq-cp2p-hrgf

Loofah: SVG `href` attribute bypasses local-reference restriction

Priority LOW 21CWE-79Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00296 22nd percentileScored 2026-11-07
Fix Partial loofah (flavorjones): 2.25.2loofah (RubyGems): 2.25.2Red Hat: 2 without a fix

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

VendorProductAffected versionsFixed inStatusSource
flavorjonesloofahbefore 2.25.22.25.2Patch availableCNA
—loofah (RubyGems)before 2.25.22.25.2Patch availableGHSA-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 →

ProductStatusPlan or fix
Red Hat 3scale API Management Platform 2AffectedNo fix yet: Fix deferred
Red Hat Satellite 6AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-73490
  2. 2026-10-03 Alias added: GHSA-9wjq-cp2p-hrgf

References

  • 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
See all 9 →

Sources