Summary
CVE-2026-126539 is an authorization bypass vulnerability (CWE-636, Not Failing Securely / "Failing Open") in Directus versions before 12.1.0. Unauthenticated attackers can skip permission checks by sending a failed authentication message on public-mode WebSocket connections. It is rated CVSS v4.0 9.2 (Critical); the CVSS v3.1 score is 8.1 (High).
Technical details
- Root cause: The WebSocket handling fails open. A failed auth message on a public-mode WebSocket connection leads to permission checks being skipped (CWE-636). The affected code is in the WebSocket base controller (
api/src/websocket/controllers/base.ts). - Trigger conditions: The Directus instance accepts public-mode WebSocket connections, and the attacker sends a failed authentication message on such a connection.
- Attack vector: Network, unauthenticated, no user interaction. Attack complexity is rated High.
- Impact: Bypass of permission checks, with high impact to confidentiality, integrity and availability per the CVSS vectors.
Affected software
- Directus (npm
directus) – all versions before 12.1.0
Severity
- CVSS v4.0: 9.2 (Critical) –
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS v3.1: 8.1 (High) –
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade Directus to version 12.1.0 or later.
- No workarounds were identified in the sources reviewed. Review internet exposure of Directus instances, in particular WebSocket access, until patched.

