# CVE-2026-126208: Loofah: SVG `<textPath>` and `<mpath>` bypass local-reference restriction

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/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.36%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-11-12T20:59:48.651Z
- Modified: 2026-11-13T02:18:51.653Z
- Also known as: GHSA-345x-3rq2-jfrm
- Weaknesses: CWE-178, CWE-184
- 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.3, Loofah's SVG_ALLOW_LOCAL_HREF safelist lists textPath with lowercase spelling that does not match the HTML5 parser's element name and omits mpath, so external href and xlink:href values on those elements survive sanitization. Firefox fetches the attacker-chosen URL when a viewer renders the content, which can disclose the viewer's IP address, user agent, referrer, and access to hosts routable only from the viewer's network. Chrome and WebKit do not fetch these references, and the impact is a network request rather than script execution. The rails-html-sanitizer PermitScrubber reuses the affected safelist when SVG elements are permitted. This issue is fixed in version 2.25.3.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/flavorjones/loofah/security/advisories/GHSA-345x-3rq2-jfrm> (web)
- <https://github.com/flavorjones/loofah/pull/324> (web)
- <https://github.com/flavorjones/loofah/commit/cdd6ff7fb51998eb181bd2da925ddbcfcc8a3b96> (web)
- <https://github.com/flavorjones/loofah/releases/tag/v2.25.3> (web)
- <https://github.com/flavorjones/loofah> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/GHSA-345x-3rq2-jfrm.yml> (web)

## Sources

- CVE List: [CVE-2026-126208](https://www.cve.org/CVERecord?id=CVE-2026-126208), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-345x-3rq2-jfrm](https://github.com/advisories/GHSA-345x-3rq2-jfrm), CC-BY-4.0, modified 2026-11-12
- NVD: [CVE-2026-126208](https://nvd.nist.gov/vuln/detail/CVE-2026-126208), Public domain, modified 2026-11-13

---

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