{"id":"CVE-2026-35523","aliases":["CVE-2026-35523","GHSA-vpwc-v33q-mq89","PYSEC-2026-133"],"related":[],"kind":"vulnerability","state":"published","title":"Authentication bypass in strawberry-graphql via legacy graphql-ws WebSocket subprotocol","summary":"Strawberry GraphQL is a library for creating GraphQL APIs. Strawberry up until version 0.312.3 is vulnerable to an authentication bypass on WebSocket subscription endpoints. The legacy graphql-ws subprotocol handler does not verify that a connection_init handshake has been completed before processing start (subscription) messages. This allows a remote attacker to skip the on_ws_connect authentication hook entirely by connecting with the graphql-ws subprotocol and sending a start message directly, without ever sending connection_init.  This vulnerability is fixed in 0.312.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Strawberry GraphQL is a library for creating GraphQL APIs. Strawberry up until version 0.312.3 is vulnerable to an authentication bypass on WebSocket subscription endpoints. The legacy graphql-ws subprotocol handler does not verify that a connection_init handshake has been completed before processing start (subscription) messages. This allows a remote attacker to skip the on_ws_connect authentication hook entirely by connecting with the graphql-ws subprotocol and sending a start message directly, without ever sending connection_init.  This vulnerability is fixed in 0.312.3.","source":"cvelist"},{"lang":"en","text":"Strawberry up until version `0.312.3` is vulnerable to an authentication bypass on WebSocket subscription endpoints. The legacy graphql-ws subprotocol handler does not verify that a `connection_init` handshake has been completed before processing start (subscription) messages. This allows a remote attacker to skip the `on_ws_connect` authentication hook entirely by connecting with the graphql-ws subprotocol and sending a start message directly, without ever sending `connection_init`.\n\nThe graphql-transport-ws subprotocol handler is not affected, as it correctly gates subscription operations on a connection_acknowledged flag. However, both subprotocols are enabled by default in all framework integrations that support websockets, and the subprotocol is selected by the client via the Sec-WebSocket-Protocol header.\n\nAny application relying on `on_ws_connect` for authentication or authorization is affected.\n\nMitigation: Upgrade to the patched version, or explicitly disable the legacy graphql-ws subprotocol by setting `subscription_protocols=[GRAPHQL_TRANSPORT_WS_PROTOCOL]` on your GraphQL view/router.","format":"markdown","source":"ghsa"}],"published":"2026-04-06T18:00:26.000Z","modified":"2026-06-17T10:40:43.407Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","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:H/I:N/A:N","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:H/I:N/A:N","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:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-306"],"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-vpwc-v33q-mq89","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35523","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-133.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-09T16:11:53.120Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35523","url":"https://www.cve.org/CVERecord?id=CVE-2026-35523","licence":"CVE Terms of Use","modified":"2026-04-09T16:18:51.112Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vpwc-v33q-mq89","url":"https://github.com/advisories/GHSA-vpwc-v33q-mq89","licence":"CC-BY-4.0","modified":"2026-06-08T20:00:10.930Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35523","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35523","licence":"Public domain","modified":"2026-06-17T10:40:43.407Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-133","url":"https://osv.dev/vulnerability/PYSEC-2026-133","licence":"CC-BY-4.0","modified":"2026-05-20T09:19:17.609Z"}],"updatedAt":"2026-11-25T22:59:18.128Z","epss":{"score":0.0045,"percentile":0.40826,"date":"2026-12-02T12:00:21.000Z"}}