CVE-2026-126189

published 12 Nov 2026 · updated 16 Nov 2026

Soup Sieve: Quadratic-time denial of service when matching `:has()`

5.3MediumCVSS 5.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 4.0.1, Soup Sieve repeatedly searches descendant subtrees for each candidate evaluated by :has() and repeatedly reevaluates a parent containing :has(> ...) for each child, causing quadratic matching on deeply nested or wide attacker-influenced HTML or XML. Applications using ordinary fixed selectors through select(), select_one(), or Beautiful Soup CSS APIs against untrusted documents can have a worker occupied for seconds or minutes, while applications that process only trusted documents are not affected. Selectors compiled with NOCACHE continue to use the old uncached behavior. This issue is fixed in version 4.0.1.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
facelessuser<4.0.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-126189 severity on Zeptric[![CVE-2026-126189](https://zeptric.io/badge/cve/CVE-2026-126189.svg)](https://zeptric.io/cve/CVE-2026-126189)