Soup Sieve: Uncontrolled recursion in Soup Sieve CSS parser lets nested pseudo-class selectors exhaust the Python call stack
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| facelessusersoupsieve | — | Not listed |
| pipsoupsieve |
< 3.0.2→ 3.0.2 |
3.0.2 |
| PyPIsoupsieve |
≥ 0.4, < 3.0.2→ 3.0.2 |
3.0.2 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-126193 py3-soupsieve Fix available
- Debian DEBIAN-CVE-2026-126193 soupsieve Fix available
- Ubuntu UBUNTU-CVE-2026-126193 soupsieve No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com