Multiple security vulnerabilities have been identified in http-proxy-middleware, affecting versions 2.0.9 through 2.0.10, 3.0.5 through 3.0.7, and 4.0.0-beta.0 through 4.2.0. The issues can allow unauthenticated remote attackers to bypass gateway controls, execute unintended backend requests, or crash the gateway. The combined risk is significant for deployments that expose proxied routes to untrusted clients while relying on the middleware for routing, identity normalization, or WebSocket handling.
CVE-2026-140103 (CVSS 5.4 — Medium): The request-body reconstruction behavior can mistake an empty buffered state for a fully parsed body when a body parser has not consumed the stream. An unauthenticated client can delay sending the body after headers, causing the proxy to forward a synthesized empty body and then pipe the remaining attacker-controlled bytes as a second HTTP request to the backend, bypassing route filters and trusted identity handling.[/subscribe_to_unlock_form]
Multiple security vulnerabilities have been identified in http-proxy-middleware, affecting versions 2.0.9 through 2.0.10, 3.0.5 through 3.0.7, and 4.0.0-beta.0 through 4.2.0. The issues can allow unauthenticated remote attackers to bypass gateway controls, execute unintended backend requests, or crash the gateway. The combined risk is significant for deployments that expose proxied routes to untrusted clients while relying on the middleware for routing, identity normalization, or WebSocket handling.
CVE-2026-140103 (CVSS 5.4 — Medium): The request-body reconstruction behavior can mistake an empty buffered state for a fully parsed body when a body parser has not consumed the stream. An unauthenticated client can delay sending the body after headers, causing the proxy to forward a synthesized empty body and then pipe the remaining attacker-controlled bytes as a second HTTP request to the backend, bypassing route filters and trusted identity handling.[emaillocker id="1283"]
CVE-2026-140102 (CVSS 7.5 — High): A WebSocket upgrade request sent to a path outside the configured route filter can trigger a crash when the connection is reset after the upgrade is initiated. An unauthenticated remote attacker can exploit this to deny service to the gateway without needing credentials or prior access.
These vulnerabilities collectively present a serious risk to proxy deployments that accept untrusted traffic and rely on the middleware to enforce routing, identity, or connection-state controls. The most exposed environments are those with public proxied routes, backend services that trust gateway-set headers, or enabled upgrade handling. Operators should prioritize review of exposed proxy configurations and backend trust assumptions.
We recommend you to update http-proxy-middleware to version 2.0.12, 3.0.11, or 4.2.2 depending on your installed branch.
The following reports contain further technical details:
[/emaillocker]