directus is vulnerable to Uncontrolled Resource Consumption
65
Medium Risk
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.
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.
directus is vulnerable to Uncontrolled Resource Consumption in versions 0.0.1 - 12.0.2.
Upgrade the directus library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant