Intel

AIKIDO-2026-390592

directus is vulnerable to Improper Authorization

GHSA-97xr-jchp-xm3cPublished Aug 6, 2026
August 6, 2026

92

CVE Score

Critical

Improper Authorization

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.

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 enabled with the REST WebSocket authentication mode set to public.

Package

Versions

0.0.1 - 12.0.2

Fixed in 12.1.0

Background info

directus is vulnerable to Improper Authorization 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