Directus public WebSocket accepts unchecked requests after failed auth
CVE-2026-126539
Anyone can read and delete posts on this data management web server.
- CVE
- CVE-2026-126539 (opens in a new tab)
- Score
- CVSS 8.1
- Public date
- 2026-08-05
- First seen
Mitigation
Update Directus to 12.1.0 or later. If you cannot, set WEBSOCKETS_REST_AUTH to handshake or strict, or set WEBSOCKETS_ENABLED to false.
Can't update yet?
Add this line to the config file:
WEBSOCKETS_REST_AUTH to handshake or strict
A wrong setting can stop the service or lock you out. Check the source links below first.
Summary
Sending a failed auth message on Directus public-mode WebSockets skips permission checks. An unauthenticated attacker can read, write or delete data in user-defined collections, affecting versions before 12.1.0.
Exploit code is public
Affected when
- WEBSOCKETS_ENABLED set to true
- WEBSOCKETS_REST_AUTH set to public
- attacker can reach the WebSocket endpoint
5 other Incidents of this product in the last 30 days
Incidents by product: directus
Other recent Incidents of directus
Read the advisory · github.com (opens in a new tab)
- Advisory: github.com (opens in a new tab)
- Advisory: github.com (opens in a new tab)
- Write-up: github.com (opens in a new tab)
- Write-up: vulncheck.com (opens in a new tab)
- CVE record: cve.org (opens in a new tab)
- Repository: fixedbyreboot/CVE-2026-126539-POC (opens in a new tab)