External risk intelligence

Directus WebSocket Authorization Bypass Vulnerability.

CVE advisorySeverity: CRITICAL (CVSS 9.2)

CVE-2026-126539

Directus is a headless CMS and backend-as-a-service platform commonly deployed as a public-facing API and web application. The vulnerability specifically affects public-mode WebSocket connections, which are designed to be accessible to clients over the network. Given its role as an internet-exposed application interface, there is a high likelihood of reachability in standard deployments.

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A vulnerability in Directus allows unauthorized access to data by bypassing permission checks through a specific type of connection. This could enable attackers to read, create, update, or delete records within user-defined collections. The main concern is confirming if your Directus deployment is affected and exposed.

  • Attackers can bypass access controls.
  • Critical data access is possible without authorization.
  • Confirm Directus relevance and exposure.

Attack Path

How an attacker could exploit the issue

An attacker can bypass authentication to access Directus by exploiting a vulnerability in public WebSocket connections. This is achieved by sending a malformed authentication message that causes the system to incorrectly process the authentication attempt, effectively granting the attacker access without a valid token. Once authenticated, the attacker can then perform unauthorized actions on user-defined data collections.

  • Unauthenticated access to public WebSockets.
  • Sending a failed authentication message.
  • Unauthorized data access and modification.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could affect user data and system behavior by allowing unauthenticated attackers to bypass permission checks on public WebSocket connections. When supported by the advisory, attackers may read, create, update, or delete records in any user-defined collection.

  • User data and records at risk.
  • Bypass permission checks on public WebSockets.
  • Unauthorized data access or modification.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability in Directus impacts systems using public-mode WebSocket connections, potentially allowing unauthenticated attackers to bypass permission checks and access or modify any user-defined data. Responsibility for addressing this likely falls to the platform or infrastructure teams managing the Directus deployment, in coordination with the application owners who define the data collections and user permissions. The first critical step is to identify all instances of Directus, confirm their exposure, and then assess the business criticality of each to prioritize remediation efforts, which may involve vendor coordination or implementing temporary risk reduction measures.

  • Platform and application teams own the fix.
  • Verify public WebSocket endpoint reachability.
  • Plan remediation based on exposure and criticality.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is Directus?

Directus is a headless content management system and backend-as-a-service platform. Developers use it to build dynamic applications by connecting to SQL databases and exposing content through automatically generated APIs and real-time WebSocket connections.

What does CVE-2026-126539 mean?

This vulnerability is an authorization bypass, categorized under CWE-636. It happens because the system fails to correctly enforce security checks during specific WebSocket interactions. Essentially, the software is tricked into granting administrative access to an unauthenticated party.

How does an attacker trigger this vulnerability?

An attacker sends a specifically crafted, invalid authentication message to a public-mode WebSocket connection. This causes the internal handleAuthRequest function to set the accountability status to null, inadvertently bypassing standard permission requirements. This does not happen if the WebSocket connection is already authenticated correctly or if the public mode is disabled.

Is my Directus instance relevant to this threat?

According to Halo Surface Signal, this vulnerability is highly relevant if your instance exposes public-mode WebSocket connections to the internet. Because Directus is commonly used as a public-facing API, any deployment that allows these open connections is a potential target for unauthorized data access.

What are the first steps to address this issue?

Begin by inventorying your Directus deployments to confirm which versions are running and whether public-mode WebSockets are enabled. Once identified, prioritize updating to version 12.1.0 or later, which contains the necessary security fixes for this authorization flaw.

References