soupsieve

A modern CSS selector implementation for Beautiful Soup.

4.1.4Latest, 1 Dec 2026
369MDownloads, last month
0Advisories on the latest
12Advisories, all versions
MITLicence
275Stars
5.7/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
Moderate Soup Sieve: General sibling combinator inside :has() matches untrusted HTML in quadratic time CVE-2026-126192 Fixed in 2.10.0 13 Nov 2026
High Soup Sieve: Exponential ReDoS in selector compilation via \9-run in CSS_ESCAPES/IDENTIFIER CVE-2026-126191 Fixed in 3.0.2 13 Nov 2026
Moderate Soup Sieve: Uncontrolled recursion in CSS parser lets nested pseudo-class selectors exhaust the Python call stack CVE-2026-126193 Fixed in 3.0.2 13 Nov 2026
High Soup Sieve: Polynomial-time denial of service in the descendant combinator CVE-2026-126190 Fixed in 4.0.0 13 Nov 2026
Soup Sieve: Polynomial-time ReDoS (O(n²)) in the `IDENTIFIER` / `VALUE` selector sub-patterns CVE-2026-86000 Fixed in 2.9.0 1 Oct 2026
Soup Sieve: Polynomial-time ReDoS (O(n²)) in the whitespace/comment trimming regex `RE_WS_END` (triggers on VALID selectors) CVE-2026-85999 Fixed in 2.9.0 1 Oct 2026
Moderate Soup Sieve: Polynomial-time ReDoS (O(n²)) in the `IDENTIFIER` / `VALUE` selector sub-patterns CVE-2026-86000 Fixed in 2.9.0 17 Sep 2026
Moderate Soup Sieve: Polynomial-time ReDoS (O(n²)) in the whitespace/comment trimming regex `RE_WS_END` (triggers on VALID selectors) CVE-2026-85999 Fixed in 2.9.0 17 Sep 2026
Soup Sieve has Memory Exhaustion via Large Comma-Separated Selector Lists CVE-2026-49476 Fixed in 2.8.4 13 Jul 2026
Soup Sieve: Regular Expression Denial of Service (ReDoS) via Selector Parser CVE-2026-49477 Fixed in 2.8.4 13 Jul 2026
High Soup Sieve has Memory Exhaustion via Large Comma-Separated Selector Lists CVE-2026-49476 Fixed in 2.8.4 9 Jul 2026
High Soup Sieve: Regular Expression Denial of Service (ReDoS) via Selector Parser CVE-2026-49477 Fixed in 2.8.4 9 Jul 2026

In the news

Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.