Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint accepting user CSS selectors
-
DeliverySubmit long identifier/unquoted attribute-value selector that fails match
-
ExploitTrigger quadratic regex backtracking in css_parser
-
ExecutionPin Python GIL and exhaust workers
-
ImpactService stall / denial of 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 | Requires that the application pass ATTACKER-CONTROLLED CSS selectors into soupsieve via soupsieve.compile(), soupsieve.select(), or BeautifulSoup.select(); the malicious selector must contain a long identifier or unquoted attribute-value run followed by input that makes the overall match fail (e.g. '[a=' + 'a'*12000). The key LIMITING factor is that applications using only hard-coded/developer-defined selectors are completely unaffected - user-supplied selector input is the sole reachable path. No authentication or user interaction is otherwise required (PR:N/UI:N), and it affects all soupsieve versions prior to 2.9 in default configuration once the vulnerable path is reachable. |
| Impact | This is a real but low-severity availability issue, correctly scored 5.3 by the vendor (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L). It is a regular-expression denial of service (ReDoS): the IDENTIFIER/VALUE grammar in css_parser.py uses adjacent quantified groups over overlapping character classes, so a crafted selector forces quadratic backtracking. No EPSS, KEV, or public POC is provided, so exploitation status is 'no public exploit identified at time of analysis' - though the committed test file (tests/test_performance.py) publicly demonstrates the hang triggers ('[a=' + 'a'*n and 'a'*n + '!'), which effectively documents how to reproduce it. The signals are internally consistent: network vector with low complexity and no privileges, but impact strictly limited to availability (C:N/I:N/A:L, scope unchanged). The severity ceiling is genuine - the description explicitly rules out memory corruption and code execution, so despite the 'RCE'/'Buffer Overflow' tags this cannot escalate beyond CPU exhaustion. Real-world priority is moderate-to-low and entirely conditional on whether an application passes attacker-controlled CSS selectors into soupsieve; apps using only hard-coded selectors are unaffected. |
| Exploit ScenarioDerived | An application lets users supply a CSS selector (e.g. a scraping/filtering feature) that reaches soupsieve.compile(), soupsieve.select(), or BeautifulSoup.select(). The attacker submits a selector such as '[a=' followed by ~12000 'a' characters that ultimately fails to match, forcing quadratic regex backtracking that pins the Python GIL, ties up a worker, and stalls the service. No public weaponized exploit is listed, but the vendor's own added performance test shows the exact triggering patterns. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Denial of service in Soup Sieve, the CSS selector library used by Beautiful Soup 4, affects all versions prior to 2.9 and is triggered when an application passes attacker-controlled CSS selectors into soupsieve.compile(), soupsieve.select(), or BeautifulSoup.select(). The parser's IDENTIFIER regular expression contains adjacent quantified groups over overlapping character classes, so a long identifier or unquoted attribute-value run followed by input that makes the overall match fail - upstream's own regression test uses a selector such as "[a=" plus 12,000 'a' characters - forces the regex engine to explore quadratically many splits, burning CPU while holding the Python GIL and stalling workers. The vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (unauthenticated remote, low availability impact only), applications that use only hard-coded developer selectors are completely unaffected, the vendor has released the fix in 2.9, and no public exploit or active exploitation has been identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to soupsieve 2.9 or later (pip install --upgrade "soupsieve>=2.9", then confirm with pip show soupsieve), which incorporates the parser rewrite in commit ce44e4996e6632871c18cdd7a7fb641be8ef34ef and the new performance regression tests; the advisory and release notes are at https://github.com/facelessuser/soupsieve/security/advisories/GHSA-gjv8-xp57-g29c and https://github.com/facelessuser/soupsieve/releases/tag/2.9. Where the upgrade cannot be applied immediately, the decisive compensating control is to never pass untrusted strings into soupsieve.compile(), soupsieve.select(), or BeautifulSoup.select(): validate selectors against a strict allowlist or parse them into structured criteria (tag, attribute, value) so that the raw CSS grammar never reaches the vulnerable regex, at the cost of losing arbitrary-selector flexibility for users. A cheap partial mitigation is a length cap and character-run check on any selector accepted from a request - reject inputs over a few hundred characters or containing identifier/attribute-value runs longer than, say, 64 characters - which the upstream test shows is the shape needed to induce the quadratic blowup, though this risks rejecting legitimately complex selectors. If untrusted selectors must be supported, isolate selector compilation and evaluation in a separate process or process pool with a hard timeout so that CPU burn and GIL contention cannot stall the primary request handlers, accepting the added process-management overhead; complement this with request-rate limiting or an edge WAF rule on the endpoint that accepts selector input to reduce the volume of hostile requests. Applications that only ever use hard-coded selectors need no code change and can treat the upgrade as routine dependency hygiene.
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 pure-Python CSS selector engine consumed by Beautiful Soup 4 and by projects that call it directly; selector compilation happens in src/soupsieve/css_parser.py, where the IDENTIFIER token and the value portion of attribute selectors (VALUE embeds IDENTIFIER) are defined as regular expressions. The pre-2.9 pattern was of the form (?:(?:-?(?:[^...]|{CSS_ESCAPES})+|--)) - an alternation of quantified groups whose character classes overlap, which lets the RE2-free Python re engine consider exponentially/quadratically many ways to partition a long run of identifier characters before concluding that the overall match fails. This is a classic uncontrolled resource consumption problem (CWE-400), specifically a polynomial/backtracking regular-expression denial of service in the selector parser rather than a memory-safety bug: the commit ce44e4996e6632871c18cdd7a7fb641be8ef34ef rewrites the alternation to (?:(?:--|-?(?:[^...]|{CSS_ESCAPES}))), removing the ambiguous nested quantifier, and adds tests/test_performance.py which asserts compilation of pathological selectors completes under one second. Because CPython serialises bytecode execution under the GIL, the CPU spin blocks other threads in the same interpreter, so a single crafted selector can degrade or stall an entire multi-threaded web worker. The affected CPE range is cpe:2.3:a:facelessuser:soupsieve:*:*:*:*:*:*:*:* with EUVD listing "soupsieve < 2.9"; note that publicly aggregated tags for this CVE include "RCE" and "Buffer Overflow", which are inconsistent with both the upstream advisory and the independent assessment - the confirmed impact is availability only, 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
Remotely reachable with a simple crafted selector (AV:N/AC:L/PR:N/UI:N); impact limited to CPU-exhaustion availability loss (A:L), no confidentiality/integrity effect and no scope change.
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, the selector parser in src/soupsieve/css_parser.py defines IDENTIFIER with adjacent quantified groups over overlapping character classes, and VALUE embeds IDENTIFIER for attribute selectors. When an attacker-controlled selector contains a long identifier or unquoted attribute-value run followed by input that makes the overall match fail, the regular expression engine explores quadratically many splits between the overlapping groups. User-controlled selectors can reach this path through soupsieve.compile(), soupsieve.select(), or BeautifulSoup.select(), while applications using only hard-coded selectors are unaffected. The resulting CPU consumption can hold the Python GIL, exhaust application workers, and stall a service; successful plain identifier matches are linear, and the issue does not cause 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-81689
GHSA-gjv8-xp57-g29c
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB