CVE-2024-54151
Directus allows unauthenticated access to WebSocket events and operations
Also known as GHSA-849r-qrwj-8rv4
Mitigation
- Upgrade directus to 11.3.0 or later.
- Upgrade @directus/api to 23.2.0 or later.
Who should check
- Projects that depend on npm package directus (>= 11.0.0, < 11.3.0)
- Projects that depend on npm package @directus/api (>= 22.2.0, < 23.2.0)
- Anyone running directus >= 11.0.0, < 11.3.0
Vulnerability facts
- Affected
- directus >= 11.0.0, < 11.3.0; @directus/api >= 22.2.0, < 23.2.0
- Fixed in
- 11.3.0, 23.2.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.97% chance of exploitation in 30 days (percentile 61, 2026-11-26)
- CWE
- CWE-200
- Modified
Description
Directus is a real-time API and App dashboard for managing SQL database content. Starting in version 11.0.0 and prior to version 11.3.0, when setting `WEBSOCKETS_GRAPHQL_AUTH` or `WEBSOCKETS_REST_AUTH` to "public", an unauthenticated user is able to do any of the supported operations (CRUD, subscriptions) with full admin privileges. This impacts any Directus instance that has either `WEBSOCKETS_GRAPHQL_AUTH` or `WEBSOCKETS_REST_AUTH` set to `public` allowing unauthenticated users to subscribe for changes on any collection or do REST CRUD operations on user defined collections ignoring permissions. Version 11.3.0 fixes the issue.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm directus | >= 11.0.0, < 11.3.0 | 11.3.0 | osv |
| npm @directus/api | >= 22.2.0, < 23.2.0 | 23.2.0 | osv |
| directus | >= 11.0.0, < 11.3.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-54151. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-54151.md Affected: directus >= 11.0.0, < 11.3.0; @directus/api >= 22.2.0, < 23.2.0 Fixed in: 11.3.0, 23.2.0 Steps: 1. Search this machine and project for directus (npm), @directus/api (npm), directus: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2024-54151 being exploited?
There is no confirmed exploitation: CVE-2024-54151 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.97% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-54151?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-54151?
directus >= 11.0.0, < 11.3.0; @directus/api >= 22.2.0, < 23.2.0.
Is there a fix for CVE-2024-54151?
Yes. Fixed in 11.3.0, 23.2.0. Upgrade directus to 11.3.0 or later. Upgrade @directus/api to 23.2.0 or later.
How do I check if I'm affected by CVE-2024-54151?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.