Skip to main content
VulnerabilityPublished

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

Affects loofahSource GCVE Database

0
Compare
Authoritative record:CVE-2026-126208· Medium 4.7

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

CVSS 3.1 base score
4.7Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.14.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
RubyGemsloofahAffected
  • <2.25.3
Fixed in
  • 2.25.3

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

Community reviews

Loading reviews…