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

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-11-12T20:53:55.553Z
- Modified: 2026-11-13T20:18:28.757Z
- Also known as: GHSA-m3x9-938q-5767
- Weaknesses: CWE-180, CWE-184
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- flavorjones loofah: < 2.25.3
- loofah (RubyGems): before 2.25.3

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`

## References

- <https://github.com/flavorjones/loofah/security/advisories/GHSA-m3x9-938q-5767> (web)
- <https://github.com/flavorjones/loofah/pull/324> (web)
- <https://github.com/flavorjones/loofah/commit/b198a36e44c9c5408163ac50787825e8ca0b166b> (web)
- <https://github.com/flavorjones/loofah/releases/tag/v2.25.3> (web)
- <https://github.com/flavorjones/loofah> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/GHSA-m3x9-938q-5767.yml> (web)

## Sources

- CVE List: [CVE-2026-126207](https://www.cve.org/CVERecord?id=CVE-2026-126207), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-m3x9-938q-5767](https://github.com/advisories/GHSA-m3x9-938q-5767), CC-BY-4.0, modified 2026-11-12
- NVD: [CVE-2026-126207](https://nvd.nist.gov/vuln/detail/CVE-2026-126207), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-126207 · Whole record: https://cve.day/CVE-2026-126207.json · Rebuilt by cve.day 2026-11-25T22:59:50.564Z
