Skip to main content

Strawberry GraphQL EUVDEUVD-2026-34269

| CVE-2026-47706 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-06-04 GitHub_M GHSA-qfwv-87qj-98xq
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Identify reachable GraphQL HTTP endpoint
  2. Delivery
    Craft query with two mutually spreading fragments
  3. Exploit
    POST payload unauthenticated
  4. Execution
    QueryDepthLimiter triggers infinite recursion in determine_depth
  5. Persist
    Python RecursionError crashes validation worker
  6. Impact
    Service 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 – 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

strawberry 0.71.0, < 0.315.7

Affected Packages

pypi strawberry-graphql fix: 0.315.7
euvd strawberry_0_71_0 fix: 0.315.7

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

Vendor (GitHub_M) PRIMARY 5.3 MEDIUM
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

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

Lifecycle Timeline

1
Patch available
Jun 04, 2026 - 16:16 EUVD

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

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL 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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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