Advisory

PYSEC-2026-2284

Also known as: CVE-2026-47707, GHSA-fr49-mhgj-crfc

Summary

The record has no summary.

Details

Strawberry GraphQL is a library for creating GraphQL APIs. In versions 0.172.0 through0.315.6, the MaxAliasesLimiter extension in Strawberry fails to account for the multiplicative/amplification effect of FragmentSpreadNode. While it correctly counts static aliases within the AST it does not consider how many times a fragments internal aliases are expanded during execution. this allows an attacker to bypass alias limits and force the server to resolve and render a significantly higher number of aliases than allowed, potentially leading to a dos via resource exhaustion. Version 0.315.7 contains a fix for the issue.

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Dates

Published
2026-06-04 15:16 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

strawberry-graphql

PyPI · All systems

Affected

  • introduced 0.172.0, fixed 0.315.7 (ecosystem)

Fixed versions

0.315.7

Fix

  • Fixed version 0.315.7
    pip install --upgrade strawberry-graphql==0.315.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences