CVE-2026-85999facelessuser soupsieve
Medium 5.3 No auth needed
Follow: this CVE · facelessuser · facelessuser soupsieve We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Sep 17, 2026
- Updated
- Sep 23, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
What happens
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.
What to do
- Apply the vendor's security update for soupsieve.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | soupsieve |
< 2.9.0 |
2.9.0 |
pip install "soupsieve>=2.9.0" |
| PyPI | soupsieve |
< 2.9.0 |
2.9.0 |
pip install "soupsieve>=2.9.0" |
Per OSV / GitHub Advisories (GHSA-j934-xhv5-fg8f, PYSEC-2026-4171). Check the version in your lockfile before upgrading.
Affected products
- facelessuser · soupsieve
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for python-soupsieve · SUSE · SUSE-SU-2026:5164-1 · Nov 10, 2026 Medium
- Security update for python-soupsieve · SUSE · SUSE-SU-2026:24267-1 · Oct 21, 2026 Medium
- Security update for python-soupsieve · SUSE · openSUSE-SU-2026:22149-1 · Oct 21, 2026 Medium
Also: SUSE (+2)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.