CVE-2026-140102
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| npm | http-proxy-middleware | >= 4.0.0-beta.0, < 4.2.2 | 4.2.2 |
| npm | http-proxy-middleware | >= 3.0.0-beta.0, < 3.0.11 | 3.0.11 |
| npm | http-proxy-middleware | >= 0.8.0, < 2.0.12 | 2.0.12 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| chimurai | http-proxy-middleware | >= 3.0.0-beta.0, < 3.0.11 | |
| chimurai | http-proxy-middleware | >= 4.0.0-beta.0, < 4.2.2 | |
| chimurai | http-proxy-middleware | >= 0.8.0, < 2.0.12 | |
References
- 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/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/releases/tag/v3.0.11
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.2
- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg
- https://nvd.nist.gov/vuln/detail/CVE-2026-140102
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.12
- https://github.com/advisories/GHSA-hvp5-3mrg-q5hg
CWEs
CWE-248
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.