All vulnerabilities

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
Weakness
HTTP request smuggling (CWE-444)CWE-807
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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
http-proxy-middlewarenpm · osv:npm:http-proxy-middleware
  • From 2.0.9 before 2.0.11
  • From 3.0.5 before 3.0.10
  • From 4.0.0-beta.0 before 4.2.1

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
Search the list for http-proxy-middleware

References