CVE-2026-126207 json
Loofah: CSS url() sanitization bypass via escaped parentheses
published 13d ago modified yesterday also EUVD-2026-124713 , GHSA-m3x9-938q-5767
- cvss
- 4.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 21%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems loofah 2.25.3
- github.com/flavorjones/loofah@b198a36 commit
- github.com/flavorjones/loofah#324 pull request
- github.com/flavorjones/loofah/releases/tag/v2.25.3 release
Is CVE-2026-126207 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- yesterday
Exploit prediction
0.29% chance of exploitation in the next 30 days, higher than 21% of all scored CVEs (FIRST EPSS, 2026-11-14).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
| GitHub | 3.1 | 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | loofah | <2.25.3 |
2.25.3 |
Affected products
- flavorjones loofah
Classification
References
-
github.com
/flavorjones/loofah/pull/324
web
-
github.com
/flavorjones/loofah/commit/b198a36e44c9c5408163ac50787825e8ca0b166b
web
-
github.com
/flavorjones/loofah/security/advisories/GHSA-m3x9-938q-5767
web, advisory
-
github.com
/flavorjones/loofah/releases/tag/v2.25.3
web
-
github.com
/flavorjones/loofah
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/loofah/GHSA-m3x9-938q-5767.yml
web
Sources
- CVE List CVE-2026-126207
- GitHub Advisory GHSA-m3x9-938q-5767
- NVD CVE-2026-126207
- Maintainer advisory GHSA-m3x9-938q-5767
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of flavorjones/loofah published their own advisory on GitHub. Reviewed sources take precedence over it.