npm
CVE-2026-140103
http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival
- Severity
- Medium 5.4
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 2.0.11, 3.0.10, 4.2.1
- Exploit chance
- 0.5% in the next 30 daysHigher than 45% of CVEs. EPSS by FIRST, 1 Dec 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N- Also known as
- GHSA-vp89-2qrg-8fwc
- Sources
- OSV.dev and GitHub
Description
fixRequestBody treats req.readableLength === 0 as proof that a body parser consumed the request body. The same value is observed before any body byte has arrived. An unauthenticated client can therefore send the request headers first, wait one event-loop turn, and then send a body containing a complete second HTTP request.
When a body-parser 1.x parser declined the declared media type, it has already assigned a truthy req.body but has not consumed the stream. fixRequestBody serializes that empty body, changes the upstream Content-Length, and writes it. httpxy subsequently pipes the still-live request stream into the same upstream request. The backend consumes the synthesized body at the declared length and parses the attacker's withheld bytes as a second request on the persistent connection.
That second request bypasses the gateway's route filter, explicit /admin denial, and trusted-header normalization.
Affected software
| Software | Affected versions |
|---|---|
http-proxy-middlewarenpm · osv:npm:http-proxy-middleware |
|
About http-proxy-middleware
- Weekly downloads (npm)
- 28,401,758npm, 1 Dec 2026
Vulnerabilities in http-proxy-middleware
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-140102http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST (ws: true)High 7.5 1 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-140103
- GitHub Advisory Database https://github.com/advisories/GHSA-vp89-2qrg-8fwc