Intel

AIKIDO-2026-390592

directus is vulnerable to Improper Authorization

Improper AuthorizationGHSA-97xr-jchp-xm3c Published Yesterday

92

Critical Risk

This Affects:

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

TL;DR

When a Directus instance is configured for public WebSocket REST access, a failed authentication message on an already connected socket replaces the client's public accountability with a null accountability and leaves the connection open. Null accountability is the internal-trust state for which the service layer skips permission evaluation entirely, so every subsequent item message runs with no authorization check. An unauthenticated caller can deliberately submit an invalid token, or let a token expire, and then read, create, update, or delete records in any user-defined collection, including mass deletion by filter. The fix retains a public-role accountability object on authentication failure and token expiry in every WebSocket mode.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you have WebSockets enabled with the REST WebSocket authentication mode set to public.

Background info

directus is vulnerable to Improper Authorization in versions 0.0.1 - 12.0.2.

How to fix this

Upgrade the directus library to the patch version.