1. Home
  2. Vulnerabilities
  3. CVE-2026-126190

CVE-2026-126190

Soup Sieve: Polynomial-time denial of service in the descendant combinator

Published 12 Nov 2026 · modified 13 Nov 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Medium 45/100

Summary

Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 4.0, Soup Sieve repeatedly walks the same ancestors while matching descendant combinators, and each additional descendant combinator raises the polynomial degree of the work on deeply nested attacker-influenced HTML or XML. Applications using selectors such as section div div through select(), select_one(), or Beautiful Soup CSS APIs against untrusted documents can have a worker occupied for seconds or minutes, while trusted-only document processing is not affected. Selectors compiled with NOCACHE continue to use the old uncached behavior. This issue is fixed in version 4.0.

Affected products and versions

Facelessuser (1 line(s))
Facelessuser
ProductVersionsFixed inSource
soupsieve Versions not specified — CNA (vendor or assigner)
Pypi (1 line(s))
Pypi
ProductVersionsFixed inSource
soupsieve before 4.0.0 (excluded) 4.0.0 GitHub Advisory

Fix

Upgrade — PyPI/soupsieve 4.0.0official source

Source : GitHub Advisory

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, CNA:GitHub_M)
Weakness
CWE-407 · Autre (CWE-407)

How this data is obtained and calculated