Advisory

PYSEC-2026-133

Also known as: CVE-2026-35523, GHSA-vpwc-v33q-mq89

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2026-04-07 17:16 UTC
Modified
2026-05-20 09:19 UTC

Affected packages and fixes

strawberry-graphql

PyPI · All systems

Affected

  • introduced 0, fixed 0.312.3 (ecosystem)

Fixed versions

0.312.3

Fix

  • Fixed version 0.312.3
    pip install --upgrade strawberry-graphql==0.312.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences