Missing Authentication for Critical Function Affecting strawberry-graphql package, versions [,0.312.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Missing Authentication for Critical Function vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-STRAWBERRYGRAPHQL-15922312
  • published7 Apr 2026
  • disclosed6 Apr 2026
  • creditJeremy Katz, Wes Ring

Introduced: 6 Apr 2026

NewCVE-2026-35523  (opens in a new tab)
CWE-306  (opens in a new tab)

How to fix?

Upgrade strawberry-graphql to version 0.312.3 or higher.

Overview

strawberry-graphql is an A library for creating GraphQL APIs

Affected versions of this package are vulnerable to Missing Authentication for Critical Function via the on_ws_connect process. An attacker can gain unauthorized access to WebSocket subscription endpoints by connecting with the legacy graphql-ws subprotocol and sending a start message directly, bypassing the required authentication handshake.

Note:

This is only exploitable if the application relies on on_ws_connect for authentication or authorization.

Workaround

This vulnerability can be mitigated by explicitly disabling the legacy graphql-ws subprotocol by setting subscription_protocols=[GRAPHQL_TRANSPORT_WS_PROTOCOL] on the GraphQL view or router.

CVSS Base Scores

version 4.0
version 3.1