PyPI
CVE-2026-126191
Soup Sieve: Exponential ReDoS in selector compilation via \9-run in CSS_ESCAPES/IDENTIFIER
- Severity
- High 7.5
- Published
- 13 Nov 2026
- Last changed
- 13 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 3.0.2
- Exploit chance
- 0.4% in the next 30 daysHigher than 38% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-6655-6qjp-jx7x
- Sources
- OSV.dev and GitHub
Description
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().
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.
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.
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.
Affected software
| Software | Affected versions |
|---|---|
soupsievePyPI · osv:PyPI:soupsieve |
|
About soupsieve
Vulnerabilities in soupsieve
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-126193Soup Sieve: Uncontrolled recursion in CSS parser lets nested pseudo-class selectors exhaust the Python call stackMedium 5.3 13 Nov 2026
- CVE-2026-126190Soup Sieve: Polynomial-time denial of service in the descendant combinatorHigh 7.5 13 Nov 2026
- CVE-2026-126192Soup Sieve: General sibling combinator inside :has() matches untrusted HTML in quadratic timeMedium 13 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-126191
- GitHub Advisory Database https://github.com/advisories/GHSA-6655-6qjp-jx7x