CVE-2026-126208
published medium CVSS 3.1 · 4.7Loofah: SVG `<textPath>` and `<mpath>` bypass local-reference restriction
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| flavorjones | — | loofah< 2.25.3 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.7 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| flavorjones | loofah | < 2.25.3 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-178 CWE-178: Improper Handling of Case Sensitivity
- CWE-184 CWE-184: Incomplete List of Disallowed Inputs
References
4Provider assertions
2GitHub_M · cna
Loofah: SVG `<textPath>` and `<mpath>` bypass local-reference restriction
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f76958219d3a790b4310206dc1b8dd9ac3323e9767754516315599eaac13b0a6
- Ingested
- 13 Nov 2026, 00:37:31 UTC
- Source record
- Official CVE record