CVE-2026-85999
soupsieve: Soup Sieve: Denial of Service via crafted CSS selectors
Overview
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.
Source: OX vulnerability database
Severity
5.3 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness: CWE-400, CWE-1333
Affected packages · 3
Operating systems · 25 fixes
Red Hat 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | openshift4-ose-ironic-rhel9 +2 | affected |
| 8 | openshift4-ose-ironic-rhel9 +2 | affected |
| 9 | openshift4-ose-ironic-rhel9 +3 | affected |
SUSE Linux Enterprise 2 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.7 | python3-soupsieve | 1.9.5-150200.3.6.1 | SUSE-SU-2026:5164-1 |
| 15.7 | python311-soupsieve | 2.5-150600.3.6.1 | SUSE-SU-2026:4365-1 |
| 16.0 | python313-soupsieve | 2.6-160000.5.1 | SUSE-SU-2026:24267-1 |
chainguard 1 release · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.3-r7 | |
| airflow-2 | 2.11.2-r22 | |
| datadog-agent-fips-7-78 | 7.78.4-r19 | |
| datadog-agent-7-78 | 7.78.4-r34 | |
| datadog-agent-7-81 | 7.81.3-r20 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | soupsieve | affected |
| 12 | soupsieve | affected |
| 13 | soupsieve | affected |
| 14 | soupsieve | 4.1-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| soupsieve | affected |
minimos 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| mageai | 0.9.80-r0 | |
| airflow-3 | 3.3.1-r0 | |
| checkov | 3.3.9-r0 | |
| datadog-agent-7 +1 | 7.82.3-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python313-soupsieve +1 | 2.9.2-1.1 | openSUSE-SU-2026:11866-1 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | python313-soupsieve | 2.6-160000.5.1 | openSUSE-SU-2026:22149-1 |
wolfi 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.3-r7 | |
| datadog-agent-7-78 | 7.78.4-r34 | |
| datadog-agent-7-81 | 7.81.3-r20 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-85999
- github.com https://github.com/facelessuser/soupsieve
- github.com https://github.com/facelessuser/soupsieve/commit/cf198fcddc9230f06ed39f974eba0ce076b85cda
- github.com https://github.com/facelessuser/soupsieve/releases/tag/2.9
- github.com https://github.com/facelessuser/soupsieve/security/advisories/GHSA-j934-xhv5-fg8f
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-85999
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-85999
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.