Skip to main content
VulnerabilityPublished Updated

CVE-2026-73490: Loofah · SVG `href` attribute bypasses local-reference restriction

Affects loofahSource GCVE Database

0

Mentioned vulnerabilities

CVSS 4.7 Medium : upgrade to 2.25.2 when convenient.

Data as of 26 Oct 2026, 16:10 UTC

CVSS 3.1 base score
4.7Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

What to do

Upgrade loofah to 2.25.2.

Affected software

ProductAffectedFixed in
RubyGemsloofahAffected
  • <2.25.2
Fixed in
  • 2.25.2

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

Community reviews

Loading reviews…