{"id":"CVE-2026-35526","aliases":["CVE-2026-35526","GHSA-hv3w-m4g2-5x77","PYSEC-2026-134"],"related":[],"kind":"vulnerability","state":"published","title":"Strawberry GraphQL affected by a Denial of Service via unbounded WebSocket subscriptions","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nAn 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Strawberry GraphQL es una biblioteca para crear APIs GraphQL. Antes de la versión 0.312.3, los manejadores de suscripción WebSocket de Strawberry GraphQL, tanto para los protocolos graphql-transport-ws como para los legados graphql-ws, asignan una asyncio.Task y un objeto Operation asociado por cada mensaje de suscripción entrante sin aplicar ningún límite en el número de suscripciones activas por conexión. Un atacante no autenticado puede abrir una única conexión WebSocket, enviar connection_init y luego inundar con mensajes de suscripción con IDs únicos. Cada mensaje genera incondicionalmente una nueva asyncio.Task y un generador asíncrono, causando un crecimiento lineal de la memoria y la saturación del bucle de eventos. Esto lleva a la degradación del servidor o a un fallo por OOM. Esta vulnerabilidad se corrige en la versión 0.312.3.","source":"nvd"}],"published":"2026-04-06T18:00:29.000Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":"< 0.312.3","status":"affected"}],"vendor":"strawberry-graphql","product":"strawberry","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.312.3"}],"ecosystem":"PyPI","package":"strawberry-graphql","purl":"pkg:pypi/strawberry-graphql","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.312.3"}],"vendor":"strawberry","product":"strawberry_graphql","cpe":"cpe:2.3:a:strawberry:strawberry_graphql:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.312.3"}],"ecosystem":"PyPI","package":"strawberry-graphql","purl":"pkg:pypi/strawberry-graphql","source":"pysec"}],"references":[{"url":"https://github.com/strawberry-graphql/strawberry/security/advisories/GHSA-hv3w-m4g2-5x77","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35526","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/strawberry-graphql/strawberry/commit/0977a4e6b41b7cfe3e9d8ba84a43458a2b0c54c2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/strawberry-graphql/PYSEC-2026-134.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/strawberry-graphql/strawberry","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/strawberry-graphql/strawberry/releases/tag/0.312.3","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-08T14:55:45.309Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35526","url":"https://www.cve.org/CVERecord?id=CVE-2026-35526","licence":"CVE Terms of Use","modified":"2026-04-08T14:55:58.026Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hv3w-m4g2-5x77","url":"https://github.com/advisories/GHSA-hv3w-m4g2-5x77","licence":"CC-BY-4.0","modified":"2026-06-08T20:00:09.849Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35526","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35526","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-134","url":"https://osv.dev/vulnerability/PYSEC-2026-134","licence":"CC-BY-4.0","modified":"2026-05-20T09:19:17.728Z"}],"updatedAt":"2026-11-25T22:59:18.123Z","epss":{"score":0.00291,"percentile":0.23387,"date":"2026-12-01T12:00:22.000Z"}}