HIGHCVSS v3.1 7.5Vulnerability

CVE-2026-126191

### Summary The IDENTIFIER/CSS_ESCAPES regex (css_parser.py:119-124) exhibits exponential backtracking on a run of ambiguous digit-escapes (`\9`) in an attribute-name or tag position of an otherwise well-formed selector. It fires at compile time (before the SELECTOR_LIMIT guard) via the public `soupsieve.compile()` and BeautifulSoup `.select()`. ### PoC (verified on soupsieve 2.9.2) import soupsieve as sv sv.compile('[a' + '\\9'*26 + '=x]') # ~57 bytes -> ~10s; ~16x time per +4 chars ### Novelty Distinct from the patched GHSA-836r-... (VALUE regex) and GHSA-2wc2-... (comma-list) advisories, which are fixed in 2.9.2; this is a different regex/vector. ### Reachability CSS selectors are usually developer-controlled, so exposure requires an application that compiles UNTRUSTED selector strings (web-scraping-as-a-service, no-code/query builders, user-defined extraction rules). Where selectors are user-supplied, a ~60-byte string hangs the worker. ### Note This issue was fixed in version 3.0.0, which has been yanked from the PyPI registry. Use versions 3.0.2 and above to upgrade.

Properties

Severity
high
Summary
Soup Sieve: Exponential ReDoS in selector compilation via \9-run in CSS_ESCAPES/IDENTIFIER
Nvd fetched at
2026-11-14T00:40:25.638091+00:00
Epss score
0.00434
Cvss severity
HIGH
Cvss score
7.5
Retrieved at
2026-11-14T00:51:03+00:00
Ghsa published
2026-11-13T16:39:43Z
Source url
https://github.com/advisories/GHSA-6655-6qjp-jx7x
Ghsa updated
2026-11-13T16:39:45Z
Ghsa id
GHSA-6655-6qjp-jx7x
Last source
FIRST EPSS
Score
7.5
Cvss version
3.1
Cve id
CVE-2026-126191
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
First seen by Signal
2026-11-12T19:59:23+00:00
Name
CVE-2026-126191
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Related Entities (3)

AFFECTS (1)

→[Software]pip/soupsieve

HAS_WEAKNESS (1)

VULNERABLE_TO (1)

←[Software]pip/soupsieve

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-126191 (CVSS v3.1 7.5) — Ninja Signal Threat Intelligence | Ninja Signal