soupsieve · Soup Sieve: Uncontrolled recursion
Affects soupsieveSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.0.2 when convenient.
Data as of 13 Nov 2026, 17:35 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.3 |
|---|
- 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:LExploitation 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
A fix is available in Soup Sieve version 3.0.2. Users should upgrade to this version or later to prevent uncontrolled recursion in nested pseudo-class selectors. Until upgraded, applications should consider catching RecursionError exceptions when parsing selectors to handle this failure mode gracefully. No other mitigation is documented or required.
Description
Soup Sieve's CSS selector parser has an uncontrolled recursion vulnerability when parsing nested pseudo-class selectors such as :is(), :not(), :where(), and :has(). An attacker supplying a deeply nested selector string (about 330 levels) can cause a RecursionError by exceeding Python's recursion limit. This leads to a denial of service for the individual request or task parsing the selector. The issue affects versions from 0.4 up to but not including 3.0.2, with a fix available in 3.0.2. No confidentiality or integrity impact is present, and the failure occurs before document matching.
References
- github.com/facelessuser/soupsieve/security/advisories/GHSA-7g44-g9rc-x53w (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-126193 (opens in a new tab)
- github.com/facelessuser/soupsieve/pull/306 (opens in a new tab)
- github.com/facelessuser/soupsieve/commit/52de12f157a373614ad0f486d434551c5a4378ee (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)