Skip to main content

Directus CVE-2026-126539

| EUVDEUVD-2026-123065 CRITICAL
Not Failing Securely ('Failing Open') (CWE-636)
2026-11-11 VulnCheck GHSA-mgp5-77q8-6g32
9.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach public-mode WebSocket endpoint
  2. Delivery
    Send 'auth' message with invalid token
  3. Exploit
    handleAuthRequest sets accountability to null
  4. Execution
    ItemsService skips permission check
  5. Impact
    Read/create/update/delete any user-defined collection

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Fail-secure design
Exploitation Conditions

Exploitation requires an instance where WEBSOCKETS_ENABLED=true (default false), WEBSOCKETS_REST_ENABLED=true, and WEBSOCKETS_REST_AUTH is set to 'public' (default is 'handshake'), with the WebSocket endpoint network-reachable by the attacker. Under these conditions no authentication is needed (CVSS PR:N): the attacker opens a public-mode WebSocket and submits a failed 'auth' message (invalid token), which drives handleAuthRequest to replace public accountability with null and leaves the socket open; the same null state also arises when a public token simply expires. Limiting factors: instances on the default 'handshake' or 'strict' WebSocket auth modes close the socket on auth failure and are not exploitable, so defaults are safe; impact is confined to user-defined collections because directus_* system collections are rejected before the service call, meaning credentials, sessions, tokens, and permissions are not reachable; configured query limits and MAX_BATCH_MUTATION reduce deletion blast radius but are not authorization controls. The only complete fix per the vendor is upgrading to 12.1.0; workarounds are setting WEBSOCKETS_REST_AUTH to 'handshake' or 'strict', or WEBSOCKETS_ENABLED=false.

Impact

The provider CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N, VC:H/VI:H/VA:H) and the vuln.today 'act_now' Decision label both point to a serious, network-reachable, unauthenticated flaw with full read/write/delete impact on user-defined data, and VulnCheck plus the vendor GHSA confirm the mechanism. However, the signals are not uniformly screaming: PR:N confirms no authentication is required, but the vector's AT:P (attack requirement present) and AC:H reflect that exploitation is only reachable on a non-default configuration - WEBSOCKETS_ENABLED=true (default false) with WEBSOCKETS_REST_AUTH set to 'public' (default 'handshake'). No EPSS score was supplied, the CVE is not listed in CISA KEV, and no proof-of-concept or exploit reference appears in the input, so there is currently no evidence of active or widespread exploitation. The net picture is a genuinely high-severity authorization bypass where real-world priority hinges almost entirely on whether an instance runs the specific public WebSocket mode; defaults are safe, so this is a high priority for the subset of exposed deployments rather than a blanket mass-exploitation event. The 'act_now' label should be honored for any instance matching the affected configuration.

Exploit ScenarioDerived

An attacker reaches a Directus instance that has WebSockets enabled with WEBSOCKETS_REST_AUTH=public, opens a WebSocket connection, and sends an 'auth' message carrying a deliberately invalid token (or simply waits for a public token to expire). handleAuthRequest clears the client's public accountability to null - the trusted-internal state that skips permission checks - so every subsequent 'items' message runs unauthorized. No public exploit code is identified in the sources, but the path is simple enough that a crafted-filter delete could wipe an entire user-defined collection in one request.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 11, 2026

Directus instances that expose the WebSocket REST interface in public authentication mode can be driven into a state where subsequent item requests execute with no permission check at all, giving an unauthenticated network attacker read, create, update and delete access to any user-defined collection. Only deployments with WEBSOCKETS_ENABLED=true, WEBSOCKETS_REST_ENABLED=true and WEBSOCKETS_REST_AUTH=public (and a reachable WebSocket endpoint) are exposed - the default 'handshake' and 'strict' modes close the socket on authentication failure and remove the attack path. The vendor fixed this in Directus 12.1.0 (@directus/api 37.0.0), the vuln.today decision label is act_now based on the provider CVSS 4.0 score of 9.2, and no public exploit code was identified at the time of analysis.

RemediationAI

Vendor-released patch: Directus 12.1.0 (with @directus/api 37.0.0), which retains a public-role accountability object on authentication failure and token expiry in every WebSocket authentication mode; upgrading to 12.1.0 or later is the only complete fix per the vendor (advisory https://github.com/directus/directus/security/advisories/GHSA-97xr-jchp-xm3c, fix commit 8d4cd86783bcbf5444eaf290e8dcecb33929300e, release https://github.com/directus/directus/releases/tag/v12.1.0). If an immediate upgrade is not possible, set WEBSOCKETS_REST_AUTH to 'handshake' or 'strict' so that failed authentication closes the socket, with the trade-off that clients currently relying on public-mode REST WebSocket access must supply valid tokens and will be disconnected on auth failure; alternatively set WEBSOCKETS_ENABLED=false to disable the WebSocket endpoints entirely, at the cost of losing real-time WebSocket functionality. Configuring query limits or MAX_BATCH_MUTATION shrinks the blast radius of mass deletion but is not an authorization control and does not close the bypass.

Affected VersionsENISA

directus 0 <12.1.0

Affected Packages

euvd directus fix: 12.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Directus is a headless CMS/data platform whose REST WebSocket controller (api/src/websocket/controllers/base.ts, handleAuthRequest) manages the Accountability object attached to each connected client. On a 'public' mode connection the client starts with a public-role accountability; when an 'auth' message fails (for example an invalid access token), the pre-patch code replaced that object with null and left the socket open - the same transition also occurred when a public-mode token simply expired without re-authentication. The WebSocket items handler passes the connected client's accountability straight into ItemsService, and ItemsService only invokes its access validation when an accountability object is present, so null - the value Directus reserves for trusted internal calls - skips the check entirely instead of denying it. This is tracked as CWE-636 (failing to apply least privilege / not failing securely), with the advisory also mapping CWE-269, CWE-284 and CWE-862 (missing authorization). Because a single attacker-supplied filter can select every row and Directus applies no batch mutation limit by default, delete-by-query is the highest-impact action available; directus_* system collections are rejected by the handler before the service call, so users, sessions, tokens and permission configuration are not reachable. The provider vector's AT:P/AC:H components are consistent with the fact that a non-default WebSocket authentication configuration must be present for exploitation.

Know when Directus gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 8.1 HIGH

Network-reachable and unauthenticated (PR:N), but only on the non-default public WebSocket configuration, so AC:H; full read/write/delete on user-defined data gives C:H/I:H/A:H with no scope change.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Directus before 12.1.0 contains an authorization bypass vulnerability that allows unauthenticated attackers to skip permission checks by sending a failed auth message on public-mode WebSocket connections. Attackers can send an invalid token so handleAuthRequest sets accountability to null, then read, create, update or delete records in any user-defined collection.

Technical POC Analysis

The bug is CWE-636: the WebSocket authentication path fails insecurely.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

Directus, a headless CMS, has a critical authentication bypass vulnerability (CVE-2026-126539) affecting deployments configured with public WebSocket REST authentication. This flaw allows unauthenticated attackers to bypass permission checks and gain full read, create, update, and delete access to any user-defined collection, potentially leading to data breaches or corruption. Leadership should prioritize remediation because it directly threatens the confidentiality and integrity of sensitive business data.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Medium
popular open-source headless CMS, moderate self-hosted footprint
Exploit
POC
Public exploit code exists
Social Media
4
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

66
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2018-10723 CRITICAL POC
9.8 May 05

Directus 6.4.9 has a hardcoded admin password for the Admin account because of an INSERT statement in api/schema.sql. Ra

CVE-2025-55746 CRITICAL POC
9.3 Aug 20

Directus is a real-time API and App dashboard for managing SQL database content. Rated critical severity (CVSS 9.3), thi

CVE-2021-29641 HIGH POC
8.8 Apr 07

Directus 8 before 8.8.2 allows remote authenticated users to execute arbitrary code because file-upload permissions incl

CVE-2021-26594 HIGH POC
8.8 Feb 23

In Directus 8.x through 8.8.1, an attacker can switch to the administrator role (via the PATCH method) without any contr

CVE-2025-30353 HIGH POC
8.6 Mar 26

Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 8.6), this vu

CVE-2024-27295 HIGH POC
8.2 Mar 01

Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 8.2), this vu

CVE-2024-39701 HIGH POC
7.7 Jul 08

Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 7.7), this vu

CVE-2024-54151 HIGH POC
7.5 Dec 09

Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 7.5), this vu

CVE-2024-36128 HIGH POC
7.5 Jun 03

Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 7.5), this vu

CVE-2023-26492 HIGH POC
7.5 Mar 03

Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 7.5), this vu

CVE-2021-26593 HIGH POC
7.5 Feb 23

In Directus 8.x through 8.8.1, an attacker can see all users in the CMS using the API /users/{id}. Rated high severity (

CVE-2024-45596 MEDIUM POC
6.5 Sep 10

Directus is a real-time API and App dashboard for managing SQL database content. Rated medium severity (CVSS 6.5), this

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy