Uncontrolled recursion in Soup Sieve lets selectors exhaust stack
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-674.
Summary
Soup Sieve from 0.4 before 3.0 is affected, and the PyPI package soupsieve from 0.4 before 3.0.2 is affected. Deeply nested CSS pseudo-class selectors make recursive parsing exceed Python's recursion limit (CWE-674). An unauthenticated remote attacker can supply such selectors to an application that accepts untrusted selectors, which makes the request or task fail with RecursionError if the exception is not handled. The demonstrated behavior is recoverable and does not crash the interpreter.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
Description from the CNA
Soup Sieve is a CSS selector library for Beautiful Soup. From 0.4 until 3.0, deeply nested CSS pseudo-class selectors can cause recursive parsing to exceed Python’s recursion limit and raise RecursionError . Applications accepting untrusted selectors may experience failure of the affected request or task if the exception is not handled. The demonstrated behavior is recoverable and does not establish an interpreter crash or persistent service-wide denial of service. This vulnerability 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 | 0.4 to before 3.0 | 3.0 | Patch available | CNA |
| — | soupsieve (PyPI) | 0.4 to before 3.0.2 | 3.0.2 | Patch available | GHSA-7g44-g9rc-x53w |
- soupsieve Vendorfacelessuser Affected 0.4 to before 3.0 Fixed in 3.0 Patch available CNA
- soupsieve (PyPI) Vendor— Affected 0.4 to before 3.0.2 Fixed in 3.0.2 Patch available GHSA-7g44-g9rc-x53w
Remediation
Upgrade Soup Sieve to version 3.0 or later for the facelessuser soupsieve entry, and to version 3.0.2 or later for the PyPI soupsieve package.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
- Fix · CNA soupsieve (facelessuser) Fixed in 3.0
- Fix · GHSA-7g44-g9rc-x53w soupsieve (PyPI) Fixed in 3.0.2 Advisory →
Timeline
- 2026-11-12 Threatist record created from CVE-2026-126193
- 2026-11-13 Alias added: GHSA-7g44-g9rc-x53w
- 2026-11-13 Fix available: PyPI/[email protected] · GHSA-7g44-g9rc-x53w
- 2026-11-13 CVSS score added · GHSA-7g44-g9rc-x53w
- 2026-11-13 Weakness changed · GHSA-7g44-g9rc-x53w
- 2026-11-13 6 new references · GHSA-7g44-g9rc-x53w
- 2026-11-16 CISA SSVC decision points changed
References
Other 5
- https://github.com/facelessuser/soupsieve/security/advisories/GHSA-7g44-g9rc-x53w
- https://github.com/facelessuser/soupsieve/pull/306
- https://github.com/facelessuser/soupsieve/commit/52de12f157a373614ad0f486d434551c5a4378ee
- https://github.com/facelessuser/soupsieve/releases/tag/3.0
- https://github.com/facelessuser/soupsieve
More facelessuser vulnerabilities
- TI-2026-90415 Soup Sieve exponential ReDoS in selector compilation via \9-run CVSS 3.1HIGH 7.5
- 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-90412 Soup Sieve: Quadratic-time denial of service when matching :has() CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-126193 · CVE Program
- CVE-2026-126193 · NVD
- FIRST EPSS
- GHSA-7g44-g9rc-x53w · 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