CVE-2026-126207
published medium CVSS 3.1 · 4.7Loofah: CSS url() sanitization bypass via escaped parentheses
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| flavorjones | — | loofah< 2.25.3 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.7 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| flavorjones | loofah | < 2.25.3 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-180 CWE-180: Incorrect Behavior Order: Validate Before Canonicalize
- CWE-184 CWE-184: Incomplete List of Disallowed Inputs
References
4Provider assertions
2GitHub_M · cna
Loofah: CSS url() sanitization bypass via escaped parentheses
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e3e4f4af8ffc288a97c38915c4d86bed7e69286eec7fffbead0087f19948bbd0
- Ingested
- 13 Nov 2026, 19:45:46 UTC
- Source record
- Official CVE record