All vulnerabilities

Servers and applications

GHSA-97xr-jchp-xm3c

Directus public WebSocket clients gain unrestricted item access after a failed auth message

Severity
Critical 9.2
Published
5 Aug 2026
Last changed
5 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
12.1.0
Weakness
Improper privilege management (CWE-269)Improper access control (CWE-284)CWE-636Missing authorization (CWE-862)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Sources
Project advisories (GitHub)

Description

When a Directus instance is configured for public WebSocket REST access, a failed auth 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 state Directus reserves for trusted internal calls, and the service layer skips permission evaluation entirely when it is present. Every subsequent items message on that socket is therefore executed with no authorization check.

The result is that failing authentication grants more access than succeeding at it. An unauthenticated attacker who can reach the public WebSocket endpoint can deliberately submit an invalid token and then read, create, update, or delete records in any user-defined collection, regardless of the permissions granted to the public role.

The WebSocket items handler passes the connected client's accountability directly into ItemsService.

From directus/directus's security advisory. Shortened; the full text is there.

Workarounds

If you cannot upgrade immediately, set WEBSOCKETS_REST_AUTH to handshake or strict, or set WEBSOCKETS_ENABLED=false to disable the WebSocket endpoints.

Workarounds as given by directus/directus's security advisory.

Affected software

SoftwareAffected versions
DirectusServers and applications · github:directus/directus
  • Every version before 12.1.0

About Directus

The flexible backend for all your projects 🐰 Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.

From its GitHub repository.
Weekly downloads (npm)
30,924npm, 15 Nov 2026
Docker Hub pulls
50,954,770Docker Hub, 15 Nov 2026
GitHub stars
38,722GitHub, 15 Nov 2026
Forks
5,000GitHub, 15 Nov 2026
Latest release
v12.6.1GitHub, 15 Nov 2026
Released
4 Nov 2026GitHub
First published on GitHub
12 Dec 2012GitHub

References