CVE-2026-85999
published medium CVSS 3.1 · 5.3Soup Sieve: Polynomial-time ReDoS (O(n²)) in the whitespace/comment trimming regex `RE_WS_END` (triggers on VALID selectors)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| facelessuser | — | soupsieve< 2.9 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | SLE-15-SP7 | python3-soupsievenoarch | Advisory build | 1.9.5-150200.3.6.1 | SUSE-SU-2026:5164-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-soupsievenoarch | Advisory build | 2.5-150600.3.6.1 | SUSE-SU-2026:4365-1 |
| SUSE / openSUSE | SLE-16 | python313-soupsievenoarch | Advisory build | 2.6-160000.5.1 | SUSE-SU-2026:24267-1 |
| SUSE / openSUSE | SLE-3-SP7 | python311-soupsievenoarch | Advisory build | 2.5-150600.3.6.1 | SUSE-SU-2026:4365-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-soupsievenoarch | Advisory build | 2.6-160000.5.1 | OPENSUSE-SU-2026:22149-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-soupsieveaarch64 | Advisory build | 2.9.2-1.1 | OPENSUSE-SU-2026:11866-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-soupsieveppc64le | Advisory build | 2.9.2-1.1 | OPENSUSE-SU-2026:11866-1 |
Show 6 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-soupsieves390x | Advisory build | 2.9.2-1.1 | OPENSUSE-SU-2026:11866-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-soupsievex86_64 | Advisory build | 2.9.2-1.1 | OPENSUSE-SU-2026:11866-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-soupsieveaarch64 | Advisory build | 2.9.2-1.1 | OPENSUSE-SU-2026:11866-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-soupsieveppc64le | Advisory build | 2.9.2-1.1 | OPENSUSE-SU-2026:11866-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-soupsieves390x | Advisory build | 2.9.2-1.1 | OPENSUSE-SU-2026:11866-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-soupsievex86_64 | Advisory build | 2.9.2-1.1 | OPENSUSE-SU-2026:11866-1 |
Description
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 2.9, selector_iter in src/soupsieve/css_parser.py trims the raw selector with RE_WS_END, an end-anchored WSC whitespace-and-comment expression used with search(), so the regular expression engine retries a greedy scan at every starting offset. An attacker-controlled valid selector containing a long internal whitespace run, or a selector containing a long CSS comment run followed by another token, causes quadratic CPU work before tokenization. User-controlled selectors can reach the path through soupsieve.compile() and BeautifulSoup.select(), while applications using only hard-coded selectors are unaffected. This root cause is separate from the IDENTIFIER and VALUE backtracking vulnerability because the cost occurs in RE_WS_END.search during trimming rather than token matching. The resulting CPU consumption can hold the Python GIL, exhaust workers, and stall a service without causing memory corruption or code execution. The issue is fixed in version 2.9.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| facelessuser | soupsieve | < 2.9 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-400 CWE-400: Uncontrolled Resource Consumption
- CWE-1333 CWE-1333: Inefficient Regular Expression Complexity
References
3Provider assertions
2GitHub_M · cna
Soup Sieve: Polynomial-time ReDoS (O(n²)) in the whitespace/comment trimming regex `RE_WS_END` (triggers on VALID selectors)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7b467cd2f24b7957fea790d3f600e24e9794272788767477b3743b470f5869fd
- Ingested
- 23 Sep 2026, 09:37:04 UTC
- Source record
- Official CVE record