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

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-07-21T22:01:58.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-9wjq-cp2p-hrgf
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- flavorjones loofah: < 2.25.2
- loofah (RubyGems): before 2.25.2

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf> (web)
- <https://github.com/flavorjones/loofah/pull/308>
- <https://github.com/flavorjones/loofah/commit/20867b9be689521887364b74822c41ef830523c9> (web)
- <https://github.com/flavorjones/loofah/releases/tag/v2.25.2> (web)
- <https://github.com/flavorjones/loofah> (package)

## Sources

- CVE List: [CVE-2026-73490](https://www.cve.org/CVERecord?id=CVE-2026-73490), CVE Terms of Use, modified 2026-08-13
- GitHub Advisory Database: [GHSA-9wjq-cp2p-hrgf](https://github.com/advisories/GHSA-9wjq-cp2p-hrgf), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-73490](https://nvd.nist.gov/vuln/detail/CVE-2026-73490), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-73490 · Whole record: https://cve.day/CVE-2026-73490.json · Rebuilt by cve.day 2026-11-25T22:59:32.663Z
