Skip to main content

Soup Sieve CVE-2026-86000

| EUVDEUVD-2026-81689 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-09-17 GitHub_M GHSA-gjv8-xp57-g29c
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify endpoint accepting user CSS selectors
  2. Delivery
    Submit long identifier/unquoted attribute-value selector that fails match
  3. Exploit
    Trigger quadratic regex backtracking in css_parser
  4. Execution
    Pin Python GIL and exhaust workers
  5. Impact
    Service 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

soupsieve < 2.9

Affected Packages

pypi soupsieve fix: 2.9, 2.9.0

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

Vendor (GitHub_M) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 7.5 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

2
Patch available
Sep 17, 2026 - 16:02 EUVD
CVE Published
Sep 17, 2026 - 15:21 cve.org
MEDIUM 5.3

DescriptionCVE.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

EPSS Score
0.4%
Top 62% exploitable
Prevalence
High
hard dependency of BeautifulSoup4, installed in vast numbers of Python environments
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy