7.5 HIGH
- CVSS version: 3.1
- Attack vector (AV): NETWORK
- Attack complexity (AC): LOW
- Privileges required (PR): NONE
- User interaction (UI): NONE
- Scope (S): UNCHANGED
- Confidentiality impact (C): NONE
- Integrity impact (I): NONE
- Availability impact (A): HIGH
by @LeSuisse Activity log
- Created automatic suggestion
- @LeSuisse removed package pkgsRocm.python3Packages.strawberry-django
- @LeSuisse removed package python313Packages.strawberry-django
- @LeSuisse removed package python312Packages.strawberry-django
- @LeSuisse removed package strawberry-qt6
- @LeSuisse removed package strawberry
- @LeSuisse accepted
- @LeSuisse published on GitHub
Strawberry GraphQL affected by a Denial of Service via unbounded WebSocket subscriptions
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.
References
Affected products
- ==< 0.312.3
Matching in nixpkgs
pkgs.python312Packages.strawberry-graphql
GraphQL library for Python that leverages type annotations
pkgs.python313Packages.strawberry-graphql
GraphQL library for Python that leverages type annotations
pkgs.pkgsRocm.python3Packages.strawberry-graphql
GraphQL library for Python that leverages type annotations
Ignored packages (5)
pkgs.strawberry
Music player and music collection organizer
pkgs.strawberry-qt6
Music player and music collection organizer
pkgs.python312Packages.strawberry-django
Strawberry GraphQL Django extension
pkgs.python313Packages.strawberry-django
Strawberry GraphQL Django extension
pkgs.pkgsRocm.python3Packages.strawberry-django
Strawberry GraphQL Django extension
Package maintainers
-
@Izorkin Yurii Izorkin <Izorkin@gmail.com>