Read the docs

Soup Sieve exponential ReDoS in selector compilation via \9-run

Priority HIGH 72CWE-1333Published · 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 · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1333.

Summary

Soup Sieve, a CSS selector library for Beautiful Soup 4, backtracks exponentially in its CSS_ESCAPES and IDENTIFIER regular-expression subpatterns when an attribute-name or tag in a valid selector contains runs of ambiguous digit escapes. The stall happens during selector compilation in soupsieve.compile() or Beautiful Soup select(), before SELECTOR_LIMIT is applied, so an application that accepts untrusted selector strings can have a worker stalled by a short input. CWE-1333 (Inefficient Regular Expression Complexity) applies. CVSS 3.1 scores it 7.5 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

Description from the CNA

Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 3.0, the CSS_ESCAPES and IDENTIFIER regular-expression subpatterns can backtrack exponentially on runs of ambiguous digit escapes in an attribute-name or tag position of an otherwise valid selector. The failure occurs during selector compilation through soupsieve.compile() or Beautiful Soup select() before SELECTOR_LIMIT is applied, so an application that accepts untrusted selector strings can have a worker stalled by a short input. This issue is fixed in version 3.0.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00434 38th 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
facelessusersoupsievebefore 3.03.0Patch availableCNA
—soupsieve (PyPI)before 3.0.23.0.2Patch availableGHSA-6655-6qjp-jx7x
  • soupsieve Vendorfacelessuser Affected before 3.0 Fixed in 3.0 Patch available CNA
  • soupsieve (PyPI) Vendor— Affected before 3.0.2 Fixed in 3.0.2 Patch available GHSA-6655-6qjp-jx7x

Remediation

Upgrade soupsieve to version 3.0 or later. The PyPI package soupsieve is fixed in 3.0.2, and versions before 3.0 are affected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

  • Fix · CNA soupsieve (facelessuser) Fixed in 3.0
  • Fix · GHSA-6655-6qjp-jx7x soupsieve (PyPI) Fixed in 3.0.2 Advisory →

Timeline

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

References

  • 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-90424 Uncontrolled recursion in Soup Sieve lets selectors exhaust stack CVSS 3.1MEDIUM 5.3
  • TI-2026-90412 Soup Sieve: Quadratic-time denial of service when matching :has() CVSS 3.1MEDIUM 5.3
See all 13 →

Sources