MEDIUMCVSS v3.1 4.7Vulnerability

CVE-2026-126207

## Summary `Loofah::HTML5::Scrub.scrub_css` rejected any property whose top-level Crass tokens included a `:url` or `:bad_url`, and left `url` out of the allowed CSS functions. Both checks ran only against the first parse of the `style` attribute. When `scrub_css` rebuilt each property it emitted identifiers with their CSS escapes decoded, so parentheses written as escapes — `url\28 …\29` — hid the `url` token from the checks, and the rebuilt value was re-parsed into a live `url()` that nothing checked again. An escaped property name, six-digit escapes, escaped comments and escaped quotes all reached the same place. ## Impact A sanitized `style` attribute could make a viewer's browser issue a request to an attacker-chosen URL. `list-style` fetches on render with no interaction, `cursor` on hover. That leaks the viewer's IP address, user agent and access timing, and can reach hosts routable only from the viewer's network. No script survives sanitization and the attacker cannot read the response, so the request itself is the whole impact. Applications that sanitize user-supplied HTML with Loofah's default allowlist and display it to other people are affected. ## Mitigation Upgrade to Loofah >= 2.25.3. ## Credit Reported by NotAFlightRisk through GitHub's private vulnerability reporting.

Properties

Severity
medium
Summary
Loofah: CSS url() sanitization bypass via escaped parentheses
Nvd fetched at
2026-11-14T00:40:25.638091+00:00
Epss score
0.00287
Cvss severity
MEDIUM
Cvss score
4.7
Retrieved at
2026-11-14T00:51:03+00:00
Ghsa published
2026-11-12T21:05:41Z
Source url
https://github.com/advisories/GHSA-m3x9-938q-5767
Ghsa updated
2026-11-12T21:05:41Z
Ghsa id
GHSA-m3x9-938q-5767
Last source
FIRST EPSS
Score
4.7
Cvss version
3.1
Cve id
CVE-2026-126207
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
First seen by Signal
2026-11-13T00:03:24+00:00
Name
CVE-2026-126207
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N

Related Entities (4)

AFFECTS (1)

→[Software]rubygems/loofah

VULNERABLE_TO (1)

←[Software]rubygems/loofah

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-126207 (CVSS v3.1 4.7) — Ninja Signal Threat Intelligence | Ninja Signal