CVE-2026-126207Loofah: CSS url() sanitization bypass via escaped parentheses
- 4.7MediumCVSS base score
- 0.29%Exploitation in 30 daysEPSS · top 78% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 2 days later
· 2 days later
Published
- 1 day later
· 1 day later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
| NVDNVD · Awaiting Analysis | 3.1 | Medium4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.29% · top 78% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.7.
Affected products
- affected < 2.25.3
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsloofahGHSA-m3x9-938q-5767 (opens in a new tab)
References
References4
- https://github.com/flavorjones/loofah/security/advisories/GHSA-m3x9-938q-5767 (opens in a new tab)x_refsource_CONFIRM
- https://github.com/flavorjones/loofah/pull/324 (opens in a new tab)x_refsource_MISC
- https://github.com/flavorjones/loofah/commit/b198a36e44c9c5408163ac50787825e8ca0b166b (opens in a new tab)x_refsource_MISC
- https://github.com/flavorjones/loofah/releases/tag/v2.25.3 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-124713 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-m3x9-938q-5767 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-126207)Record last updated .