CVE-2024-54151: Directus allows unauthenticated access to WebSocket events and operations
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.31141%
CWE
Published
12/9/2024
Updated
12/9/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| directus | npm | >= 11.0.0, < 11.3.0 | 11.3.0 |
| @directus/api | npm | >= 22.2.0, < 23.2.0 | 23.2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from WebSocket connection handlers initializing accountability to null. The commit diff shows both base.ts and graphql.ts were modified to replace 'null' with createDefaultAccountability(). These locations directly control authentication state for WebSocket connections, and null accountability (post-Permissions Policy update) erroneously granted admin access instead of public permissions. The files/line changes match the vulnerability description and CWE-200 exposure pattern.