# soupsieve (PyPI)

A modern CSS selector implementation for Beautiful Soup.

- Latest: 4.1.4 (2026-12-01)
- Licence: MIT
- Downloads: 368965363 last month
- Advisories on the latest version: 0

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

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