CVE-2026-140102: http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST (ws: true)

Published Nov 30, 2026
·
Updated

http-proxy-middleware is node.js http-proxy middleware. From 0.8.0 until 2.0.12, 3.0.11, and 4.2.2, an Upgrade request whose path does not match pathFilter can leave the raw socket without an error listener when ws: true is enabled. A remote unauthenticated client can send such an Upgrade request and reset the TCP connection, causing an unhandled ECONNRESET error that terminates the gateway process even when middleware and server error callbacks are configured. This issue is fixed in versions 2.0.12, 3.0.11, and 4.2.2.

Affected Software

1 affected component
npm/http-proxy-middleware>=0.8.0<2.0.12, >=3.0.0<3.0.11, >=4.0.0<4.2.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.0.12
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.0.11
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.2.2

Event History

Nov 30, 2026
CVE Published
via MITRE·10:40 PM
Data Sourced
via MITRE·10:40 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this denial-of-service condition?

Deployments using http-proxy-middleware with ws: true enabled are exposed if they run a version from 0.8.0 through versions before 2.0.12, 3.0.11, or 4.2.2. The triggering Upgrade request must use a path that does not match pathFilter.

2

Does an attacker need credentials or user interaction to crash the gateway?

No. A remote unauthenticated client can trigger the issue by sending the relevant Upgrade request and then resetting the TCP connection.

3

Will existing middleware or server error callbacks prevent the process termination?

No. The gateway can terminate from an unhandled ECONNRESET error even when middleware and server error callbacks are configured.

4

What versions contain the fix?

The issue is fixed in http-proxy-middleware versions 2.0.12, 3.0.11, and 4.2.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203