Read the docs

Quadratic work in Soup Sieve :has() with general sibling combinator

Priority MEDIUM 61CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · Low
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.

Summary

Soup Sieve before 2.10 (PyPI package soupsieve) is affected. When a developer-authored selector places the general sibling combinator inside :has(), matching repeatedly scans the following siblings of each candidate element when the right-hand side is absent, causing quadratic work (CWE-407). An unauthenticated remote attacker can supply a small HTML document to an application that evaluates a fixed selector such as div:has(a ~ b) over untrusted markup, occupying a worker for minutes.

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 2.10, matching a developer-authored selector that places the general sibling combinator inside :has() repeatedly scans each candidate element's following siblings when the right-hand side is absent, producing quadratic work on attacker-controlled HTML. Applications that evaluate a fixed selector such as div:has(a ~ b) over untrusted markup can have a worker occupied for minutes by a small document, while the adjacent sibling form and trusted-only document processing are not affected in the same way. This issue is fixed in version 2.10.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00477 41st percentileScored 2026-11-16
Fix Fixed soupsieve (facelessuser): 2.10soupsieve (PyPI): 2.10.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
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 2.102.10Patch availableCNA
—soupsieve (PyPI)before 2.10.02.10.0Patch availableGHSA-4j63-6c4x-wfg4
  • soupsieve Vendorfacelessuser Affected before 2.10 Fixed in 2.10 Patch available CNA
  • soupsieve (PyPI) Vendor— Affected before 2.10.0 Fixed in 2.10.0 Patch available GHSA-4j63-6c4x-wfg4

Remediation

Upgrade Soup Sieve to version 2.10 or later. The PyPI package soupsieve is fixed in version 2.10.0.

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

  • Fix · CNA soupsieve (facelessuser) Fixed in 2.10
  • Fix · GHSA-4j63-6c4x-wfg4 soupsieve (PyPI) Fixed in 2.10.0 Advisory →

Timeline

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

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-90424 Uncontrolled recursion in Soup Sieve lets selectors exhaust stack CVSS 3.1MEDIUM 5.3
See all 13 →

Sources