Skip to main content

Strawberry GraphQL EUVDEUVD-2026-95391

| CVE-2026-107727 LOW
Uncontrolled Resource Consumption (CWE-400)
2026-10-08 GitHub_M GHSA-m952-2w3f-6r8h
3.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Open graphql-ws WebSocket connection
  2. Delivery
    Start one-shot subscriptions with distinct IDs
  3. Exploit
    Completed operations never freed from slot bookkeeping
  4. Execution
    Connection subscription limit exhausted
  5. Impact
    Legitimate operations rejected on that connection

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 three concrete, concurrent conditions: (1) the server must use the LEGACY graphql-ws subscription protocol handler (strawberry/subscriptions/protocols/graphql_ws/handlers.py) - the modern graphql-transport-ws protocol is explicitly unaffected; (2) the server must have max_subscriptions_per_connection explicitly configured (a non-default per-connection cap) - deployments without this cap are not affected; and (3) the Strawberry version must be in range 0.312.3 up to but not including 0.327.2. The limiting factors are significant: impact is confined to the single attacking WebSocket connection and only degrades availability for that connection's own future subscriptions, so it does not affect other clients. Mitigation is to upgrade to 0.327.2, switch to graphql-transport-ws, or remove the per-connection cap.

Impact

This is a genuinely low-priority issue despite being network-reachable and unauthenticated. The vendor CVSS vector (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L, 3.7 Low) is internally consistent with the description: AC:H correctly reflects that exploitation only works when the non-default max_subscriptions_per_connection cap is configured AND the legacy graphql-ws protocol is in use, and A:L correctly reflects that the only impact is partial, self-contained availability loss - no confidentiality or integrity effect. Critically, the denial of service is scoped to the attacker's OWN persistent WebSocket connection: by filling its configured subscription slots with completed one-shot subscriptions, a client blocks later legitimate operations on that same connection, not a shared/global resource, so this is not a true multi-tenant DoS. No EPSS score was provided in the input and the vulnerability is not listed in CISA KEV; there is no public exploit identified at time of analysis. No signals conflict - every indicator (low CVSS, high attack complexity, limited availability-only impact, no exploitation evidence) points the same direction. This is a correctness/robustness bug with a security label rather than a widespread exploitation risk, and it does not warrant emergency patching ahead of routine dependency updates.

Exploit ScenarioDerived

An attacker (or a buggy client) opens a single WebSocket to a Strawberry GraphQL endpoint using the legacy graphql-ws protocol on a server configured with max_subscriptions_per_connection, then repeatedly starts short-lived one-shot subscriptions each with a distinct operation id. Because completed subscriptions are never removed from the handler's bookkeeping, the connection's slots fill up and subsequent legitimate subscriptions on that same connection are rejected with 'Subscription limit reached'. No public exploit code is identified; the behavior is demonstrated only by the vendor's regression tests in the fix PR.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.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 – Oct 08, 2026

Uncontrolled resource consumption in the Strawberry GraphQL library's legacy graphql-ws subscription handler (versions 0.312.3 up to but not including 0.327.2) allows an unauthenticated remote client on a persistent WebSocket connection to fill that connection's configured subscription slots with one-shot subscriptions that have already completed, so later legitimate operations on the same connection are rejected with 'Subscription limit reached'. The impact is limited to the attacker's own connection and to availability (CVSS 3.1 base 3.7, AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L), requiring the non-default max_subscriptions_per_connection cap to be explicitly configured and the legacy graphql-ws protocol to be in use; the modern graphql-transport-ws protocol and deployments without the cap are unaffected. No public exploit code has been identified at time of analysis and the issue is not known to be actively exploited, but a vendor fix is available in 0.327.2.

RemediationAI

Vendor-released patch: upgrade to Strawberry GraphQL 0.327.2 or later, which is the version that fixes this issue (release tag https://github.com/strawberry-graphql/strawberry/releases/tag/0.327.2, advisory GHSA-m952-2w3f-6r8h, fixing commit 24c5e46d57f7ad4f77e6e01fb8ae482dd1c0ff92 from PR 4610); the patch releases bookkeeping slots in a finally block as operations finish naturally or fail before execution, and also makes a 'stop' for an already-completed operation a harmless no-op. If immediate upgrade is not possible, two configuration-level workarounds are available, both of which trade away protection or compatibility: switch subscription traffic to the modern graphql-transport-ws protocol, which is unaffected by this bug, at the cost of requiring clients to support that protocol, or remove the max_subscriptions_per_connection setting so the per-connection quota cannot be exhausted - but doing so eliminates a genuine resource-exhaustion guard for WebSocket connections and should be paired with an equivalent limit enforced at the reverse proxy or API gateway layer. Restricting WebSocket subscription endpoints to trusted clients and enforcing connection timeouts or per-connection message rate limits at the proxy reduce exposure further, though neither restores the per-connection subscription accounting that the library fix provides.

Affected VersionsENISA

strawberry 0.312.3, < 0.327.2

Affected Packages

pypi strawberry-graphql fix: 0.327.2
euvd strawberry_0_312_3 fix: 0.327.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Strawberry GraphQL is a Python library for building GraphQL APIs, and it ships two WebSocket subscription protocols: the legacy graphql-ws handler in strawberry/subscriptions/protocols/graphql_ws/handlers.py and the modern graphql-transport-ws handler. The flaw is CWE-400 (Uncontrolled Resource Consumption) rooted in bookkeeping rather than in memory growth: the legacy handler tracks in-flight operations in the dictionaries self.tasks and self.subscriptions, and those entries were only removed when the client sent an explicit 'stop' message, reused the operation id, or disconnected. Operations that terminated on their own (a one-shot subscription that emitted its single result and completed, or a query that failed validation before execution) left their entries behind, so each distinct operation id permanently consumed one slot against max_subscriptions_per_connection. Because the check is per connection and the leaked entries are never reclaimed, an attacker who repeatedly starts short-lived subscriptions with fresh ids on one WebSocket can exhaust that connection's quota and cause a denial of service against subsequent operations on the same socket. The upstream fix wraps result handling in a finally block that pops operation_id from both subscriptions and tasks, releases the result source via aclose(), and makes a late 'stop' for an already-completed operation a no-op instead of an error. The CVSS vector's AC:H reflects that exploitation demands a specific configuration combination (legacy protocol plus an explicitly configured per-connection cap) and yields only self-inflicted availability loss; scope is unchanged, so other clients and connections on the same server are not affected.

Know when Strawberry 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 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 3.7 LOW

AC:H because exploitation depends on the non-default max_subscriptions_per_connection cap plus the legacy protocol; PR:N as an open subscription endpoint needs no auth; A:L only, self-scoped to the attacker's connection.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Oct 09, 2026 - 15:17 EUVD

DescriptionCVE.org

Strawberry GraphQL is a library for creating GraphQL APIs. From 0.312.3 until 0.327.2, the legacy graphql-ws subscription handler in strawberry/subscriptions/protocols/graphql_ws/handlers.py does not remove naturally completed operations from self.tasks and self.subscriptions. When max_subscriptions_per_connection is configured, a client on a persistent WebSocket connection can use distinct operation IDs for one-shot subscriptions to fill the connection's configured slots even after those subscriptions send complete, causing later legitimate operations on that connection to be rejected with Subscription limit reached. The modern graphql-transport-ws protocol and deployments without the configured per-connection cap are not affected. This issue is fixed in version 0.327.2.

Threat Intelligence Overview

EPSS Score
0.4%
Top 73% exploitable
Prevalence
Medium
popular Python GraphQL library, but affected path needs specific legacy-protocol config
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

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

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