4 matches found
Loofah: CSS Url() Sanitization Bypass Via Escaped Parentheses
Summary "Loofah::HTML5::Scrub.scrubcss" rejected any property whose top-level Crass tokens included a ":url" or ":badurl", and left "url" out of the allowed CSS functions. Both checks ran only against the first parse of the "style" attribute. When "scrubcss" rebuilt each property it emitted...
GHSA-M3X9-938Q-5767 Loofah: CSS url() sanitization bypass via escaped parentheses
Summary Loofah::HTML5::Scrub.scrubcss rejected any property whose top-level Crass tokens included a :url or :badurl, and left url out of the allowed CSS functions. Both checks ran only against the first parse of the style attribute. When scrubcss rebuilt each property it emitted identifiers with...
CVE-2026-126207 Loofah: CSS url() sanitization bypass via escaped parentheses
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.scrubcss checks only the first parse of a style attribute, then rebuilds CSS with identifier escapes decoded so escaped parentheses,...
CVE-2026-126207
The Loofah library, used for manipulating HTML/XML documents, is vulnerable to a CSS url() sanitization bypass in versions prior to 2.25.3 . The root cause lies in Loofah::HTML5::Scrub.scrub_css, which only validates the first parse of a style attribute. Attackers can use escaped parentheses (e.g...