Soup Sieve exponential ReDoS in selector compilation via \9-run
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1333.
Summary
Soup Sieve, a CSS selector library for Beautiful Soup 4, backtracks exponentially in its CSS_ESCAPES and IDENTIFIER regular-expression subpatterns when an attribute-name or tag in a valid selector contains runs of ambiguous digit escapes. The stall happens during selector compilation in soupsieve.compile() or Beautiful Soup select(), before SELECTOR_LIMIT is applied, so an application that accepts untrusted selector strings can have a worker stalled by a short input. CWE-1333 (Inefficient Regular Expression Complexity) applies. CVSS 3.1 scores it 7.5 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 3.0, the CSS_ESCAPES and IDENTIFIER regular-expression subpatterns can backtrack exponentially on runs of ambiguous digit escapes in an attribute-name or tag position of an otherwise valid selector. The failure occurs during selector compilation through soupsieve.compile() or Beautiful Soup select() before SELECTOR_LIMIT is applied, so an application that accepts untrusted selector strings can have a worker stalled by a short input. This issue is fixed in version 3.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| facelessuser | soupsieve | before 3.0 | 3.0 | Patch available | CNA |
| — | soupsieve (PyPI) | before 3.0.2 | 3.0.2 | Patch available | GHSA-6655-6qjp-jx7x |
- soupsieve Vendorfacelessuser Affected before 3.0 Fixed in 3.0 Patch available CNA
- soupsieve (PyPI) Vendor— Affected before 3.0.2 Fixed in 3.0.2 Patch available GHSA-6655-6qjp-jx7x
Remediation
Upgrade soupsieve to version 3.0 or later. The PyPI package soupsieve is fixed in 3.0.2, and versions before 3.0 are affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA soupsieve (facelessuser) Fixed in 3.0
- Fix · GHSA-6655-6qjp-jx7x soupsieve (PyPI) Fixed in 3.0.2 Advisory →
Timeline
- 2026-11-12 Threatist record created from CVE-2026-126191
- 2026-11-13 Alias added: GHSA-6655-6qjp-jx7x
- 2026-11-13 Fix available: PyPI/[email protected] · GHSA-6655-6qjp-jx7x
- 2026-11-13 CVSS score added · GHSA-6655-6qjp-jx7x
- 2026-11-13 Weakness changed · GHSA-6655-6qjp-jx7x
- 2026-11-13 6 new references · GHSA-6655-6qjp-jx7x
- 2026-11-13 CISA SSVC decision points changed
References
Other 5
- https://github.com/facelessuser/soupsieve/security/advisories/GHSA-6655-6qjp-jx7x
- https://github.com/facelessuser/soupsieve/pull/300
- https://github.com/facelessuser/soupsieve/commit/dbfa2854ff31a863326bd6660d4e55c6f068db9e
- https://github.com/facelessuser/soupsieve/releases/tag/3.0
- https://github.com/facelessuser/soupsieve
More facelessuser vulnerabilities
- TI-2026-47703 pymdown-extensions: Exponential-backtracking ReDoS in caret, tilde, betterem, and magiclink inline processors CVSS 3.1HIGH 7.5
- TI-2026-36631 Soup Sieve: Regular Expression Denial of Service (ReDoS) in soupsieve Selector Parser CVSS 3.1HIGH 7.5
- TI-2026-36630 Soup Sieve: Memory Exhaustion via Large Comma-Separated Selector Lists in soupsieve CVSS 3.1HIGH 7.5
- TI-2023-15603 Arbitrary file inclusion with the pymdowm-snippets extension CVSS 3.1HIGH 7.5
- TI-2026-90424 Uncontrolled recursion in Soup Sieve lets selectors exhaust stack CVSS 3.1MEDIUM 5.3
- TI-2026-90412 Soup Sieve: Quadratic-time denial of service when matching :has() CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-126191 · CVE Program
- CVE-2026-126191 · NVD
- FIRST EPSS
- GHSA-6655-6qjp-jx7x · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences