# CVE-2026-47706: Strawberry GraphQL Denial of Service via Uncontrolled Recursion in QueryDepthLimiter

Source: https://junglewise.ai/threats/cve-2026-47706-strawberry-graphql-denial-of-service-via-uncontrolled-recursion  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-04. Updated: 2026-06-04  
License: CC BY 4.0 with a link back

CVE-2026-47706 · Severity: medium · CVSS 5.3 · Published 2026-06-04

Strawberry GraphQL is a library used by developers to build GraphQL APIs. A flaw in its query depth limiting feature allows an attacker to crash the API service by sending a specially crafted request with circular references. This results in a denial-of-service (DoS) condition, making the application unavailable to legitimate users.

Technologies: [strawberry-graphql (PyPI)](https://junglewise.ai/threats/technologies/strawberry-graphql). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-47706 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-47706 being exploited in the wild.

**How severe is CVE-2026-47706?** Medium severity, with a CVSS score of 5.3, published 4 June 2026.

**Which products and versions are affected?** strawberry-graphql (PyPI) >= 0.71.0, <= 0.315.6, ECOSYSTEM:introduced=0.71.0,fixed=0.315.7.

**Is there a fix for CVE-2026-47706?** Yes. strawberry-graphql (PyPI): upgrade to 0.315.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-47706 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-47706?** Check whether you run strawberry-graphql (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- strawberry-graphql (PyPI): upgrade to 0.315.7 or later

  ```sh
  pip install "strawberry-graphql>=0.315.7"
  ```


## Technical details

The QueryDepthLimiter extension in Strawberry GraphQL fails to implement cycle detection when processing fragment spreads. Specifically, the 'determine_depth' function in 'query_depth_limiter.py' recursively resolves FragmentSpreadNodes without tracking visited fragments. An unauthenticated remote attacker can exploit this by submitting a GraphQL query containing circular fragment references (e.g., Fragment A referencing Fragment B, which references Fragment A). This triggers an infinite recursion, leading to a Python RecursionError that crashes the validation process and exhausts server resources. The issue is fixed in version 0.315.7 by implementing fragment tracking during depth calculation.

## Affected products

- Strawberry GraphQL strawberry-graphql >= 0.71.0, < 0.315.7

## Identifiers

- CVE-2026-47706
- GHSA-qfwv-87qj-98xq
- PYSEC-2026-2283

## Timeline

- 2026-05-19: patched: Version 0.315.7 released
- 2026-06-04: disclosed: CVE-2026-47706 published

## References

- [https://github.com/strawberry-graphql/strawberry/releases/tag/0.315.7](https://github.com/strawberry-graphql/strawberry/releases/tag/0.315.7)
- [https://github.com/strawberry-graphql/strawberry/security/advisories/GHSA-qfwv-87qj-98xq](https://github.com/strawberry-graphql/strawberry/security/advisories/GHSA-qfwv-87qj-98xq)

## Related threats

- [Strawberry GraphQL permission check bypass via awaitable return value](https://junglewise.ai/threats/cve-2026-107728-strawberry-graphql-synchronous-permission-checks-can-treat-an)
- [Strawberry legacy graphql-ws retains naturally completed subscription slots](https://junglewise.ai/threats/cve-2026-107727-strawberry-legacy-graphql-ws-retains-naturally-completed)
- [PYSEC-2026-1946 - Strawberry GraphQL has type resolution vulnerability in node interface that allows potential data…](https://junglewise.ai/threats/cve-2025-22151-strawberry-graphql-has-type-resolution-vulnerability-in-node)
- [Strawberry GraphQL DoS via MaxAliasesLimiter bypass in FragmentSpreadNode](https://junglewise.ai/threats/cve-2026-47707-strawberry-graphql-dos-via-maxaliaseslimiter-bypass-in)
- [Strawberry GraphQL sensitive information leak in GraphiQL template](https://junglewise.ai/threats/cve-2026-45739-strawberry-graphql-sensitive-information-leak-in-graphiql)
