CVE-2026-35526
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOpen WebSocket connection to Strawberry GraphQL server
-
DeliverySend connection_init message
-
ExploitFlood subscribe messages with unique IDs
-
ExecutionSpawn unlimited asyncio.Task objects
-
PersistExhaust server memory and saturate event loop
-
ImpactCause 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 Strawberry GraphQL server with WebSocket subscription handlers enabled (graphql-transport-ws or legacy graphql-ws protocols). Unauthenticated remote attacker opens single WebSocket connection, sends connection_init, then floods subscribe messages. No victim interaction needed. Default configurations vulnerable. |
| Impact | This vulnerability presents a high practical risk for internet-facing GraphQL APIs using Strawberry's WebSocket subscriptions. The CVSS base score of 7.5 reflects a severe availability impact (A:H) with network-based exploitation (AV:N), low attack complexity (AC:L), and no authentication requirement (PR:N). The attack is trivial to execute: an attacker opens a single WebSocket connection, completes the connection_init handshake, and floods subscribe messages with incrementing IDs using basic scripting. SSVC technical impact is total (service crash via OOM), and the attack is fully automatable without user interaction (UI:N). No public exploit code has been identified, and the CVE is not listed in CISA KEV, indicating no confirmed active exploitation campaigns at time of analysis. However, the simplicity of exploitation combined with the prevalence of GraphQL subscriptions in real-time applications (chat, notifications, live dashboards) makes this a realistic attack vector. Organizations should prioritize patching any publicly exposed Strawberry GraphQL APIs with WebSocket subscriptions enabled, as the resource exhaustion attack requires minimal sophistication and can bypass traditional rate limiting if applied only at the HTTP layer rather than per-WebSocket-connection. |
| Exploit ScenarioDerived | An attacker identifies a public API endpoint running Strawberry GraphQL with WebSocket subscriptions enabled by observing Upgrade: websocket responses or API documentation. Using a simple Python script with the websockets library, they establish a WebSocket connection to the /graphql endpoint, send a connection_init message to complete the handshake, and then enter a loop sending 10,000+ subscribe messages with incrementing operation IDs and trivial subscription queries like '{ __typename }'. Each message spawns a new asyncio task and async generator on the server. Within minutes, the server's memory usage climbs from 200MB to multiple gigabytes as thousands of Operation objects accumulate in the heap. The asyncio event loop's task queue becomes saturated, causing legitimate user requests to time out. Eventually, the Python process exceeds available memory and the OS kills it with an OOM error, taking down the entire API service. The attacker maintains persistence by reconnecting and repeating the flood, causing sustained outages with minimal bandwidth requirements (under 1 Mbps) from a single source IP. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 06, 2026
Unauthenticated denial-of-service in Strawberry GraphQL WebSocket handlers allows remote attackers to crash Python servers via subscription flooding. The vulnerability affects both graphql-transport-ws and legacy graphql-ws protocol implementations, which fail to enforce per-connection subscription limits. An attacker can exhaust server memory and saturate the asyncio event loop by sending unlimited subscribe messages over a single WebSocket connection, leading to service degradation or out-of-memory crashes. EPSS data not available for this recent CVE; no public exploit identified at time of analysis, though exploitation is trivial given the low attack complexity (CVSS AC:L) and lack of authentication requirement (PR:N).
RemediationAI
Upgrade strawberry-graphql to version 0.312.3 or later, which introduces per-connection subscription limits to prevent unbounded resource allocation. The fix commit is available at https://github.com/strawberry-graphql/strawberry/commit/0977a4e6b41b7cfe3e9d8ba84a43458a2b0c54c2 and has been released in the official 0.312.3 package published at https://github.com/strawberry-graphql/strawberry/releases/tag/0.312.3. Organizations using pip should update via 'pip install --upgrade strawberry-graphql>=0.312.3' and verify the installed version. As a temporary mitigation for systems where immediate patching is not feasible, consider implementing connection-level rate limiting at the reverse proxy or load balancer layer to restrict the number of WebSocket messages per connection per time window, though this is less effective than the vendor's subscription count enforcement. Additionally, review logging and monitoring to detect abnormal subscription patterns (high subscribe message rates from single connections) and configure resource limits (memory cgroups, container resource quotas) to contain the blast radius of DoS attempts until patching is complete.
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
Strawberry GraphQL is a Python GraphQL library built on asyncio that provides WebSocket subscription support through two protocol implementations: the modern graphql-transport-ws and the legacy graphql-ws protocol. The vulnerability stems from improper resource management (CWE-400: Uncontrolled Resource Consumption) in the subscription message handlers. When a client sends a subscribe message with a unique operation ID, the server unconditionally allocates an asyncio.Task and instantiates an Operation object containing an async generator. Without rate limiting or connection-scoped subscription counting, each subscribe message creates unbounded concurrent tasks. Python's asyncio event loop becomes saturated with pending tasks, while each async generator and associated Operation object consumes heap memory linearly with the number of subscriptions. The affected package is distributed via PyPI as strawberry-graphql (CPE: pkg:pip/strawberry-graphql), and both WebSocket protocol handlers share the same vulnerable code path for subscription lifecycle management.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (https://github.com/strawberry-graphql/strawberry) · only source for this CVE.
CVSS VectorVendor: https://github.com/strawberry-graphql/strawberry
Lifecycle Timeline
2DescriptionCVE.org
Strawberry GraphQL's WebSocket subscription handlers for both the graphql-transport-ws and legacy graphql-ws protocols allocate an asyncio.Task and associated Operation object for every incoming subscribe message without enforcing any limit on the number of active subscriptions per connection.
An unauthenticated attacker can open a single WebSocket connection, send connection_init, and then flood subscribe messages with unique IDs. Each message unconditionally spawns a new asyncio.Task and async generator, causing linear memory growth and event loop saturation. This leads to server degradation or an OOM crash.
Executive ViewAI
Strawberry GraphQL WebSocket handlers contain an unauthenticated denial-of-service vulnerability (CVE-2026-35526, CVSS 7.5) that allows remote attackers to crash Python application servers by flooding subscription requests, potentially disrupting service availability for all users. Organizations running Strawberry GraphQL with WebSocket support should prioritize patching to prevent operational disruption from trivial, remotely-triggerable attacks.
Apply vendor patch. If patching cannot be completed immediately: implement connection-level rate limiting on WebSocket handlers, enforce maximum subscription count per connection (recommend ≤10), deploy network-level DoS protection (WAF rules blocking excessive subscription messages), and monitor asyncio event loop utilization for saturation anomalies.
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.
GHSA-hv3w-m4g2-5x77
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB