http-proxy-middleware unauthenticated crash via unhandled ECONNRESET
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-248.
Summary
http-proxy-middleware from 0.8.0 before 2.0.12, from 3.0.0-beta.0 before 3.0.11, and from 4.0.0-beta.0 before 4.2.2 is affected when ws: true is enabled. An Upgrade request whose path does not match pathFilter can leave the raw socket without an error listener. A remote unauthenticated attacker can reset the TCP connection, causing an unhandled ECONNRESET that terminates the gateway process even when error callbacks are configured. The flaw is classified as CWE-248.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| chimurai | http-proxy-middleware | 0.8.0 to before 2.0.12; 3.0.0-beta.0 to before 3.0.11; 4.0.0-beta.0 to before 4.2.2 | 2.0.12, 3.0.11, 4.2.2 | Patch available | CNA |
- http-proxy-middleware Vendorchimurai Affected 0.8.0 to before 2.0.12; 3.0.0-beta.0 to before 3.0.11; 4.0.0-beta.0 to before 4.2.2 Fixed in 2.0.12, 3.0.11, 4.2.2 Patch available CNA
Remediation
Upgrade http-proxy-middleware to version 2.0.12, 3.0.11, or 4.2.2, depending on the release line in use. The sources list no fixed version for other releases in these lines.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA http-proxy-middleware (chimurai) Fixed in 2.0.12, 3.0.11, 4.2.2
Timeline
- 2026-11-30 Threatist record created from CVE-2026-140102
References
Other 9
- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg
- https://github.com/chimurai/http-proxy-middleware/pull/1328
- https://github.com/chimurai/http-proxy-middleware/pull/1329
- https://github.com/chimurai/http-proxy-middleware/pull/1330
- https://github.com/chimurai/http-proxy-middleware/commit/386bed662facba30c5602ca211a5399f09cdd715
- https://github.com/chimurai/http-proxy-middleware/commit/6911b4daefaa138767d4e4c35302b6dea2e2b64a
- https://github.com/chimurai/http-proxy-middleware/commit/c82e123f831bae1f46d1d06d9c035e385771b7b9
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.11
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.2
More chimurai vulnerabilities
- TI-2024-14292 Uncontrolled resource consumption in http-proxy-middleware CVSS 4.0HIGH 8.7
- TI-2026-40136 http-proxy-middleware `router` host+path substring matching allows Host-header-driven backend routing bypass CVSS 4.0MEDIUM 6.9
- TI-2026-40137 http-proxy-middleware: multipart/form-data field injection via unescaped CRLF in `fixRequestBody` CVSS 3.1HIGH 7.5
- TI-2025-24004 In http-proxy-middleware before 2.0.8 and 3.x before 3.0.4, writeBody can be called twice because "else if" is not used. CVSS 3.1MEDIUM 5.3
- TI-2025-24005 In http-proxy-middleware before 2.0.9 and 3.x before 3.0.5, fixRequestBody proceeds even if bodyParser has failed. CVSS 3.1MEDIUM 5.3
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences