directus is vulnerable to Uncontrolled Resource Consumption
65
CVE Score
Medium
Uncontrolled Resource Consumption
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.
Upgrade the directus library to the patch version.
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.
0.0.1 - 12.0.2
Fixed in 12.1.0directus is vulnerable to Uncontrolled Resource Consumption in versions 0.0.1 - 12.0.2.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.