CVE-2026-107727: Strawberry GraphQL Subscription Limit Issue

strawberry-graphql Updated 09 Oct 2026

Summary

09/10/2026
Yes i
Low
3.7

CVE-2026-107727: Strawberry legacy graphql-ws retains naturally completed subscription slots. Affects strawberry-graphql versions >= 0.312.3, < 0.327.2. Fixed in 0.327.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Strawberry is a Python library for building GraphQL APIs, designed to be simple and intuitive. It supports various protocols, including the legacy 'graphql-ws' for subscriptions. This library allows developers to create real-time applications with ease, but it has a vulnerability in its subscription handling that can lead to resource accounting issues.

Vulnerability Detail

The vulnerability arises from the legacy 'graphql-ws' subscription handler in Strawberry, which retains bookkeeping for completed subscriptions. When a client uses distinct operation IDs, it can reach the maximum subscription limit set by 'max_subscriptions_per_connection', even though earlier subscriptions have completed. This can lead to legitimate subscription requests being rejected with a 'Subscription limit reached' error, impacting connection-level availability and resource management. The issue is conditional and requires specific configurations, making it a targeted concern for applications using the legacy protocol.

How To Fix

Latest published version: 0.336.2 as of 22 Oct 2026

pip install --upgrade "strawberry-graphql==0.336.2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.327.2

This is the first release that contains the fix.

pip install --upgrade "strawberry-graphql==0.327.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider disabling the legacy 'graphql-ws' protocol if possible, or avoid setting 'max_subscriptions_per_connection' to a low value. This will help mitigate the impact of the vulnerability until the package can be updated.

Conclusion

The CVE-2026-107727 vulnerability in the Strawberry GraphQL library poses a risk to applications using the legacy 'graphql-ws' protocol. By retaining completed subscriptions in bookkeeping, it can lead to legitimate requests being blocked. Updating to the patched version 0.327.2 is essential to mitigate this issue.

See every vulnerability recorded for strawberry-graphql →

Share this vulnerability

FAQ

The vulnerability allows completed subscriptions to still count against the maximum subscription limit, potentially blocking new legitimate subscriptions.

You can use the Vulert playground to monitor and check for vulnerabilities in your application without needing to sign up.

The affected versions are from 0.312.3 to 0.327.0. Ensure you upgrade to 0.327.2 or later to resolve the issue.

The primary impact is on connection-level availability, where legitimate subscription requests may be denied due to incorrect resource accounting.

While the vulnerability does not directly lead to memory exhaustion, multiple long-lived connections could increase retained task state, which may lead to resource issues.

Related vulnerabilities

Recent vulnerabilities recorded for strawberry-graphql.

How To Fix

Latest published version: 0.336.2 as of 22 Oct 2026

pip install --upgrade "strawberry-graphql==0.336.2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.327.2

This is the first release that contains the fix.

pip install --upgrade "strawberry-graphql==0.327.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback