Vulnerability
CVE-2026-126207
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::HTML5::Scrub.scrub_css checks only the first parse of a style attribute, then rebuilds CSS with identifier escapes decoded so escaped parentheses, property names, comments, or quotes can become a live url() without a second safety check. An attacker can use list-style to make a viewer's browser request an attacker-chosen URL when content renders, or cursor to make the request on hover. The request can disclose the viewer's IP address, user agent, access timing, and access to internal-network hosts, but no script survives sanitization and the attacker cannot read the response. This issue is fixed in version 2.25.3.
36 advisories report this vulnerability, across 5 ecosystems.
Advisories
- CGA-2rmm-wfq2-52x5
- CGA-3689-5gpw-fww7
- CGA-36pc-qgh6-82g3
- CGA-3p9v-m562-wjq7
- CGA-59jq-rwm4-ffvc
- CGA-67r5-h7qv-fmhv
- CGA-75q5-hcvc-hf37
- CGA-8v3r-m73j-2cq6
- CGA-98hc-q8g8-4hv9
- CGA-9j46-rhqm-93cj
- CGA-c6vg-rm72-vphh
- CGA-f25j-j478-2pqw
- CGA-hxv7-pqqv-qwjc
- CGA-j9qv-47h9-mjwm
- CGA-jr74-gg26-vqqx
- CGA-jwqw-3g39-rghc
- CGA-m7fg-5mq6-3xv8
- CGA-mcg2-hwcf-jwq2
- CGA-mxjc-6mph-693x
- CGA-p3g7-7qr7-88w4
- CGA-pvfj-ch8f-j6rx
- CGA-pwp3-vw2m-hwhp
- CGA-q55v-p558-mgwx
- CGA-rc55-9qvx-xqwf
- CGA-rw3f-5qgq-wx4x
- CGA-v34f-h466-w74x
- CGA-v9x3-5qfx-qjj5
- CGA-vrf2-rg3h-5xmv
- CGA-wwjr-gjhc-xcr6
- CGA-x7xm-x635-v3x7
- CGA-xffm-cp42-j898
- CGA-xhv7-vr4f-9r2f
-
DEBIAN-CVE-2026-126207
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::HTML5::Scrub.scrub_css checks only the first parse of a style attribute,…
-
GHSA-m3x9-938q-5767
Loofah: CSS url() sanitization bypass via escaped parentheses
-
SUSEVEX-CVE-2026-126207
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::HTML5::Scrub.scrub_css checks only the first parse of a style attribute,…
-
UBUNTU-CVE-2026-126207
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::HTML5::Scrub.scrub_css checks only the first parse of a style attribute,…