Public vulnerability disclosure

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)

publishedCWE-248

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.

Technical severity7.5 highCVSS 3.1 · CNA: GitHub_M
Published2026-11-30Source updated 2026-12-01
Collected2026-12-015 attributed sources

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-q5hg

Fix

http-proxy-middleware (npm): OSV reports a fixed version 2.0.12. Check the advisory for supported release branches.

Source: OSV GHSA-hvp5-3mrg-q5hg

Fix

http-proxy-middleware (npm): OSV reports a fixed version 3.0.11. Check the advisory for supported release branches.

Source: OSV GHSA-hvp5-3mrg-q5hg

Fix

http-proxy-middleware (npm): OSV reports a fixed version 4.2.2. Check the advisory for supported release branches.

Source: OSV GHSA-hvp5-3mrg-q5hg

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
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-middleware

http-proxy-middleware
npm
>= 0.8.0, <= 4.2.1 (affected, GitHub advisory range) GitHub GHSA-hvp5-3mrg-q5hg
http-proxy-middleware

http-proxy-middleware
npm
≥ 0.8.0; < 2.0.12 (affected, semver); OSV events: introduced 0.8.0; fixed 2.0.12
Source events (semver)
[
  {
    "introduced": "0.8.0"
  },
  {
    "fixed": "2.0.12"
  }
]

Other versions: unaffected
OSV GHSA-hvp5-3mrg-q5hg
http-proxy-middleware

http-proxy-middleware
npm
≥ 3.0.0-beta.0; < 3.0.11 (affected, semver); OSV events: introduced 3.0.0-beta.0; fixed 3.0.11
Source events (semver)
[
  {
    "introduced": "3.0.0-beta.0"
  },
  {
    "fixed": "3.0.11"
  }
]

Other versions: unaffected
OSV GHSA-hvp5-3mrg-q5hg
http-proxy-middleware

http-proxy-middleware
npm
≥ 4.0.0-beta.0; < 4.2.2 (affected, semver); OSV events: introduced 4.0.0-beta.0; fixed 4.2.2
Source events (semver)
[
  {
    "introduced": "4.0.0-beta.0"
  },
  {
    "fixed": "4.2.2"
  }
]

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

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 7.5
high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HCNA: 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:HNVD: [email protected]

Exploit evidence

References

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/cves
https://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.

Agent access JSON · OpenAPI · CVE API guide