High
http-proxy-middleware crash from crafted Upgrade request
A remote unauthenticated client can send an Upgrade request whose path does not match pathFilter while ws: true is enabled, leaving the raw socket without an error listener. The resulting unhandled ECONNRESET terminates the gateway process, even when error callbacks are configured.
2.0.123.0.114.2.2Am I affected?
You are affected if the installed version is older than the fixed version of its release line: 2.0.12, 3.0.11, 4.2.2. Check the version you have and update to the fixed version of your line or later. The fixed versions are verified against a vendor or advisory source.
Affected software and versions
| Package | Ecosystem | Affected | Fixed in |
|---|---|---|---|
http-proxy-middleware | other | >=0.8.0, <2.0.12 | 2.0.12 |
http-proxy-middleware | other | >=3.0.0-beta.0, <3.0.11 | 3.0.11 |
http-proxy-middleware | other | >=4.0.0-beta.0, <4.2.2 | 4.2.2 |
A fixed version is shown only when it is verified against a vendor or advisory source.
Who should check
Any project using http-proxy-middleware on macOS, Windows or Linux: versions 0.8.0 up to but not including 2.0.12, 3.0.0-beta.0 up to but not including 3.0.11, and 4.0.0-beta.0 up to but not including 4.2.2.
Expected outcome after remediation
Report whether http-proxy-middleware is installed and its version, and either confirm the fixed version is now in use or state what still needs manual action.
Get the fix
FixLane has a reviewed fix procedure for this incident: a read-only check first, then the fix. Ask the Telegram bot, or connect an AI agent to the FixLane MCP server and call get_fix_prompt with incident id 5340 and your operating system.