CVE-2026-126193
Medium 5.3No known exploitationFix availableSoup Sieve: Uncontrolled recursion in Soup Sieve CSS parser lets nested pseudo-class selectors exhaust the Python call stack
Vendor advisory: GHSA-7g44-g9rc-x53w
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 24% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
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.
Weakness: CWE-674
Patching and mitigation
- Patch status
- Fix available (source: Microsoft MSRC)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- msrc.microsoft.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Microsoft | azl4 python-soupsieve 2.8.2-4.azl4 on Azure Linux 4.0 | Not documented | Not documented | Microsoft MSRC |
| pip | soupsieve | from 0.4 up to and including 2.10 | 3.0.2 | GitHub Advisory Database |
Timeline
Advisory
Microsoft advisory published
Patch
Fix documented by Microsoft MSRC
Vendor guidance and references
- Microsoft Security Update Guide (opens in a new tab)vendor-advisory
- GitHub Advisory GHSA-7g44-g9rc-x53w (opens in a new tab)github-advisory
- https://github.com/facelessuser/soupsieve/commit/52de12f157a373614ad0f486d434551c5a4378ee (opens in a new tab)
- https://github.com/facelessuser/soupsieve/pull/306 (opens in a new tab)
- https://github.com/facelessuser/soupsieve/releases/tag/3.0 (opens in a new tab)
- https://github.com/facelessuser/soupsieve/security/advisories/GHSA-7g44-g9rc-x53w (opens in a new tab)