Read the docs

Uncontrolled recursion in Soup Sieve lets selectors exhaust stack

Priority MEDIUM 63CWE-674Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00308 23rd percentileScored 2026-11-16
Fix Fixed soupsieve (facelessuser): 3.0soupsieve (PyPI): 3.0.2

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

VendorProductAffected versionsFixed inStatusSource
facelessusersoupsieve0.4 to before 3.03.0Patch availableCNA
—soupsieve (PyPI)0.4 to before 3.0.23.0.2Patch availableGHSA-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

  1. 2026-11-12 Threatist record created from CVE-2026-126193
  2. 2026-11-13 Alias added: GHSA-7g44-g9rc-x53w
  3. 2026-11-13 Fix available: PyPI/[email protected] · GHSA-7g44-g9rc-x53w
  4. 2026-11-13 CVSS score added · GHSA-7g44-g9rc-x53w
  5. 2026-11-13 Weakness changed · GHSA-7g44-g9rc-x53w
  6. 2026-11-13 6 new references · GHSA-7g44-g9rc-x53w
  7. 2026-11-16 CISA SSVC decision points changed

References

  • 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
See all 13 →

Sources