A WebSocket server can run out of memory even when its application-level message limit looks reasonable. CVE-2026-140000 is a high-severity denial-of-service vulnerability in the npm package websocket-driver. The maintainer disclosed it on November 28, 2026, and the GitHub Advisory Database reviewed the advisory on December 3. The first patched release for this CVE is 0.8.2. If you confirm an affected version on a reachable server, prioritize the update.
At a glance
| Field | Detail |
|---|---|
| CVE | CVE-2026-140000 |
| Affected package | websocket-driver on npm |
| Affected versions | Earlier than 0.8.2 |
| First fixed release | 0.8.2 |
| Impact | Memory exhaustion that can crash the server process and interrupt WebSocket connections |
| Priority | High severity according to the maintainer’s advisory; prioritize reachable deployments |
What went wrong
Vulnerable versions can keep large input buffers in memory longer than needed. As retained memory grows, the process can run out of memory and crash. The maintainer describes the issue as remotely reachable without authentication in the default configuration. This is an availability issue; the advisory does not describe remote code execution or data theft for this CVE.
This is a package advisory, not a vulnerability in the WebSocket protocol or every Node.js WebSocket server. Running WebSockets, seeing an HTTP 504, or having a dependency name in an old lockfile is not enough to establish exposure. Find the process that actually terminates the WebSocket connection and identify the dependencies that process ships.
Check whether your service is affected
Run these inventory commands from the relevant Node.js service directory or a faithful copy of the deployment artifact:
npm ls websocket-driver --all
npm explain websocket-driver
The first command shows installed copies in the dependency tree. The second helps identify which parent dependency brings the package in. For a container deployment, verify the production image or its software bill of materials, not just the development tree. Repeat the check for gateways, notification services, and workers that terminate their own WebSocket connections. In a monorepo, inspect the actual workspace and lockfile used to build each service.
Treat an affected version in a server that accepts untrusted WebSocket connections as a priority. If the only copy is in a build-time dependency that is absent from deployed artifacts, record the evidence for that distinction. If you cannot determine what is deployed, mark the service as still under assessment rather than assuming it is unaffected.
Patch and verify the rollout
- Update the right dependency. For a direct dependency, upgrade to 0.8.2 or a later compatible version. For a transitive dependency, prefer updating the parent to a release that resolves the fixed driver. If a temporary override is necessary, document it and run compatibility checks.
- Rebuild from the committed lockfile. Verify the rebuilt production artifact no longer contains a vulnerable copy in the relevant service. A lockfile change or local install is not proof that running instances have been patched.
- Canary the release. In staging, use ordinary authorized clients to check connection setup, notifications, reconnection, and idle behavior. During rollout, monitor process memory, restarts, and client disconnects. Drain or replace every old replica according to your normal rollout procedure.
- Verify after deployment. Record the artifact digest or release identifier, dependency version, and rollout status. Check that every serving replica is on the expected build before closing the finding.
While the patch is rolling out
Where operationally feasible, restrict WebSocket access to trusted callers and set connection limits at the layer that accepts the connections. Make sure an alternate origin cannot bypass that layer. Monitor available memory, out-of-memory termination events, restarts, connection drops, and reconnect spikes. These controls can reduce impact and improve visibility, but they do not replace the package update. A memory spike or a gateway error alone is not evidence of exploitation: correlate it with application and infrastructure events before drawing that conclusion.
Bottom line: Find the deployed package version, patch confirmed affected services, and verify the running artifact. Don’t close the issue just because a proxy or a message-size setting is in place.
Contact Blueleaf