Intel

AIKIDO-2026-593378

directus is vulnerable to Cross-Site WebSocket Hijacking (CSWSH)

Cross-Site WebSocket Hijacking (CSWSH)GHSA-mww8-4gwh-rjfw Published Yesterday

81

High Risk

This Affects:

JSdirectus
10.10.5 - 12.0.2
Fixed in 12.1.0
Are you affected? Scan for Free

TL;DR

The WebSocket upgrade handler accepts cross-origin upgrade requests carrying the session cookie without validating the handshake Origin, and the upgrade path bypasses the CORS middleware used by the REST and GraphQL transports. A browser attaches the session cookie automatically, so a page on an untrusted origin can open a WebSocket that is authenticated as the visiting user. Over that connection it can read, create, update, and delete records in any collection the victim can access, extending to system collections when the victim is an administrator. The fix enforces an allowed-origin check on WebSocket connections.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you have WebSockets enabled and rely on session-cookie authentication.

Background info

directus is vulnerable to Cross-Site WebSocket Hijacking (CSWSH) in versions 10.10.5 - 12.0.2.

How to fix this

Upgrade the directus library to the patch version.