Directus: Authorization bypass via public WebSocket REST interface
Summary
Directus before 12.1.0 contains an authorization bypass in the WebSocket REST interface when public WebSocket authentication mode is enabled. An unauthenticated attacker can send an invalid token, which causes the server to drop the permission context, and then read, create, update or delete records in any user-defined collection. The attack requires that public WebSocket REST access is configured and reachable over the network.
Affected
- Directus versions before 12.1.0 (affected range: 0 to below 12.1.0)
- Relevant only when WEBSOCKETS_REST_AUTH is set to public
Fixed in
- Fixed in Directus 12.1.0 (corresponds to @directus/api 37.0.0)
- Later releases are available; the latest version is 12.5.1 according to the changelog. Review breaking changes before upgrading.
Workaround
- Set WEBSOCKETS_REST_AUTH to handshake or strict
- Alternatively, disable the WebSocket endpoints if they are not needed
- Configured query limits and MAX_BATCH_MUTATION are not authorization controls and must not be relied on as mitigation
Exploitation
- No known exploitation in the wild; no CISA KEV listing found
- No public exploit found; the issue has not been independently reproduced
- Unknown: whether the CVE mapping is confirmed by NVD; the CVSS 9.2 score is unverified
Our recommendation
- Identify all Directus instances and their versions, and check whether WEBSOCKETS_REST_AUTH is set to public
- If public mode is set on an internet-facing instance, apply the workaround immediately or disable WebSockets
- Upgrade to 12.1.0 or later after checking CORS_ORIGIN settings, since WebSocket connections from unlisted origins are now rejected
- Review logs for unexpected WebSocket traffic
- Verify the NVD record and CVSS score once published
Public exploits
Links to third-party sites, not checked by us – exploit code can contain malware. Only use it in isolated test environments.
- Proof of concept on GitHub (1 repositories)
fixedbyreboot/CVE-2026-126539-POC
Research sources
- GitHub Security Advisory GHSA-97xr-jchp-xm3c github.com
- VulnCheck Advisory www.vulncheck.com
- Directus Release v12.1.0 github.com
- Fix commit 8d4cd86 github.com
- Directus Version 12 Breaking Changes directus.com
- Directus Changelog directus.com
Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 11 Nov 2026, 02:21.
Original description (NVD)
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.
NVD references (5)
- https://github.com/directus/directus/blob/v12.0.2/api/src/websocket/controllers/base.ts#L381-L397
- https://github.com/directus/directus/commit/8d4cd86783bcbf5444eaf290e8dcecb33929300e
- https://github.com/directus/directus/releases/tag/v12.1.0
- https://github.com/directus/directus/security/advisories/GHSA-97xr-jchp-xm3c
- https://www.vulncheck.com/advisories/directus-before-12.1.0-authorization-bypass-via-public-websocket-rest-in…
Sources
The tracker combines official, freely usable data sources – updated continuously:
- NVD (NIST) – CVEs, rating (CVSS), affected products
- CISA KEV – vulnerabilities confirmed by CISA as actively exploited
- CISA Vulnrichment – CISA assessment (SSVC) in the official CVE record
- FIRST EPSS – probability of exploitation
- Microsoft MSRC – Patch Tuesday: vulnerabilities, severity, updates
- PoC-in-GitHub – public proof-of-concept repositories
- Metasploit (Rapid7) – modules of the Metasploit Framework
- Exploit-DB (OffSec) – archive of public exploits (links only)
- Patch days: official vendor pages (linked per vendor) (Vendor patch days)
This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.
Affected? We can help.
We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.
