# 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)

Status: published. Published: 2026-11-30. Updated: 2026-12-01.

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.

## Remediation

- 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) — https://github.com/chimurai/http-proxy-middleware/security/advisories/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) — https://github.com/advisories/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) — https://github.com/advisories/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) — https://github.com/advisories/GHSA-hvp5-3mrg-q5hg

## Affected products and versions

- chimurai / http-proxy-middleware: >= 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). Source: CNA: GitHub_M
-  / http-proxy-middleware (http-proxy-middleware): >= 0.8.0, <= 4.2.1 (affected, GitHub advisory range). Source: GitHub GHSA-hvp5-3mrg-q5hg
-  / http-proxy-middleware (http-proxy-middleware): ≥ 0.8.0; < 2.0.12 (affected, semver); OSV events: introduced 0.8.0; fixed 2.0.12. Source: OSV GHSA-hvp5-3mrg-q5hg
-  / http-proxy-middleware (http-proxy-middleware): ≥ 3.0.0-beta.0; < 3.0.11 (affected, semver); OSV events: introduced 3.0.0-beta.0; fixed 3.0.11. Source: OSV GHSA-hvp5-3mrg-q5hg
-  / http-proxy-middleware (http-proxy-middleware): ≥ 4.0.0-beta.0; < 4.2.2 (affected, semver); OSV events: introduced 4.0.0-beta.0; fixed 4.2.2. Source: OSV GHSA-hvp5-3mrg-q5hg

## Severity and prioritization

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H; source: CNA: GitHub_M

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 1.02% as of 2026-12-01; percentile 64.30%

- SSVC: exploitation poc; automatable yes; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-248

## Exploit evidence

- exploit: https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg (ADP: CISA-ADP)

## References

- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/chimurai/http-proxy-middleware/pull/1328 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/chimurai/http-proxy-middleware/pull/1329 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/chimurai/http-proxy-middleware/pull/1330 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/chimurai/http-proxy-middleware/commit/386bed662facba30c5602ca211a5399f09cdd715 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/chimurai/http-proxy-middleware/commit/6911b4daefaa138767d4e4c35302b6dea2e2b64a (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/chimurai/http-proxy-middleware/commit/c82e123f831bae1f46d1d06d9c035e385771b7b9 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.11 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.2 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg (ADP: CISA-ADP; exploit)

- https://github.com/chimurai/http-proxy-middleware/commit/386bed662facba30c5602ca211a5399f09cdd715 (security-advisories@github.com)

- https://github.com/chimurai/http-proxy-middleware/commit/6911b4daefaa138767d4e4c35302b6dea2e2b64a (security-advisories@github.com)

- https://github.com/chimurai/http-proxy-middleware/commit/c82e123f831bae1f46d1d06d9c035e385771b7b9 (security-advisories@github.com)

- https://github.com/chimurai/http-proxy-middleware/pull/1328 (security-advisories@github.com)

- https://github.com/chimurai/http-proxy-middleware/pull/1329 (security-advisories@github.com)

- https://github.com/chimurai/http-proxy-middleware/pull/1330 (security-advisories@github.com)

- https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.11 (security-advisories@github.com)

- https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.2 (security-advisories@github.com)

- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg (security-advisories@github.com)

- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg (GitHub Security Advisories; advisory)

- https://github.com/advisories/GHSA-hvp5-3mrg-q5hg (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-hvp5-3mrg-q5hg (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-140102; retrieved 2026-12-01; source updated 2026-12-01

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-140102; retrieved 2026-12-01; source updated 2026-11-30

- GitHub Security Advisories: https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg; retrieved 2026-12-01; source updated 2026-11-30

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-hvp5-3mrg-q5hg; retrieved 2026-12-01; source updated 2026-12-01

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-140102; retrieved 2026-12-01; source updated Not reported

Revision: a4d7cffeda284ae4dc34e3d9a20afa52fb998165694530afba532c6ec49067ec

Canonical: https://y2.dev/cve/CVE-2026-140102

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.