CVE-2026-107727
CVE-2026-107727 · Strawberry legacy graphql-ws retains naturally completed subscription slots
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Strawberry GraphQL is a library for creating GraphQL APIs. From 0.312.3 until 0.327.2, the legacy graphql-ws subscription handler in strawberry/subscriptions/protocols/graphql_ws/handlers.py does not remove naturally completed operations from self.tasks and self.subscriptions. When max_subscriptions_per_connection is configured, a client on a persistent WebSocket connection can use distinct operation IDs for one-shot subscriptions to fill the connection's configured slots even after those subscriptions send complete, causing later legitimate operations on that connection to be rejected with Subscription limit reached. The modern graphql-transport-ws protocol and deployments without the configured per-connection cap are not affected. This issue is fixed in version 0.327.2.
CVSS 3.7 · Low · EPSS 0.4% · Fix available
- Published
- Updated
Stack: python
Affected products and versions
strawberry
- Versions
- >= 0.312.3, < 0.327.2: Affected
No fix published
strawberry-graphql PyPI
- Versions
- 0.312.3
- 0.312.4
- 0.313.0
- 0.314.0
- 0.314.1
- 0.314.2
- 0.314.3
- 0.315.0
- 0.315.1
- 0.315.2
- 0.315.3
- 0.315.4
- 0.315.5
- 0.315.6
- 0.315.7
- 0.316.0
- 0.317.0
- 0.317.1
- 0.317.2
- 0.318.0
- 0.318.1
- 0.319.0
- 0.320.0
- 0.320.1
- 0.320.2
- 0.320.3
- 0.320.4
- 0.321.0
- 0.321.1
- 0.322.0
- 0.322.1
- 0.322.2
- 0.323.0
- 0.323.1
- 0.323.2
- 0.324.0
- 0.324.1
- 0.324.2
- 0.324.3
- 0.324.4
- 0.324.5
- 0.325.0
- 0.326.0
- 0.326.1
- 0.327.0
- 0.327.1
- Affected ranges
- ECOSYSTEM: ≥ 0.312.3, < 0.327.2
Update to 0.327.2
Original sources
- https://github.com/strawberry-graphql/strawberry/security/advisories/GHSA-m952-2w3f-6r8h
- https://github.com/strawberry-graphql/strawberry/pull/4610
- https://github.com/strawberry-graphql/strawberry/commit/24c5e46d57f7ad4f77e6e01fb8ae482dd1c0ff92
- https://github.com/strawberry-graphql/strawberry/releases/tag/0.327.2
- https://nvd.nist.gov/vuln/detail/CVE-2026-107727