MEDIUM5.3
PYSEC-2026-2283
Quick fix
PYSEC-2026-2283 — strawberry-graphql: upgrade to the fixed version with the command below.
pip install --upgrade 'strawberry-graphql>=0.315.7'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/strawberry-graphql
Introduced in:
0.71.0Fixed in: 0.315.7Fix
pip install --upgrade 'strawberry-graphql>=0.315.7'