
CVE catalog
CVE-2026-85999
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 wh
- Severity
- Medium · CVSS 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.61% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | soupsieve | sid | 2.8.4-1 | vulnerable |
| Debian | soupsieve | forky | 2.8.4-1 | vulnerable |
| Debian | soupsieve | trixie | 2.7-1 | vulnerable |
| Debian | soupsieve | bookworm | 2.3.2-1 | vulnerable |
| PyPI | soupsieve | Not reported | 2.9.0 | fixed |
| PyPI | soupsieve | Not reported | 2.9.0 | fixed |
| Suse | python-soupsieve | linux enterprise module for python 3 15 sp7 | 2.5-150600.3.6.1 | fixed |
| Opensuse | python-soupsieve | tumbleweed | 2.9.2-1.1 | fixed |
| Opensuse | python-soupsieve | leap 16.0 | 2.6-160000.5.1 | fixed |
| Suse | python-soupsieve | linux enterprise server 16.0 | 2.6-160000.5.1 | fixed |
| Suse | python-soupsieve | linux enterprise server for sap applications 16.0 | 2.6-160000.5.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | soupsieve | source | sid | (unfixed) | not yet assigned | Not reported | [1148449] |
| Debian | soupsieve | source | forky | (unfixed) | not yet assigned | Not reported | [1148449] |
| Debian | soupsieve | source | trixie | (unfixed) | not yet assigned | Not reported | [1148449] |
| Debian | soupsieve | source | bookworm | (unfixed) | not yet assigned | Not reported | [1148449] |
| PyPI | soupsieve | PyPI | Not reported | 2.9.0 | Not reported | GHSA-J934-XHV5-FG8F | Not reported |
| PyPI | soupsieve | PyPI | Not reported | 2.9.0 | Not reported | PYSEC-2026-4171 | Not reported |
| Suse | python-soupsieve | rpm | linux enterprise module for python 3 15 sp7 | 2.5-150600.3.6.1 | Not reported | SUSE-SU-2026:4365-1 | Not reported |
| Opensuse | python-soupsieve | rpm | tumbleweed | 2.9.2-1.1 | Not reported | OPENSUSE-SU-2026:11866-1 | Not reported |
| Opensuse | python-soupsieve | rpm | leap 16.0 | 2.6-160000.5.1 | Not reported | OPENSUSE-SU-2026:22149-1 | Not reported |
| Suse | python-soupsieve | rpm | linux enterprise server 16.0 | 2.6-160000.5.1 | Not reported | SUSE-SU-2026:24267-1 | Not reported |
| Suse | python-soupsieve | rpm | linux enterprise server for sap applications 16.0 | 2.6-160000.5.1 | Not reported | SUSE-SU-2026:24267-1 | Not reported |
Notes
[trixie] soupsieve: Minor issue [bookworm] soupsieve: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-soupsieve]Affected
Source package: [soupsieve]
Details (2)
2.3.2-1· all · bookwormAffected
nvd · soupsieve · debian · bookworm; nvd · soupsieve · debian · 12
2.3.2-1· all · bookwormAffected
nvd · soupsieve · debian · bookworm; nvd · soupsieve · debian · 12
[Debian 13 (Trixie)]
- [python3-soupsieve]Affected
Source package: [soupsieve]
Details (2)
2.7-1· all · trixieAffected
nvd · soupsieve · debian · 13
2.7-1· all · trixieAffected
nvd · soupsieve · debian · 13
[openSUSE Tumbleweed]
- [python313-soupsieve]Unknown
Source package: [python-soupsieve]
Details (1)
2.8.4-1.2· noarch · tumbleweedUnknown · Fixed:
2.9.2-1.1Version impact unknown
nvd · python-soupsieve · opensuse · tumbleweed
- [python314-soupsieve]Unknown
Source package: [python-soupsieve]
Details (1)
2.8.4-1.2· noarch · tumbleweedUnknown · Fixed:
2.9.2-1.1Version impact unknown
nvd · python-soupsieve · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11866-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-85999]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-85999]
- [https://osv.dev/vulnerability/PYSEC-2026-4171]
- [https://osv.dev/vulnerability/SUSE-SU-2026:24267-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:4365-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11866-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:22149-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-85999]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-85999.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]