Skip to main content

Soup Sieve CVE-2026-126191

| EUVDEUVD-2026-124551 HIGH
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-11-12 security-advisories@github.com GHSA-6655-6qjp-jx7x
7.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Reach endpoint accepting untrusted CSS selector
  2. Delivery
    Craft short \9-run selector string
  3. Exploit
    Submit to compile()/select()
  4. Execution
    Regex backtracks exponentially before SELECTOR_LIMIT
  5. Persist
    Worker thread stalls (CPU exhaustion)
  6. Impact
    Service denial of availability

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity 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 selector strings into soupsieve.compile() or BeautifulSoup's .select() - i.e. a deployment that accepts untrusted CSS selectors (scraping-as-a-service, no-code/query builders, user-defined extraction rules), per the GHSA reachability note. The trigger is a run of ambiguous digit escapes ('\9') in an attribute-name or tag position of an otherwise well-formed selector; the backtracking fires during selector COMPILATION, before the SELECTOR_LIMIT guard applies, so length limits do not help (the PoC is ~57-60 bytes). The key LIMITING factor is that CSS selectors are normally developer-controlled: installations that only use hard-coded or trusted selectors are not exposed despite the AV:N/PR:N score. Affected: soupsieve <= 2.9.2 on the supported Python versions; fixed in 3.0 (which also drops Python 3.10).

Impact

This is a CWE-1333 regular-expression denial-of-service (ReDoS): the CSS_ESCAPES and IDENTIFIER subpatterns backtrack exponentially on a run of ambiguous '\9' digit escapes, and the GHSA advisory measures roughly 16x time per additional four characters (~57-byte input → ~10s), confirming exponential (not merely quadratic) blow-up. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H = 7.5) and the availability-only impact are internally consistent with a DoS, and the tag 'Denial Of Service' aligns. However, the network vector and PR:N in the CVSS score reflect the worst-case reachability, while the advisory's own reachability note states exposure requires an application that compiles UNTRUSTED selector strings (web-scraping-as-a-service, no-code/query builders, user-defined extraction rules); CSS selectors are normally developer-controlled, so the realistic attack surface is much narrower than AV:N/PR:N alone implies. No EPSS score and no KEV status were provided; absence of KEV means there is no evidence of active exploitation. A verified PoC is published in the GHSA advisory (tested on 2.9.2), so weaponization is trivial where the reachability condition holds. The vuln.today priority is 'this_week' - a genuine but not emergency priority: real and easily triggered where untrusted selectors are accepted, but gated by a non-default usage pattern rather than a widespread default-config exposure.

Exploit ScenarioDerived

An application exposes a feature that compiles attacker-supplied CSS selector strings (e.g. a scraping or extraction service that lets users define their own selectors) and passes them to soupsieve.compile() or BeautifulSoup .select(). The attacker submits a ~60-byte selector such as '[a' followed by 26 repetitions of '\9' plus '=x]', which triggers exponential regex backtracking during compilation and stalls the worker for seconds-to-minutes, before SELECTOR_LIMIT is ever applied. A verified proof-of-concept is published in the GHSA-6655-6qjp-jx7x advisory, so exploitation requires no research effort.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 – Nov 12, 2026

Soup Sieve (the CSS selector engine used by Beautiful Soup 4) through version 2.9.2 can be stalled by a short, well-formed selector because the CSS_ESCAPES and IDENTIFIER regex subpatterns backtrack exponentially on runs of ambiguous '\9' digit escapes. The failure happens during selector compilation in soupsieve.compile() or BeautifulSoup .select(), before the SELECTOR_LIMIT guard is evaluated, so the GHSA advisory's verified PoC of roughly 57 bytes consumes about 10 seconds of worker time on 2.9.2 with roughly 16x growth per four additional characters. Per the unauthenticated network vector (CVSS 3.1 AV:N/AC:L/PR:N/UI:N, A:H), the impact is availability only and is limited to deployments that actually feed attacker-controlled selector strings into the library - scraping-as-a-service, no-code/query builders and user-defined extraction rules - while applications using hard-coded selectors are not exposed; the advisory publishes a working PoC snippet but no confirmed active exploitation or public exploit tooling is indicated in the supplied data.

RemediationAI

Vendor-released patch: soupsieve 3.0, which is the only complete fix; upgrade with pip install -U soupsieve==3.0 or pin soupsieve>=3.0, and note the same release drops Python 3.10 (requires-python >=3.11), so environments still on 3.10 must move to 3.11+ before they can take the fix. See https://github.com/facelessuser/soupsieve/security/advisories/GHSA-6655-6qjp-jx7x and https://github.com/facelessuser/soupsieve/releases/tag/3.0. Because the backtracking fires inside compile() ahead of SELECTOR_LIMIT, raising or tightening the selector-length limit is not an effective workaround per the advisory; the remaining compensating control is architectural - do not pass untrusted selector strings to soupsieve.compile() or BeautifulSoup .select(), for example by restricting user-defined extraction rules to a vetted allow-list or a non-regex query DSL, with the trade-off of reduced query flexibility for no-code/query-builder products. Where untrusted selectors cannot be avoided before upgrading, isolate selector compilation in a separate process or worker with a hard timeout so a stalled compilation cannot exhaust a shared request worker, accepting the added complexity and per-request overhead. Applications that only compile developer-controlled, hard-coded selectors are not exposed and can schedule the upgrade normally.

Affected VersionsENISA

soupsieve < 3.0

Affected Packages

pypi soupsieve fix: 3.0, 3.0.2

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 library that parses selectors into an internal representation for matching against Beautiful Soup trees, and its parser in soupsieve/css_parser.py is built from large composed regular expressions evaluated by Python's re engine. This is CWE-1333 (inefficient regular-expression complexity): the CSS_ESCAPES subpattern allows 1-6 hex digits optionally followed by whitespace after a backslash, and when that alternative is nested inside the IDENTIFIER pattern used for attribute names and tag names, a run of ambiguous '\9' escapes creates many ways to partition the same input, so the engine explores an exponential number of paths. Because the vulnerable regex is applied while compiling the selector, it triggers ahead of the SELECTOR_LIMIT length guard, meaning input-length caps do not mitigate it; the GHSA reachability note stresses that selectors are normally developer-authored, so exposure depends on the application architecture rather than on the library alone. The upstream fix in 3.0 rewrites the parser patterns to use possessive quantifiers and atomic groups (for example [a-f0-9]{1,6}+, {WSC}*+, *+, and an atomic NEWLINE group) to eliminate the backtracking, and the same commit drops Python 3.10 support, raising requires-python to >=3.11.

Know when the next one hits your stack

  • 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) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

A short string stalls the worker via exponential backtracking with no auth or interaction when selectors are attacker-reachable; availability-only impact (A:H), so C:N/I:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 18:18 EUVD
CVE Published
Nov 12, 2026 - 17:17 cve.org
HIGH 7.5

DescriptionCVE.org

Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 3.0, the CSS_ESCAPES and IDENTIFIER regular-expression subpatterns can backtrack exponentially on runs of ambiguous digit escapes in an attribute-name or tag position of an otherwise valid selector. The failure occurs during selector compilation through soupsieve.compile() or Beautiful Soup select() before SELECTOR_LIMIT is applied, so an application that accepts untrusted selector strings can have a worker stalled by a short input. This issue is fixed in version 3.0.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 pypi packages depend on soupsieve (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 3.0.2.

Technical POC Analysis

CWE-1333, inefficient regular expression complexity (catastrophic backtracking / ReDoS).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity availability flaw in Soup Sieve, the CSS selector engine embedded in Beautiful Soup 4, can freeze worker processes for roughly 10 seconds via a 57-byte selector, and severity scales exponentially with additional input. Only services that accept user-supplied CSS selectors, such as scraping platforms, no-code query builders, and configurable extraction pipelines, are exposed; internal applications using fixed selectors are unaffected. Leadership should prioritize any customer-facing or automation service where untrusted selector strings are compiled, because repeatable worker stalls can cause service-wide slowdowns and SLA breaches.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Enforce selector length and character restrictions, compile untrusted selectors in isolated workers with hard timeouts, apply concurrency and rate limits on selector-accepting endpoints, and monitor for stalls until a fixed soup-sieve version is available.

Threat Intelligence Overview

EPSS Score
0.4%
Top 62% exploitable
Prevalence
High
soupsieve is the CSS selector engine bundled with BeautifulSoup4, pervasive in Python
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
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.

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