Intel

AIKIDO-2026-593378

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

GHSA-mww8-4gwh-rjfwPublished Aug 6, 2026
August 6, 2026

81

CVE Score

High

Cross-Site WebSocket Hijacking (CSWSH)

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.

How do I fix this?

Upgrade the directus library to the patch version.

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.

Package

Versions

10.10.5 - 12.0.2

Fixed in 12.1.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea