http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST (ws: true)
- CVE-2026-140102
- GHSA-hvp5-3mrg-q5hg
- EUVD-2026-139788
Description
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.
Text from the CVE.org record.
Recommendation
http-proxy-middleware
- If you run a version from 4.0.0-beta.0 to before 4.2.2update to 4.2.2 or laterMinor version change: check the release noteshttp-proxy-middleware 4.2.2 on its registry (opens in a new tab)
- If you run 3.0.xupdate to 3.0.11 or laterPatch update: breaking changes are unlikelyhttp-proxy-middleware 3.0.11 on its registry (opens in a new tab)
- If you run a version from 0.8.0 to before 2.0.12update to 2.0.12 or laterMajor version change: expect breaking changeshttp-proxy-middleware 2.0.12 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
chimurai http-proxy-middleware
Affected versions Fixed in >= 0.8.0, < 2.0.12 none stated >= 3.0.0-beta.0, < 3.0.11 none stated >= 4.0.0-beta.0, < 4.2.2 none stated http-proxy-middlewarenpm
Affected versions Fixed in from 4.0.0-beta.0 to before 4.2.2 4.2.2 from 3.0.0-beta.0 to before 3.0.11 3.0.11 from 0.8.0 to before 2.0.12 2.0.12
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.