Skip to content

CVE-2026-126207 Loofah: CSS url() sanitization bypass via escaped parentheses

MediumCVSS 4.7 EPSS 0.29%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

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.

Upgrade path

10 packages: 1 fixed, 8 with no fix yet.

PackageAffectedFixed inStatus
azure linux rubygem-loofah(Azure Linux 4.0) All versions No fix listed No fix yet
debian/ruby-loofah(Debian 12) = 2.19.1-1; = 2.20.0-1; = 2.21.3-1; = 2.21.4-1 +9 more No fix listed No fix yet
debian/ruby-loofah(Debian 13) = 2.24.0-1; = 2.24.1-1; = 2.25.0-1; = 2.25.1-1 +4 more No fix listed No fix yet
debian/ruby-loofah(Debian 14) = 2.24.0-1; = 2.24.1-1; = 2.25.0-1; = 2.25.1-1 +4 more No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 26.10) All versions No fix listed No fix yet
rubygems loofah(RubyGems) < 2.25.3; = 0.2.0; = 0.2.1; = 0.2.2 +62 more 2.25.3 Fixed
flavorjones loofah = < 2.25.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
rubygems loofah(RubyGems) < 2.25.3 2.25.3
rubygems loofah(RubyGems) = 0.2.0 No fix listed
rubygems loofah(RubyGems) = 0.2.1 No fix listed
rubygems loofah(RubyGems) = 0.2.2 No fix listed
rubygems loofah(RubyGems) = 0.3.0 No fix listed
rubygems loofah(RubyGems) = 0.3.1 No fix listed
rubygems loofah(RubyGems) = 0.4.0 No fix listed
rubygems loofah(RubyGems) = 0.4.1 No fix listed
rubygems loofah(RubyGems) = 0.4.2 No fix listed
rubygems loofah(RubyGems) = 0.4.3 No fix listed
rubygems loofah(RubyGems) = 0.4.4 No fix listed
rubygems loofah(RubyGems) = 0.4.5 No fix listed
rubygems loofah(RubyGems) = 0.4.6 No fix listed
rubygems loofah(RubyGems) = 0.4.7 No fix listed
rubygems loofah(RubyGems) = 1.0.0 No fix listed
rubygems loofah(RubyGems) = 1.0.0.beta.1 No fix listed
rubygems loofah(RubyGems) = 1.1.0 No fix listed
rubygems loofah(RubyGems) = 1.2.0 No fix listed
rubygems loofah(RubyGems) = 1.2.1 No fix listed
rubygems loofah(RubyGems) = 2.0.0 No fix listed
rubygems loofah(RubyGems) = 2.0.1 No fix listed
rubygems loofah(RubyGems) = 2.0.2 No fix listed
rubygems loofah(RubyGems) = 2.0.3 No fix listed
rubygems loofah(RubyGems) = 2.1.0 No fix listed
rubygems loofah(RubyGems) = 2.1.0.rc1 No fix listed
Show 76 more
ProductAffected versionsFixed in
rubygems loofah(RubyGems) = 2.1.0.rc2 No fix listed
rubygems loofah(RubyGems) = 2.1.1 No fix listed
rubygems loofah(RubyGems) = 2.10.0 No fix listed
rubygems loofah(RubyGems) = 2.11.0 No fix listed
rubygems loofah(RubyGems) = 2.12.0 No fix listed
rubygems loofah(RubyGems) = 2.13.0 No fix listed
rubygems loofah(RubyGems) = 2.14.0 No fix listed
rubygems loofah(RubyGems) = 2.15.0 No fix listed
rubygems loofah(RubyGems) = 2.16.0 No fix listed
rubygems loofah(RubyGems) = 2.17.0 No fix listed
rubygems loofah(RubyGems) = 2.18.0 No fix listed
rubygems loofah(RubyGems) = 2.19.0 No fix listed
rubygems loofah(RubyGems) = 2.19.1 No fix listed
rubygems loofah(RubyGems) = 2.2.0 No fix listed
rubygems loofah(RubyGems) = 2.2.1 No fix listed
rubygems loofah(RubyGems) = 2.2.2 No fix listed
rubygems loofah(RubyGems) = 2.2.3 No fix listed
rubygems loofah(RubyGems) = 2.20.0 No fix listed
rubygems loofah(RubyGems) = 2.21.0 No fix listed
rubygems loofah(RubyGems) = 2.21.0.rc1 No fix listed
rubygems loofah(RubyGems) = 2.21.1 No fix listed
rubygems loofah(RubyGems) = 2.21.2 No fix listed
rubygems loofah(RubyGems) = 2.21.3 No fix listed
rubygems loofah(RubyGems) = 2.21.4 No fix listed
rubygems loofah(RubyGems) = 2.22.0 No fix listed
rubygems loofah(RubyGems) = 2.23.0 No fix listed
rubygems loofah(RubyGems) = 2.23.1 No fix listed
rubygems loofah(RubyGems) = 2.24.0 No fix listed
rubygems loofah(RubyGems) = 2.24.1 No fix listed
rubygems loofah(RubyGems) = 2.25.0 No fix listed
rubygems loofah(RubyGems) = 2.25.1 No fix listed
rubygems loofah(RubyGems) = 2.25.2 No fix listed
rubygems loofah(RubyGems) = 2.3.0 No fix listed
rubygems loofah(RubyGems) = 2.3.1 No fix listed
rubygems loofah(RubyGems) = 2.4.0 No fix listed
rubygems loofah(RubyGems) = 2.5.0 No fix listed
rubygems loofah(RubyGems) = 2.6.0 No fix listed
rubygems loofah(RubyGems) = 2.7.0 No fix listed
rubygems loofah(RubyGems) = 2.8.0 No fix listed
rubygems loofah(RubyGems) = 2.9.0 No fix listed
rubygems loofah(RubyGems) = 2.9.1 No fix listed
flavorjones loofah = < 2.25.3 No fix listed
debian/ruby-loofah(Debian:12) All versions No fix listed
debian/ruby-loofah(Debian:12) = 2.19.1-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.20.0-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.21.3-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.21.4-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.22.0-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.24.0-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.24.1-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.0-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.1-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.1-2 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.2-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.3-1 No fix listed
debian/ruby-loofah(Debian:13) All versions No fix listed
debian/ruby-loofah(Debian:13) = 2.24.0-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.24.1-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.0-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.1-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.1-2 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.2-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.3-1 No fix listed
debian/ruby-loofah(Debian:14) All versions No fix listed
debian/ruby-loofah(Debian:14) = 2.24.0-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.24.1-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.0-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.1-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.1-2 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.2-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.3-1 No fix listed
ubuntu/ruby-loofah(Ubuntu:22.04) All versions No fix listed
ubuntu/ruby-loofah(Ubuntu:24.04) All versions No fix listed
ubuntu/ruby-loofah(Ubuntu:26.04) All versions No fix listed
ubuntu/ruby-loofah(Ubuntu:26.10) All versions No fix listed
azure linux rubygem-loofah(Azure Linux:4.0) All versions No fix listed

References