CVE-2023-45820:
Directus crashes on invalid WebSocket message
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.57527%
CWE
Published
10/19/2023
Updated
11/6/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
directus | npm | >= 10.4.0, < 10.6.2 | 10.6.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in WebSocket upgrade handlers that failed to properly handle protocol errors. The commit diff shows the fix added a catchInvalidMessages
method with error listeners to multiple upgrade paths. The vulnerable functions are the pre-patch versions of handleUpgrade
and handleHandshakeUpgrade
in SocketController
, which lacked this error handling. These functions directly process
WebSocket connections and were missing critical error event handlers, allowing malformed frames to trigger uncaught exceptions that crash the Node.js
process
.