CVE-2026-126207
CVE-2026-126207 · Loofah: CSS url() sanitization bypass via escaped parentheses
CVSS 4.7 · Medium · EPSS 0.3% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- loofahNo fix published
- ruby-loofah Debian 12No fix published
- ruby-loofah Debian 13No fix published
- ruby-loofah Debian 14No fix published
- and 8 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-loofah"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Affected products and versions
loofah
- Versions
- < 2.25.3: Affected
No fix published
ruby-loofah Debian 12
- Versions
- 2.19.1-1
- 2.20.0-1
- 2.21.3-1
- 2.21.4-1
- 2.22.0-1
- 2.24.0-1
All versions (12)
- 2.24.1-1
- 2.25.0-1
- 2.25.1-1
- 2.25.1-2
- 2.25.2-1
- 2.25.3-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Debian 13
- Versions
- 2.24.0-1
- 2.24.1-1
- 2.25.0-1
- 2.25.1-1
- 2.25.1-2
- 2.25.2-1
All versions (7)
- 2.25.3-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Debian 14
- Versions
- 2.24.0-1
- 2.24.1-1
- 2.25.0-1
- 2.25.1-1
- 2.25.1-2
- 2.25.2-1
All versions (7)
- 2.25.3-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
loofah RubyGems
- Versions
- 0.2.0
- 0.2.1
- 0.2.2
- 0.3.0
- 0.3.1
- 0.4.0
All versions (65)
- 0.4.1
- 0.4.2
- 0.4.3
- 0.4.4
- 0.4.5
- 0.4.6
- 0.4.7
- 1.0.0
- 1.0.0.beta.1
- 1.1.0
- 1.2.0
- 1.2.1
- 2.0.0
- 2.0.1
- 2.0.2
- 2.0.3
- 2.1.0
- 2.1.0.rc1
- 2.1.0.rc2
- 2.1.1
- 2.10.0
- 2.11.0
- 2.12.0
- 2.13.0
- 2.14.0
- 2.15.0
- 2.16.0
- 2.17.0
- 2.18.0
- 2.19.0
- 2.19.1
- 2.2.0
- 2.2.1
- 2.2.2
- 2.2.3
- 2.20.0
- 2.21.0
- 2.21.0.rc1
- 2.21.1
- 2.21.2
- 2.21.3
- 2.21.4
- 2.22.0
- 2.23.0
- 2.23.1
- 2.24.0
- 2.24.1
- 2.25.0
- 2.25.1
- 2.25.2
- 2.3.0
- 2.3.1
- 2.4.0
- 2.5.0
- 2.6.0
- 2.7.0
- 2.8.0
- 2.9.0
- 2.9.1
- Affected ranges
- ECOSYSTEM: < 2.25.3
Update to 2.25.3
ruby-loofah Ubuntu 16.04 LTS
- Versions
- 2.0.2-1
- 2.0.3-1
- 2.0.3-2
- 2.0.3-2+deb9u1build0.16.04.1
- 2.0.3-2+deb9u2build0.16.04.1
- 2.0.3-2+deb9u3build0.16.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Ubuntu 18.04 LTS
- Versions
- 2.0.3-2
- 2.2.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Ubuntu 20.04 LTS
- Versions
- 2.2.3-1
- 2.3.1+dfsg-1
- 2.4.0+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Ubuntu 22.04 LTS
- Versions
- 2.12.0-1
- 2.13.0-1
- 2.13.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Ubuntu 24.04 LTS
- Versions
- 2.21.3-1
- 2.21.4-1
- 2.22.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Ubuntu 26.10
- Versions
- 2.25.0-1
- 2.25.1-2
- 2.25.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-loofah Ubuntu 26.04 LTS
- Versions
- 2.24.1-1
- 2.25.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/flavorjones/loofah/security/advisories/GHSA-m3x9-938q-5767
- https://github.com/flavorjones/loofah/pull/324
- https://github.com/flavorjones/loofah/commit/b198a36e44c9c5408163ac50787825e8ca0b166b
- https://github.com/flavorjones/loofah/releases/tag/v2.25.3
- https://nvd.nist.gov/vuln/detail/CVE-2026-126207