Intel

AIKIDO-2026-289883

directus is vulnerable to Uncontrolled Resource Consumption

Uncontrolled Resource ConsumptionGHSA-ff8w-8crv-9rcf Published Yesterday

65

Medium Risk

This Affects:

JSdirectus
0.0.1 - 12.0.2
Fixed in 12.1.0
Are you affected? Scan for Free

TL;DR

The GraphQL WebSocket transport did not apply the parser and validation limits that guard the HTTP GraphQL endpoint, so documents arrived without the query token bound. Because the transport accepts queries and mutations alongside subscriptions, a single message with deeply nested relational fields expands into a disproportionate amount of parsing, validation, and database work. A client that can reach the endpoint can consume CPU, memory, and database connections out of proportion to its request and degrade the API for other users. The fix parses and validates WebSocket documents under the same shared rule set and token limit as the HTTP endpoint.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you have WebSockets and the GraphQL WebSocket endpoint enabled.

Background info

directus is vulnerable to Uncontrolled Resource Consumption in versions 0.0.1 - 12.0.2.

How to fix this

Upgrade the directus library to the patch version.