Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify reachable GraphQL HTTP endpoint
-
DeliveryCraft query with two mutually spreading fragments
-
ExploitPOST payload unauthenticated
-
ExecutionQueryDepthLimiter triggers infinite recursion in determine_depth
-
PersistPython RecursionError crashes validation worker
-
ImpactService unavailable to legitimate users
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 the target Strawberry GraphQL application to have explicitly configured the QueryDepthLimiter extension in its schema definition (e.g., extensions=[QueryDepthLimiter(max_depth=N)]). Deployments without this extension are not vulnerable. CVSS vector PR:N confirms no authentication is required; the attacker only needs HTTP access to the GraphQL endpoint. There is no special network position, account, or API key needed. The attack payload is syntactically valid GraphQL - it will not be rejected by transport-layer controls - and is small enough to evade most payload-size limits. Exploitation is bounded by: (1) the QueryDepthLimiter extension must be active, and (2) the endpoint must be reachable by the attacker; no other preconditions apply. |
| Impact | CVSS 5.3 Medium with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L accurately reflects the attack profile - network-reachable, no authentication, no user interaction - but the Availability:Low rating understates operational impact. Because a single small HTTP POST crashes the validation worker, repeated requests can exhaust thread and worker pools entirely, yielding a practical high-availability impact disproportionate to the CVSS score. The proof-of-concept is simple, short, and publicly documented, lowering attacker skill requirements to near-zero. EPSS data was not provided in the source intelligence, so a probabilistic exploitation score cannot be cited. No CISA KEV listing has been identified, meaning confirmed active exploitation is unverified. The attack is constrained to deployments using the QueryDepthLimiter extension - organizations using depth limiting as a defensive control are paradoxically the most exposed - but that configuration is common in production GraphQL deployments. Overall: higher operational priority than the raw CVSS score suggests, especially for internet-facing GraphQL APIs. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a single HTTP POST to the target's /graphql endpoint containing a query that defines two fragments mutually referencing each other - Fragment A spreading Fragment B and Fragment B spreading Fragment A - then invokes one of them in the operation body. The QueryDepthLimiter validation phase immediately enters infinite recursion, raises a Python RecursionError, and crashes the request handler. A functional proof-of-concept using the httpx library is published in GHSA-qfwv-87qj-98xq; by sending this request in a rapid loop, the attacker can continuously respawn crashes and prevent the worker pool from recovering, resulting in sustained service denial. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 04, 2026
Infinite recursion in Strawberry GraphQL's QueryDepthLimiter extension allows unauthenticated remote attackers to crash the validation process and exhaust server resources by submitting queries with circular fragment references. Affected versions 0.71.0 through 0.315.6 of the pip package strawberry-graphql fail to track visited fragments in the determine_depth function, meaning a trivially crafted two-fragment cycle (A spreads B, B spreads A) triggers a Python RecursionError before any query execution occurs. A public proof-of-concept is confirmed in GHSA-qfwv-87qj-98xq; no active exploitation is listed in CISA KEV at time of analysis.
RemediationAI
Upgrade strawberry-graphql to version 0.315.7 or later, which introduces visited-fragment tracking in determine_depth to break circular reference cycles; this release also simultaneously fixes the related MaxAliasesLimiter alias-counting flaw (GHSA-fr49-mhgj-crfc). See the release at https://github.com/strawberry-graphql/strawberry/releases/tag/0.315.7 and the fix PR #4421. For deployments that cannot immediately upgrade, removing the QueryDepthLimiter extension from the schema eliminates the vulnerable code path entirely, though this trades away query depth enforcement as a defensive control - weigh this trade-off against exposure risk. An alternative compensating control is to place a GraphQL-aware proxy or WAF upstream that rejects queries containing fragment spread cycles before they reach Strawberry's validation layer; this requires the proxy to implement its own cycle detection and adds latency. Generic query size or complexity limits at the HTTP layer (e.g., rejecting requests above a payload byte threshold) can reduce but not eliminate the attack surface, as the malicious payload is small.
Affected VersionsENISA
Affected Packages
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 (CPE: cpe:2.3:a:strawberry-graphql:strawberry:*) is a Python library that builds GraphQL APIs using type annotations. GraphQL's fragment spread mechanism allows reusable field selection sets; the QueryDepthLimiter extension validates that query depth does not exceed a configured maximum by recursively resolving these fragment references via the determine_depth function in query_depth_limiter.py. CWE-400 (Uncontrolled Resource Consumption) is the root cause: the recursive resolver carries no visited-fragment set, so a graph containing a cycle between two FragmentSpreadNode references causes unbounded stack growth. Because GraphQL validation is a pre-execution phase, the crash is triggered without any schema logic running, making it fully accessible at the protocol boundary. The release notes confirm the fix also addresses a related fragment-expansion flaw in MaxAliasesLimiter (GHSA-fr49-mhgj-crfc), suggesting the same architectural oversight existed in both extensions.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Strawberry GraphQL is a library for creating GraphQL APIs. In versions 0.71.0 through 0.315.6, the QueryDepthLimiter extension is vulnerable to an Application-level DOS due to a lack of cycle detection in fragment spreads. When a query contains circular fragment references the determine_depth function enters an infinite recursion, leading to a RecursionError and crashing the validation process. Version 0.315.7 patches the issue.
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.
More in Strawberry
View allStrawberry GraphQL versions 0.217.0 through 0.326.0 contain an authorization bypass in which a custom permission class w
Denial-of-service via alias amplification in Strawberry GraphQL (versions 0.172.0 through 0.315.6) allows unauthenticate
Strawberry GraphQL is a library for creating GraphQL APIs. Rated high severity (CVSS 8.0), this vulnerability is remotel
Uncontrolled resource consumption in the Strawberry GraphQL library's legacy graphql-ws subscription handler (versions 0
EUVD-2026-34269
GHSA-qfwv-87qj-98xq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB