Description
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.
Published: 2026-06-04
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The QueryDepthLimiter extension of Strawberry GraphQL does not detect circular fragment references in a query. When a client submits a query containing a cycle, the internal depth calculation recurses without end, raising a RecursionError that terminates the validation stage, effectively crashing the server and rendering the API unavailable.

Affected Systems

The vulnerability affects the Strawberry GraphQL Python library in all releases from 0.71.0 up to and including 0.315.6. Any application using these versions as a dependency is at risk.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity; the EPSS score is not available and the issue is not listed in CISA’s KEV catalog. The likely attack vector is from any external client that can send GraphQL queries, making this a remote denial‑of‑service scenario that can be triggered simply by constructing a query with a circular fragment reference. Successful exploitation would interrupt service for all users.

Generated by OpenCVE AI on June 4, 2026 at 15:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official release 0.315.7 or newer of Strawberry GraphQL, which adds cycle detection to the QueryDepthLimiter and fixes the infinite recursion flaw (CWE‑674).
  • If upgrading is not immediately feasible, temporarily disable or remove the QueryDepthLimiter extension so that query validation no longer relies on the vulnerable recursion logic.
  • Implement application‑level query depth limits or general resource‑cap controls to mitigate uncontrolled resource consumption (CWE‑400) and add timeouts to abort excessively long validation cycles.

Generated by OpenCVE AI on June 4, 2026 at 15:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-qfwv-87qj-98xq Strawberry GraphQL has a Circular Fragment Reference DOS
History

Fri, 05 Jun 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Strawberry strawberry Graphql
CPEs cpe:2.3:a:strawberry:strawberry_graphql:*:*:*:*:*:python:*:*
Vendors & Products Strawberry strawberry Graphql

Fri, 05 Jun 2026 08:00:00 +0000

Type Values Removed Values Added
First Time appeared Strawberry
Strawberry strawberry
Vendors & Products Strawberry
Strawberry strawberry

Thu, 04 Jun 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 04 Jun 2026 14:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Strawberry GraphQL has a Circular Fragment Reference DOS
Weaknesses CWE-400
CWE-674
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}


Subscriptions

Strawberry Strawberry Strawberry Graphql
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-04T15:38:40.821Z

Reserved: 2026-05-19T21:18:20.404Z

Link: CVE-2026-47706

cve-icon Vulnrichment

Updated: 2026-06-04T15:38:36.755Z

cve-icon NVD

Status : Analyzed

Published: 2026-06-04T15:16:54.763

Modified: 2026-06-05T17:37:58.920

Link: CVE-2026-47706

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-05T07:45:35Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-674

    Uncontrolled Recursion