Vulnerability
CVE-2026-126208
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.
36 advisories report this vulnerability, across 5 ecosystems.
Advisories
- CGA-282g-qcf7-66q3
- CGA-2j8q-8c6m-jf9v
- CGA-32vx-chvw-jwcw
- CGA-3vm3-f88j-4g5x
- CGA-4736-mrgj-r356
- CGA-539j-2jq5-pxc5
- CGA-5m4v-8g43-q8w3
- CGA-692g-r2v9-xfxw
- CGA-7hp2-245f-4fv8
- CGA-7p2g-r5mf-f77q
- CGA-84q3-gjm4-hx3x
- CGA-8m5j-rj5r-4wxp
- CGA-9q3w-hqhw-8rg5
- CGA-9vj5-p6cg-2c7w
- CGA-c45r-mccg-f85x
- CGA-ch8w-8c43-3ffv
- CGA-cmxc-q4m7-2cvv
- CGA-f694-pw6p-g8gv
- CGA-fxf9-cpj7-c532
- CGA-g67h-7jcm-29g7
- CGA-hpcc-2jxc-92mr
- CGA-jcp7-7xp3-95wf
- CGA-mjv2-9743-x3h7
- CGA-pr3w-r7jq-4vfw
- CGA-pvg9-x7x3-259c
- CGA-qvw3-62j3-85w7
- CGA-r9cc-pgq3-mr7v
- CGA-rjh5-v89c-hjvp
- CGA-wgf9-85h4-fx27
- CGA-wpp8-xq3p-295f
- CGA-xr49-3698-c234
- CGA-xw5w-rp7w-4q3r
-
DEBIAN-CVE-2026-126208
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…
-
GHSA-345x-3rq2-jfrm
Loofah: SVG `<textPath>` and `<mpath>` bypass local-reference restriction
-
SUSEVEX-CVE-2026-126208
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…
-
UBUNTU-CVE-2026-126208
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…