CVE-2026-126208: Loofah · SVG `<textPath>` and `<mpath>` bypass local-reference restriction
Affects loofahSource GCVE Database
Not known to be exploited · CVSS 4.7 Medium : upgrade to 2.25.3 when convenient.
Data as of 12 Nov 2026, 22:37 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 4.7 |
|---|
- Patch
- Available – fixed in 2.25.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 12 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 12 Nov 2026.
What to do
Upgrade loofah to 2.25.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemsloofah | Affected
| Fixed in
|
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.3 or later, which fixes the issue by correctly restricting external references on <textPath> and <mpath> elements. Applications using rails-html-sanitizer should also update to versions that include this fix. No additional mitigation is required as the fix fully addresses the vulnerability.
Description
Loofah versions prior to 2.25.3 improperly restrict local references in SVG elements <textPath> and <mpath>, allowing external URLs to bypass sanitization. This causes Firefox to fetch attacker-controlled URLs when rendering sanitized SVG content, leaking the viewer's IP address, user agent, and referrer. Chrome and WebKit are not affected by this fetch behavior. The vulnerability affects applications using Loofah's default allowlist or rails-html-sanitizer permitting SVG elements. A fix is available in Loofah 2.25.3.
References
- github.com/flavorjones/loofah/security/advisories/GHSA-345x-3rq2-jfrm (opens in a new tab)
- github.com/flavorjones/loofah/pull/324 (opens in a new tab)
- github.com/flavorjones/loofah/commit/cdd6ff7fb51998eb181bd2da925ddbcfcc8a3b96 (opens in a new tab)
- github.com/flavorjones/loofah (opens in a new tab)
- github.com/flavorjones/loofah/releases/tag/v2.25.3 (opens in a new tab)
- github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/GHSA-345x-3rq2-jfrm.yml (opens in a new tab)