CVE-2026-140102
http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST (ws: true)
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.
Fixes and workarounds
Fix
http-proxy-middleware (npm): GitHub reports patched versions 2.0.12, 3.0.11, 4.2.2. Check the advisory for the affected release branch.
Source: GitHub GHSA-hvp5-3mrg-q5hgFix
http-proxy-middleware (npm): OSV reports a fixed version 2.0.12. Check the advisory for supported release branches.
Source: OSV GHSA-hvp5-3mrg-q5hgFix
http-proxy-middleware (npm): OSV reports a fixed version 3.0.11. Check the advisory for supported release branches.
Source: OSV GHSA-hvp5-3mrg-q5hgFix
http-proxy-middleware (npm): OSV reports a fixed version 4.2.2. Check the advisory for supported release branches.
Source: OSV GHSA-hvp5-3mrg-q5hgAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| http-proxy-middleware chimurai |
>= 0.8.0, < 2.0.12 (affected) >= 3.0.0-beta.0, < 3.0.11 (affected) >= 4.0.0-beta.0, < 4.2.2 (affected) |
CNA: GitHub_M |
http-proxy-middlewarehttp-proxy-middleware
npm |
>= 0.8.0, <= 4.2.1 (affected, GitHub advisory range) | GitHub GHSA-hvp5-3mrg-q5hg |
http-proxy-middlewarehttp-proxy-middleware
npm |
≥ 0.8.0; < 2.0.12 (affected, semver); OSV events: introduced 0.8.0; fixed 2.0.12Source events (semver)
Other versions: unaffected |
OSV GHSA-hvp5-3mrg-q5hg |
http-proxy-middlewarehttp-proxy-middleware
npm |
≥ 3.0.0-beta.0; < 3.0.11 (affected, semver); OSV events: introduced 3.0.0-beta.0; fixed 3.0.11Source events (semver)
Other versions: unaffected |
OSV GHSA-hvp5-3mrg-q5hg |
http-proxy-middlewarehttp-proxy-middleware
npm |
≥ 4.0.0-beta.0; < 4.2.2 (affected, semver); OSV events: introduced 4.0.0-beta.0; fixed 4.2.2Source events (semver)
Other versions: unaffected |
OSV GHSA-hvp5-3mrg-q5hg |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 7.5 high |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | CNA: GitHub_M |
| 3.1 / 7.5 high |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD: [email protected] |
Exploit evidence
- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg
exploit · ADP: CISA-ADP
References
- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hgCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/chimurai/http-proxy-middleware/pull/1328CNA: GitHub_M · x_refsource_MISC
- https://github.com/chimurai/http-proxy-middleware/pull/1329CNA: GitHub_M · x_refsource_MISC
- https://github.com/chimurai/http-proxy-middleware/pull/1330CNA: GitHub_M · x_refsource_MISC
- https://github.com/chimurai/http-proxy-middleware/commit/386bed662facba30c5602ca211a5399f09cdd715CNA: GitHub_M · x_refsource_MISC
- https://github.com/chimurai/http-proxy-middleware/commit/6911b4daefaa138767d4e4c35302b6dea2e2b64aCNA: GitHub_M · x_refsource_MISC
- https://github.com/chimurai/http-proxy-middleware/commit/c82e123f831bae1f46d1d06d9c035e385771b7b9CNA: GitHub_M · x_refsource_MISC
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.11CNA: GitHub_M · x_refsource_MISC
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.2CNA: GitHub_M · x_refsource_MISC
- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hgADP: CISA-ADP · exploit
- https://github.com/chimurai/http-proxy-middleware/commit/386bed662facba30c5602ca211a5399f09cdd715[email protected]
- https://github.com/chimurai/http-proxy-middleware/commit/6911b4daefaa138767d4e4c35302b6dea2e2b64a[email protected]
- https://github.com/chimurai/http-proxy-middleware/commit/c82e123f831bae1f46d1d06d9c035e385771b7b9[email protected]
- https://github.com/chimurai/http-proxy-middleware/pull/1328[email protected]
- https://github.com/chimurai/http-proxy-middleware/pull/1329[email protected]
- https://github.com/chimurai/http-proxy-middleware/pull/1330[email protected]
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.11[email protected]
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.2[email protected]
- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg[email protected]
- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hgGitHub Security Advisories · advisory
- https://github.com/advisories/GHSA-hvp5-3mrg-q5hgOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-hvp5-3mrg-q5hgOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.