CVE-2026-126191: Soup Sieve · Exponential ReDoS in selector compilation via \9-run in CSS_ESCAPES/IDENTIFIER
Affects soupsieveSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 3.0.2 soon.
Data as of 13 Nov 2026, 17:35 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 3.0.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade soupsieve to 3.0.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIsoupsieve | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Soup Sieve to version 3.0.2 or later, which contains the fix for this vulnerability. Avoid using versions prior to 3.0.2. Since the issue occurs during selector compilation, do not compile untrusted CSS selectors without proper validation or sanitization. Note that version 3.0.0 was yanked and should not be used.
Description
Soup Sieve versions prior to 3.0.2 contain a regular expression vulnerability in the IDENTIFIER/CSS_ESCAPES regex used during selector compilation. This flaw causes exponential backtracking on a sequence of ambiguous digit-escapes (\9) in CSS selectors, leading to denial of service by hanging the process at compile time. The issue affects the public soupsieve.compile() function and BeautifulSoup's .select() method when processing untrusted selector strings. The vulnerability is fixed in version 3.0.2 and later.
References
- github.com/facelessuser/soupsieve/security/advisories/GHSA-6655-6qjp-jx7x (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-126191 (opens in a new tab)
- github.com/facelessuser/soupsieve/pull/300 (opens in a new tab)
- github.com/facelessuser/soupsieve/commit/dbfa2854ff31a863326bd6660d4e55c6f068db9e (opens in a new tab)
- github.com/facelessuser/soupsieve (opens in a new tab)
- github.com/facelessuser/soupsieve/releases/tag/3.0 (opens in a new tab)