All vulnerabilities

Servers and applications

GHSA-ff8w-8crv-9rcf

Resource exhaustion via unbounded GraphQL documents on the WebSocket endpoint

Severity
Medium 6.5
Published
5 Aug 2026
Last changed
5 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
12.1.0
Weakness
Uncontrolled resource consumption (CWE-400)Protection mechanism failure (CWE-693)Allocation without limits (CWE-770)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Sources
Project advisories (GitHub)

Description

The GraphQL WebSocket endpoint did not apply the parser and validation limits that guard the HTTP GraphQL endpoint. Documents arriving over the WebSocket transport were parsed without the GRAPHQL_QUERY_TOKEN_LIMIT bound. Because that transport accepts query and mutation operations alongside subscriptions, an ordinary query with deeply nested relational fields could be executed there without the document size ceiling that applies over HTTP, expanding a single client message into a disproportionate amount of server side work.

The HTTP GraphQL endpoint parses incoming documents through a middleware that enforces GRAPHQL_QUERY_TOKEN_LIMIT, capping document size before any execution work begins. The WebSocket transport did not route through that middleware and supplied no equivalent bound of its own, so document size and nesting depth were effectively unbounded on that path.

From directus/directus's security advisory. Shortened; the full text is there.

Workarounds

If you cannot upgrade immediately, set WEBSOCKETS_GRAPHQL_ENABLED=false, or WEBSOCKETS_ENABLED=false to disable all WebSocket endpoints.

Workarounds as given by directus/directus's security advisory.

Affected software

SoftwareAffected versions
DirectusServers and applications · github:directus/directus
  • Every version before 12.1.0

About Directus

The flexible backend for all your projects 🐰 Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.

From its GitHub repository.
Weekly downloads (npm)
30,924npm, 15 Nov 2026
Docker Hub pulls
50,954,770Docker Hub, 15 Nov 2026
GitHub stars
38,722GitHub, 15 Nov 2026
Forks
5,000GitHub, 15 Nov 2026
Latest release
v12.6.1GitHub, 15 Nov 2026
Released
4 Nov 2026GitHub
First published on GitHub
12 Dec 2012GitHub

References