Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach endpoint accepting user CSS selector
-
DeliverySubmit selector with long whitespace/comment run
-
ExploitTrigger quadratic RE_WS_END.search during trimming
-
ExecutionExhaust CPU and hold GIL
-
ImpactStall workers / deny service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the application pass attacker-controlled CSS selectors into soupsieve.compile() or BeautifulSoup.select() on a vulnerable soupsieve (< 2.9); applications that use only hard-coded/static selectors are entirely unaffected, which is the primary limiting factor. The malicious input is itself a syntactically valid selector containing either a long internal whitespace run or a long CSS comment run followed by another token, which drives RE_WS_END.search into quadratic work during pre-tokenization trimming. No authentication or user interaction is needed at the library level (PR:N/UI:N), and impact is limited to availability (CPU/GIL/worker exhaustion) with no confidentiality or integrity effect. |
| Impact | This is a moderate-severity algorithmic-complexity denial of service (CWE-400), not a memory-corruption or code-execution flaw despite the misleading 'RCE'/'Buffer Overflow' tags - the description explicitly states there is no memory corruption or code execution. The vendor CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, 5.3) is internally consistent with a network-reachable, low-complexity, unauthenticated availability-only impact, and I concur with it. The 'network vector' is realistic only because attacker-controlled CSS selectors can reach the vulnerable trimming path via soupsieve.compile() or BeautifulSoup.select(); an app that only uses hard-coded selectors is not exploitable, which is the single most important real-world limiter. No EPSS score, no CISA KEV listing, and no explicit public exploit are provided, so this is not confirmed as actively exploited - however the fix commit ships regression tests (whitespace runs of 2000-20000 chars) that effectively function as a reproducible proof of the quadratic blowup. Overall this is a genuine but bounded worker-exhaustion risk for services that feed untrusted selectors to Beautiful Soup, and a low priority for the (majority) of deployments using only static selectors. |
| Exploit ScenarioDerived | An application exposes a search/scraping feature that passes a user-supplied CSS selector into BeautifulSoup.select() or soupsieve.compile(). The attacker submits a valid selector containing a very long internal whitespace run (e.g. 'a' + 20000 spaces + 'b') or a long CSS comment followed by a token, causing RE_WS_END.search to retry a greedy scan at every offset and consume quadratic CPU. Repeated requests hold the Python GIL and exhaust worker threads, stalling the service; no public exploit is identified but the patch's performance tests demonstrate the trigger input. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Algorithmic-complexity denial of service in Soup Sieve versions prior to 2.9 allows remote attackers to exhaust CPU and stall Python services by supplying a valid CSS selector containing a long internal whitespace run, or a long CSS comment run followed by another token, to soupsieve.compile() or BeautifulSoup.select(). The pre-tokenization trimming step performs quadratic work against the attacker-controlled string, and because the parsing happens in-process it can hold the GIL and starve worker threads, though there is no memory corruption or code execution and no confidentiality or integrity impact (CVSS 5.3, AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L). Applications that only pass hard-coded, static selectors are entirely unaffected, and no public exploit code was identified at time of analysis. Vendor-released patch: 2.9.
RemediationAI
Upgrade Soup Sieve to 2.9, the vendor-released patch version (https://github.com/facelessuser/soupsieve/releases/tag/2.9), and rebuild or redeploy any container or virtualenv that pins soupsieve below 2.9, including transitive pins pulled in by Beautiful Soup 4; verify with pip show soupsieve or pip index/pip freeze that 2.9 or later is installed. If an immediate upgrade is not possible, the highest-leverage compensating control is to stop passing untrusted strings directly into soupsieve.compile() or BeautifulSoup.select(): enforce a strict server-side allowlist of selector patterns, or reject selectors containing long whitespace runs or CSS comment sequences, since applications using only hard-coded selectors are entirely unaffected and this fully removes exposure at the cost of reduced user flexibility. As a secondary control, cap the accepted selector length and the length of internal whitespace/comment runs before parsing; this bounds the quadratic work but can break legitimate complex selectors and is only a partial mitigation. Where per-request isolation is already available, execute selector parsing in a worker process or thread pool with a strict timeout and CPU quota so that GIL contention and worker exhaustion are contained to a single sandbox rather than the whole service; the trade-off is added latency and operational complexity. Network-layer filtering, rate limiting, and request size limits reduce the rate at which an attacker can drive the CPU-heavy path but do not address the underlying complexity, and any monitoring should watch for anomalous CPU spikes or request timeouts correlated with user-supplied selector parameters.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Soup Sieve is a CSS selector library used by Beautiful Soup 4 to translate CSS selectors into match operations, so any application that accepts user-supplied CSS selectors (filter builders, query APIs, admin search boxes) exposes this path. The root cause is a regular-expression design flaw rather than a memory-safety bug: prior to 2.9, selector_iter in src/soupsieve/css_parser.py trimmed trailing whitespace and comments with RE_WS_END, compiled from f'{WSC}*$' and invoked via search(). Because the pattern was end-anchored but evaluated with search(), the engine retried a greedy scan at every starting offset of the input, producing O(n^2) work before tokenization; a selector with a long whitespace run or a long CSS comment run followed by another token therefore inflates CPU time quadratically. This is CWE-400 (Uncontrolled Resource Consumption) in its algorithmic-complexity form, distinct from the separate IDENTIFIER/VALUE backtracking issue, because the cost is incurred during RE_WS_END trimming rather than during token matching. The upstream commit cf198fcddc9230f06ed39f974eba0ce076b85cda corrects this by rewriting the COMMENTS expression to r'(?:/\*(?:[^*]|\*(?!/))*\*/)' and replacing the end-anchored pattern with an anchored '^(?:[ \t]|(?:\n\r|(?!\n\r)[\n\f\r])|COMMENTS)*' match performed against the reversed selector string, with new performance regression tests at 2000, 4000, 8000, 16000 and 20000 spaces. The CVE record carries misleading tags ('RCE', 'Buffer Overflow') that are not supported by the technical evidence: the impact is confined to availability through CPU/GIL exhaustion, with no memory corruption or code execution.
Know when Soupsieve gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Network-reachable via user-supplied selectors with low complexity and no auth/interaction; availability-only impact (worker/CPU exhaustion), no confidentiality or integrity effect.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Desktop 15 SP7 | Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | Affected |
| SUSE Linux Enterprise Module for Python 3 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| openSUSE Leap 16.0 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP4 | Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | Affected |
| SUSE Linux Enterprise Module for Python 3 15 SP4 | Affected |
| SUSE Linux Enterprise Module for Python 3 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Python 3 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5 | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE Enterprise Storage 7 | Affected |
| SUSE Enterprise Storage 7.1 | Affected |
| SUSE Linux Enterprise Desktop 15 SP2 | Affected |
| SUSE Linux Enterprise Desktop 15 SP3 | Affected |
| SUSE Linux Enterprise Desktop 15 SP4 | Affected |
| SUSE Linux Enterprise Desktop 15 SP5 | Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP2 | Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP3 | Affected |
| SUSE Linux Enterprise Real Time 15 SP2 | Affected |
| SUSE Linux Enterprise Real Time 15 SP3 | Affected |
| SUSE Linux Enterprise Real Time 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP2 | Affected |
| SUSE Linux Enterprise Server 15 SP2-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP3 | Affected |
| SUSE Linux Enterprise Server 15 SP3-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Affected |
| SUSE Manager Proxy 4.1 | Affected |
| SUSE Manager Proxy 4.2 | Affected |
| SUSE Manager Proxy 4.3 | Affected |
| SUSE Manager Proxy LTS 4.3 | Affected |
| SUSE Manager Retail Branch Server 4.1 | Affected |
| SUSE Manager Retail Branch Server 4.2 | Affected |
| SUSE Manager Retail Branch Server 4.3 | Affected |
| SUSE Manager Retail Branch Server LTS 4.3 | Affected |
| SUSE Manager Server 4.1 | Affected |
| SUSE Manager Server 4.2 | Affected |
| SUSE Manager Server 4.3 | Affected |
| SUSE Manager Server LTS 4.3 | Affected |
| openSUSE Leap 15.3 | Affected |
| openSUSE Leap 15.4 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-81690
GHSA-j934-xhv5-fg8f
NVD
CVE.org
EPSS
VulDB
Exploit-DB