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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **CWE:** CWE-248
- **Published:** 2026-11-30T22:40:00.063Z
- **Modified:** 2026-11-30T23:17:24.697Z

> **AI summary (AI-generated, claude-haiku-5-5):** An unauthenticated remote attacker can send an Upgrade request and reset the TCP connection to crash the gateway process in http-proxy-middleware, a Node.js proxy middleware.

## Who should check

- Anyone running chimurai http-proxy-middleware \>= 0.8.0, \< 2.0.12; \>= 3.0.0-beta.0, \< 3.0.11; \>= 4.0.0-beta.0, \< 4.2.2

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

## Affected and fixed versions

- chimurai http-proxy-middleware: \>= 0.8.0, \< 2.0.12; \>= 3.0.0-beta.0, \< 3.0.11; \>= 4.0.0-beta.0, \< 4.2.2 (cvelist)

## Technologies

Node.js (AI-matched), npm packages (AI-matched)

## Mitigation

- Upgrade http-proxy-middleware to 4.2.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-140102. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-140102.md
Affected: chimurai http-proxy-middleware >= 0.8.0, < 2.0.12; >= 3.0.0-beta.0, < 3.0.11; >= 4.0.0-beta.0, < 4.2.2
Fixed in: chimurai http-proxy-middleware 2.0.12, chimurai http-proxy-middleware 3.0.11, chimurai http-proxy-middleware 4.2.2

Steps:
1. Search this machine and project for chimurai http-proxy-middleware: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-140102 being exploited?

There is no confirmed exploitation: CVE-2026-140102 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-140102?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-140102?

chimurai http-proxy-middleware \>= 0.8.0, \< 2.0.12; \>= 3.0.0-beta.0, \< 3.0.11; \>= 4.0.0-beta.0, \< 4.2.2.

### Is there a fix for CVE-2026-140102?

Yes. Fixed in chimurai http-proxy-middleware 2.0.12, chimurai http-proxy-middleware 3.0.11, chimurai http-proxy-middleware 4.2.2. Upgrade http-proxy-middleware to 4.2.2 or later.

### How do I check if I'm affected by CVE-2026-140102?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg>
- patch: <https://github.com/chimurai/http-proxy-middleware/pull/1328>
- patch: <https://github.com/chimurai/http-proxy-middleware/pull/1329>
- patch: <https://github.com/chimurai/http-proxy-middleware/pull/1330>
- patch: <https://github.com/chimurai/http-proxy-middleware/commit/386bed662facba30c5602ca211a5399f09cdd715>
- patch: <https://github.com/chimurai/http-proxy-middleware/commit/6911b4daefaa138767d4e4c35302b6dea2e2b64a>
- patch: <https://github.com/chimurai/http-proxy-middleware/commit/c82e123f831bae1f46d1d06d9c035e385771b7b9>
- other: <https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.11>
- other: <https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-140102>

HTML: <https://flawdb.com/CVE-2026-140102> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-140102>
