Skip to main content

CVE-2026-35526

HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-04-06 https://github.com/strawberry-graphql/strawberry GHSA-hv3w-m4g2-5x77
7.5
CVSS 3.1 · Vendor: https://github.com/strawberry-graphql/strawberry
View

Attack ChainAIDerived

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

  1. Access
    Open WebSocket connection to Strawberry GraphQL server
  2. Delivery
    Send connection_init message
  3. Exploit
    Flood subscribe messages with unique IDs
  4. Execution
    Spawn unlimited asyncio.Task objects
  5. Persist
    Exhaust server memory and saturate event loop
  6. Impact
    Cause 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

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

pypi strawberry-graphql fix: 0.312.3

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

Vendor (https://github.com/strawberry-graphql/strawberry) PRIMARY 7.5 HIGH
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

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

Lifecycle Timeline

2
Patch released
Apr 06, 2026 - 19:00 nvd
Patch available
CVE Published
Apr 06, 2026 - 18:00 nvd
HIGH 7.5

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA 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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
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
None
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.

Affected Products (CPE)CVE.org

pkg:pip/strawberry-graphql

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