Skip to main content
Menu
CVEs

http-proxy-middleware unauthenticated crash via WebSocket upgrade handling

Only affects http-proxy-middleware with ws: true enabled, in versions 0.8.0 through 4.2.1. No vendor severity is given. Fixed in 2.0.12, 3.0.11 and 4.2.2.

CVE-2026-140102Published November 30, 2026, updated

7.5HighCNA
Exploited
No known exploitation
Fix
Fixed in 2.0.12, 3.0.11, 4.2.2
Who is exposed
Not reported

Summary

The http-proxy-middleware Node.js package can be crashed by a remote attacker who doesn't need to log in. They send an Upgrade request to a path outside pathFilter and then reset the TCP connection, which terminates the gateway process even when error callbacks are configured.

Written by a model

Original 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.

Who should check

Teams running http-proxy-middleware with ws: true enabled on versions 0.8.0 through 4.2.1, including gateways that proxy WebSocket upgrades behind a pathFilter.

“>= 0.8.0, <= 4.2.1”

github.com

What to do

Upgrade to a fixed version: 2.0.12, 3.0.11, 4.2.2.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-140102 (http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST…), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-140102 (entry last updated 2026-11-30):
Affected:
- chimurai http-proxy-middleware: from 0.8.0, fixed in 2.0.12; from 3.0.0-beta.0, fixed in 3.0.11; from 4.0.0-beta.0, fixed in 4.2.2
Fixed versions: 2.0.12, 3.0.11, 4.2.2.
Conditions (all must be true for the bug to be hit):
- ws: true is enabled on the proxy (source: https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg)
- The Upgrade request targets a path that does not match pathFilter (source: https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg)
- Affected versions are 0.8.0 through 4.2.1 (source: https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-140102 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-140102 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- 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
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-140102
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-140102"}.

Affected versions

cve.now Index

25Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure17/25No login or user action needed, reachable over the network without a login · Unknown: Advisories don't say whether default setups are affected
  • Reach?/20Unknown. No tracked technology or package matched
  • Severity7.5/10CVSS 7.5
  • No patch0/5No signal

What would change the score

  • Would score about 70 if added to CISA KEV
  • Would score about 65 if CISA's SSVC rates exploitation active
  • Would score about 30 if advisories confirm default setups are exposed

Timeline

  1. CVE published
  2. First seen by cve.now

Evidence 11

Questions about CVE-2026-140102

Is CVE-2026-140102 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

A crafted Upgrade (WebSocket) request to a path that pathFilter does not match, followed by a TCP reset, can crash the whole Node.js gateway process without authentication.

Source: github.com

Which versions are affected by CVE-2026-140102?

http-proxy-middleware: from 0.8.0 before 2.0.12; from 3.0.0-beta.0 before 3.0.11; from 4.0.0-beta.0 before 4.2.2.

Source: cve.now feed data

Am I affected, and how do I check?

Versions 0.8.0 through 4.2.1 with ws: true set on the proxy. Check the installed http-proxy-middleware version and whether the ws option is set to true in the proxy configuration.

Source: github.com

How do I fix CVE-2026-140102?

Upgrade to the fixed version for the installed release line: 2.0.12, 3.0.11, or 4.2.2.

Source: github.com

No corrections so far. Something wrong on this page? Report an error.