http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival
CVE-2026-140103GHSA-vp89-2qrg-8fwcPublished 30 Nov 2026, 22:43 UTC
Real-world risk
1.1/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.4
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
http-proxy-middleware is node.js http-proxy middleware. From 2.0.9 until 2.0.11, 3.0.8, and 4.2.1, fixRequestBody treats req.readableLength === 0 as proof that a body parser consumed the request body, although zero buffered bytes can also mean that the body has not arrived. The required conditions are that a body-parser 1.x parser runs before the proxy, declines a declared media type that fixRequestBody recognizes for reconstruction after assigning a truthy req.body, and leaves the request stream unread; fixRequestBody is registered as on.proxyReq; the body arrives after the headers; the upstream connection remains persistent; and no front end completely buffers and reframes the request. The middleware then writes a synthesized body before the original bytes are piped upstream, allowing a remote unauthenticated client to make the backend execute an arbitrary HTTP/1.1 request that bypasses the gateway's route filter, explicit /admin denial, and trusted-header normalization. With a pooled upstream connection, an attacker-controlled following request can also receive the smuggled response. Body-parser 2.x, a matching parser that consumes the request, no parser, an unsupported media type that fixRequestBody does not serialize, and a nonpersistent upstream connection are not affected by this mechanism. This issue is fixed in repository releases 2.0.11, 3.0.8, and 4.2.1.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| http-proxy-middlewareWidespread | >= 4.0.0-beta.0, <= 4.2.0; >= 3.0.5, <= 3.0.7; >= 2.0.9, <= 2.0.10 | 4.2.1, 3.0.10, 2.0.11 |
| http-proxy-middlewareNiche | >= 2.0.9, < 2.0.11; >= 3.0.5, < 3.0.8; >= 4.0.0-beta.0, < 4.2.1 | 2.0.11, 3.0.8, 4.2.1 |
What to do
Update to a fixed version: 4.2.1, 3.0.10, 2.0.11, 3.0.8.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.5% chance of exploitation in 30 days (percentile 45), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.45 × threat 0.851.147
- Rounded to one decimal between 0.1 and 101.1
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 2 Dec 2026 Risk 1.1 (cvss fallback)
Weakness
CWE-444, CWE-807
References
- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-vp89-2qrg-8fwcvendor-advisory
- https://github.com/chimurai/http-proxy-middleware/pull/1309misc
- https://github.com/chimurai/http-proxy-middleware/pull/1310misc
- https://github.com/chimurai/http-proxy-middleware/pull/1311misc
- https://github.com/chimurai/http-proxy-middleware/commit/32b56d3f22f0c77eed6828abef84104dacf202f4misc
- https://github.com/chimurai/http-proxy-middleware/commit/412856f29168a815aeb2ede15266d7097b9060ccmisc
- https://github.com/chimurai/http-proxy-middleware/commit/77febf656f730ca28cd2188ba372aa4fa98f9404misc
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.11misc
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.8misc
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.1misc
- https://nvd.nist.gov/vuln/detail/CVE-2026-140103
- https://github.com/advisories/GHSA-vp89-2qrg-8fwc
- CVE-2026-140103 on CVE.org