# CVE-2026-35526: Strawberry GraphQL affected by a Denial of Service via unbounded WebSocket subscriptions

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-04-06T18:00:29.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-hv3w-m4g2-5x77, PYSEC-2026-134
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Strawberry GraphQL is a library for creating GraphQL APIs. Prior to 0.312.3, Strawberry GraphQL's WebSocket subscription handlers for both the graphql-transport-ws and legacy graphql-ws protocols allocate an asyncio.Task and associated Operation object for every incoming subscribe message without enforcing any limit on the number of active subscriptions per connection. An unauthenticated attacker can open a single WebSocket connection, send connection_init, and then flood subscribe messages with unique IDs. Each message unconditionally spawns a new asyncio.Task and async generator, causing linear memory growth and event loop saturation. This leads to server degradation or an OOM crash. This vulnerability is fixed in 0.312.3.

(As written by CVE List.)

## Affected

- strawberry-graphql strawberry: < 0.312.3
- strawberry-graphql (PyPI): before 0.312.3
- strawberry strawberry_graphql: before 0.312.3

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/strawberry-graphql/strawberry/security/advisories/GHSA-hv3w-m4g2-5x77> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35526> (advisory)
- <https://github.com/strawberry-graphql/strawberry/commit/0977a4e6b41b7cfe3e9d8ba84a43458a2b0c54c2> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/strawberry-graphql/PYSEC-2026-134.yaml> (web)
- <https://github.com/strawberry-graphql/strawberry> (package)
- <https://github.com/strawberry-graphql/strawberry/releases/tag/0.312.3> (web)

## Sources

- CVE List: [CVE-2026-35526](https://www.cve.org/CVERecord?id=CVE-2026-35526), CVE Terms of Use, modified 2026-04-08
- GitHub Advisory Database: [GHSA-hv3w-m4g2-5x77](https://github.com/advisories/GHSA-hv3w-m4g2-5x77), CC-BY-4.0, modified 2026-06-08
- NVD: [CVE-2026-35526](https://nvd.nist.gov/vuln/detail/CVE-2026-35526), Public domain, modified 2026-11-11
- PyPA Advisory Database: [PYSEC-2026-134](https://osv.dev/vulnerability/PYSEC-2026-134), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2026-35526 · Whole record: https://cve.day/CVE-2026-35526.json · Rebuilt by cve.day 2026-11-25T22:59:18.123Z
