CVE-2026-35523
Description
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.
How to fix
- strawberry strawberry_graphql0.312.3 or later
- strawberry-graphql0.312.3 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| strawberry strawberry_graphql | v < 0.312.3 | 0.312.3 |
| strawberry-graphqlPyPI | v < 0.312.3 | 0.312.3 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.