Intel

AIKIDO-2026-289883

directus is vulnerable to Uncontrolled Resource Consumption

GHSA-ff8w-8crv-9rcfPublished Aug 6, 2026
August 6, 2026

65

CVE Score

Medium

Uncontrolled Resource Consumption

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.

How do I fix this?

Upgrade the directus library to the patch version.

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.

Package

Versions

0.0.1 - 12.0.2

Fixed in 12.1.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea