Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach public-mode WebSocket endpoint
-
DeliverySend 'auth' message with invalid token
-
ExploithandleAuthRequest sets accountability to null
-
ExecutionItemsService skips permission check
-
ImpactRead/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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Directus 6.4.9 has a hardcoded admin password for the Admin account because of an INSERT statement in api/schema.sql. Ra
Directus is a real-time API and App dashboard for managing SQL database content. Rated critical severity (CVSS 9.3), thi
Directus 8 before 8.8.2 allows remote authenticated users to execute arbitrary code because file-upload permissions incl
In Directus 8.x through 8.8.1, an attacker can switch to the administrator role (via the PATCH method) without any contr
Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 8.6), this vu
Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 8.2), this vu
Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 7.7), this vu
Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 7.5), this vu
Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 7.5), this vu
Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 7.5), this vu
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 (
Directus is a real-time API and App dashboard for managing SQL database content. Rated medium severity (CVSS 6.5), this
EUVD-2026-123065
GHSA-mgp5-77q8-6g32
NVD
CVE.org
EPSS
Exploit-DB