Skip to content
Threat Feed
low advisory

Soup Sieve: Algorithmic complexity denial-of-service (CVE-2026-126190)

Soup Sieve versions prior to 4.0 are vulnerable to an algorithmic complexity denial-of-service, where processing deeply nested, untrusted HTML or XML documents leads to excessive resource consumption and worker process exhaustion.

CVE search metadata

CVE search record: CVE-2026-126190. Severity: high. CVSS: 7.5. KEV: no. Product: Soup Sieve (< 4.0). Brief: Soup Sieve: Algorithmic complexity denial-of-service (CVE-2026-126190). Brief link: https://feed.craftedsignal.io/briefs/2026-11-soup-sieve-dos-cve-2026-126190/

Triage facts

Revision 1
Applicability
Soup Sieve (< 4.0)
Evidence
Unknown
Severity
Low
Action
Elevated
Sources
1 public source
Freshness
Revision 1Nov 12, 20:49 UTC
Vulnerabilities
1 CVE
Source quality
A1Likely

Soup Sieve is a CSS selector library commonly used with Beautiful Soup 4. The library contains an algorithmic complexity vulnerability in versions prior to 4.0, where improper handling of descendant combinators during CSS selector matching leads to excessive resource consumption. When processing deeply nested, attacker-influenced HTML or XML documents, the library repeatedly traverses ancestors, increasing the polynomial degree of the work required for each additional descendant combinator.

Impact

Applications that utilize the library's select() or select_one() methods, or other Beautiful Soup CSS APIs, to process untrusted documents can experience severe performance degradation or a denial-of-service. Attackers can leverage this to occupy worker processes for seconds or minutes, effectively stalling document processing capabilities. Selectors compiled with the NOCACHE flag remain susceptible to the original uncached, inefficient behavior.

Recommendation

  • Update the Soup Sieve library to version 4.0 or later across all applications that process untrusted HTML or XML content.
  • Audit internal applications to identify those using select() or select_one() methods on input from external users.
  • For environments where immediate patching is not possible, implement strict input validation to limit the depth and complexity of submitted HTML or XML documents before parsing.

Immediate actions

Inventory applications utilizing the Soup Sieve library for HTML parsing.

Application Security 48h

Upgrade all instances of Soup Sieve to version 4.0 or later.

IT Operations 7d

Threat Hunt

Identify CPU-bound processes associated with Beautiful Soup library usage where select() or select_one() methods exhibit high execution duration or high CPU utilization when processing attacker-supplied HTML/XML input.

T1499 medium medium confidence hunt now

Data: Application performance monitoring logs, Process execution duration logs, Library call traces

Mitigations

Upgrade to Soup Sieve 4.0 or later.

immediate IT Operations

CVE-2026-126190