Uncaught Exception Affecting http-proxy-middleware package, versions >=0.8.0 <4.2.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.02% (65th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-HTTPPROXYMIDDLEWARE-23188842
  • published1 Dec 2026
  • disclosed1 Dec 2026
  • credit陳昱昇(YuSheng Chen)

Introduced: 1 Dec 2026

NewCVE-2026-140102  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade http-proxy-middleware to version 4.2.2 or higher.

Overview

Affected versions of this package are vulnerable to Uncaught Exception via the handleUpgrade function when ws: true is enabled. An Upgrade request whose path does not match pathFilter leaves the raw socket without an error listener, so a remote unauthenticated client can send such an Upgrade request and then reset the TCP connection, triggering an unhandled ECONNRESET error that terminates the gateway process. This crash occurs even when middleware and server error and clientError callbacks are configured.

CVSS Base Scores

version 4.0
version 3.1