MEDIUMCVSS v3.1 4.7Vulnerability

CVE-2026-126208

## Summary Loofah restricts `href` and `xlink:href` on certain SVG elements to same-document references. Two elements escaped the restriction: - `<textPath>`: `SVG_ALLOW_LOCAL_HREF` listed it in lowercase as `textpath`, but the HTML5 parser names the element `textPath` inside `<svg>`, so the check never matched on the HTML5 path. - `<mpath>`: absent from `SVG_ALLOW_LOCAL_HREF`, so its references were never restricted on either path. `rails-html-sanitizer` reuses this safelist in its `PermitScrubber`, so it is affected too. ## Impact An external `href` or `xlink:href` on `<textPath>` or `<mpath>` survives sanitization. Firefox fetches the URL when rendering the content, which leaks the viewer's IP address, user agent, and referrer, and can reach hosts routable only from the viewer's network. Chrome and WebKit do not fetch external references on these elements. The impact is a network request to an attacker-chosen URL, not script execution. Applications that sanitize user-supplied SVG, directly or inside HTML, with Loofah's default allowlist or with `rails-html-sanitizer` with SVG elements permitted are affected. ## Mitigation Upgrade to Loofah >= 2.25.3.

Properties

Severity
medium
Summary
Loofah: SVG `<textPath>` and `<mpath>` bypass local-reference restriction
Nvd fetched at
2026-11-14T00:40:25.638091+00:00
Epss score
0.00365
Cvss severity
MEDIUM
Cvss score
4.7
Retrieved at
2026-11-14T00:51:03+00:00
Ghsa published
2026-11-12T21:26:53Z
Source url
https://github.com/advisories/GHSA-345x-3rq2-jfrm
Ghsa updated
2026-11-12T21:27:48Z
Ghsa id
GHSA-345x-3rq2-jfrm
Last source
FIRST EPSS
Score
4.7
Cvss version
3.1
Cve id
CVE-2026-126208
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
First seen by Signal
2026-11-13T00:03:24+00:00
Name
CVE-2026-126208
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N

Related Entities (4)

AFFECTS (1)

→[Software]rubygems/loofah

VULNERABLE_TO (1)

←[Software]rubygems/loofah

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-126208 (CVSS v3.1 4.7) — Ninja Signal Threat Intelligence | Ninja Signal