Every CVESearch/Get API key

CVE-2026-140103

http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival

Explain with AI
ChatGPTClaudeGoogle AI
Severity
5.4Medium
Network attack, no privileges, no user interactionCVSS 3.1, CVE List
Exploitation
Proof of concept
CISA reports one, no source links it
Exploit chance
0.79% in 30 days
Percentile57th
EPSS, scored
Listed fix
4.2.1 for http-proxy-middleware (npm)
From GitHub Advisories and OSV2 more listed versions, 61 other affected packages

Overview

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.

CVSS 3.1 vector

Exploitability

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

Impact

Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N

Exploit chance over time

Up 0.3 points since Dec 1, 2026
EPSS score, scored every day from Dec 1, 2026 to Dec 4, 2026: lowest 0.51% on Dec 1, 2026, highest 0.79% on Dec 4, 2026, 0.79% on the last day.

Affected

Packages 62

Affected packages
PackageAffectedFixed
http-proxy-middleware
npm
4.0.0-beta.0 to 4.2.0
4.2.1
3.0.5 to 3.0.7
3.0.10
2.0.9 to 2.0.10
2.0.11
4.0.0-beta.0 up to 4.2.1
4.2.1
3.0.5 up to 3.0.10
3.0.10
2.0.9 up to 2.0.11
2.0.11
headlamp-fips
Docker Hardened Images:Alpine:3.23
0.44.0-r0 and later, plus listed versions
0.44.0-r10.44.0-r20.45.0-r00.45.0-r10.45.0-r2
Show 17 more versionsShow less
0.45.0-r30.45.0-r40.45.0-r50.45.0-r60.45.0-r70.45.0-r80.45.0-r90.46.0-r00.46.0-r10.46.0-r20.46.0-r30.46.0-r40.46.0-r50.46.0-r60.46.0-r70.46.0-r80.46.0-r9
None listed
headlamp-fips
Docker Hardened Images:Alpine:3.24
0.44.0-r0 and later, plus listed versions
0.44.0-r10.44.0-r20.45.0-r00.45.0-r10.45.0-r2
Show 17 more versionsShow less
0.45.0-r30.45.0-r40.45.0-r50.45.0-r60.45.0-r70.45.0-r80.45.0-r90.46.0-r00.46.0-r10.46.0-r20.46.0-r30.46.0-r40.46.0-r50.46.0-r60.46.0-r70.46.0-r80.46.0-r9
None listed
headlamp
Docker Hardened Images:Alpine:3.23
0.44.0-r0 and later, plus listed versions
0.44.0-r10.44.0-r20.45.0-r00.45.0-r10.45.0-r2
Show 17 more versionsShow less
0.45.0-r30.45.0-r40.45.0-r50.45.0-r60.45.0-r70.45.0-r80.45.0-r90.46.0-r00.46.0-r10.46.0-r20.46.0-r30.46.0-r40.46.0-r50.46.0-r60.46.0-r70.46.0-r80.46.0-r9
None listed
headlamp
Docker Hardened Images:Alpine:3.24
0.44.0-r0 and later, plus listed versions
0.44.0-r10.44.0-r20.45.0-r00.45.0-r10.45.0-r2
Show 17 more versionsShow less
0.45.0-r30.45.0-r40.45.0-r50.45.0-r60.45.0-r70.45.0-r80.45.0-r90.46.0-r00.46.0-r10.46.0-r20.46.0-r30.46.0-r40.46.0-r50.46.0-r60.46.0-r70.46.0-r80.46.0-r9
None listed
Show 57 more packagesShow less
Affected packages
PackageAffectedFixed
logto-1
Docker Hardened Images:Alpine:3.23
1.45.0-r0 and later, plus listed versions
1.45.0-r11.45.0-r21.45.0-r31.45.0-r41.46.0-r0
Show 8 more versionsShow less
1.46.0-r11.46.0-r21.46.0-r31.46.0-r41.46.0-r51.46.0-r61.46.0-r71.46.0-r8
None listed
logto-1
Docker Hardened Images:Alpine:3.24
1.45.0-r0 and later, plus listed versions
1.45.0-r11.45.0-r21.45.0-r31.45.0-r41.46.0-r0
Show 8 more versionsShow less
1.46.0-r11.46.0-r21.46.0-r31.46.0-r41.46.0-r51.46.0-r61.46.0-r71.46.0-r8
None listed
marquez-web-0
Docker Hardened Images:Alpine:3.23
0.51.1-r0 and later, plus listed versions
0.51.1-r10.51.1-r2
None listed
marquez-web-0
Docker Hardened Images:Alpine:3.24
0.51.1-r0 and later, plus listed versions
0.51.1-r10.51.1-r2
None listed
prometheus-3.14-dev
Docker Hardened Images:Alpine:3.23
3.14.0-r1 and later, plus listed versions
3.14.0-r103.14.0-r23.14.0-r33.14.0-r43.14.0-r53.14.0-r63.14.0-r9
None listed
prometheus-3.14-dev
Docker Hardened Images:Alpine:3.24
3.14.0-r1 and later, plus listed versions
3.14.0-r103.14.0-r23.14.0-r33.14.0-r43.14.0-r53.14.0-r63.14.0-r9
None listed
prometheus-3.14-fips-dev
Docker Hardened Images:Alpine:3.23
3.14.0-r1 and later, plus listed versions
3.14.0-r103.14.0-r23.14.0-r33.14.0-r43.14.0-r53.14.0-r63.14.0-r9
None listed
prometheus-3.14-fips-dev
Docker Hardened Images:Alpine:3.24
3.14.0-r1 and later, plus listed versions
3.14.0-r103.14.0-r23.14.0-r33.14.0-r43.14.0-r53.14.0-r63.14.0-r9
None listed
prometheus-3.14-fips
Docker Hardened Images:Alpine:3.23
3.14.0-r1 and later, plus listed versions
3.14.0-r103.14.0-r23.14.0-r33.14.0-r43.14.0-r53.14.0-r63.14.0-r9
None listed
prometheus-3.14-fips
Docker Hardened Images:Alpine:3.24
3.14.0-r1 and later, plus listed versions
3.14.0-r103.14.0-r23.14.0-r33.14.0-r43.14.0-r53.14.0-r63.14.0-r9
None listed
prometheus-3.14
Docker Hardened Images:Alpine:3.23
3.14.0-r1 and later, plus listed versions
3.14.0-r103.14.0-r23.14.0-r33.14.0-r43.14.0-r53.14.0-r63.14.0-r9
None listed
prometheus-3.14
Docker Hardened Images:Alpine:3.24
3.14.0-r1 and later, plus listed versions
3.14.0-r103.14.0-r23.14.0-r33.14.0-r43.14.0-r53.14.0-r63.14.0-r9
None listed
prometheus-3.15-dev
Docker Hardened Images:Alpine:3.23
3.15.0-r0 and later, plus listed versions
3.15.0-r13.15.0-r23.15.0-r33.15.0-r43.15.0-r5
Show 8 more versionsShow less
3.15.0-r63.15.1-r03.15.1-r13.15.1-r23.15.1-r33.15.1-r43.15.1-r53.15.1-r6
None listed
prometheus-3.15-dev
Docker Hardened Images:Alpine:3.24
3.15.0-r0 and later, plus listed versions
3.15.0-r13.15.0-r23.15.0-r33.15.0-r43.15.0-r5
Show 8 more versionsShow less
3.15.0-r63.15.1-r03.15.1-r13.15.1-r23.15.1-r33.15.1-r43.15.1-r53.15.1-r6
None listed
prometheus-3.15-fips-dev
Docker Hardened Images:Alpine:3.23
3.15.0-r0 and later, plus listed versions
3.15.0-r13.15.0-r23.15.0-r33.15.0-r43.15.0-r5
Show 8 more versionsShow less
3.15.0-r63.15.1-r03.15.1-r13.15.1-r23.15.1-r33.15.1-r43.15.1-r53.15.1-r6
None listed
prometheus-3.15-fips-dev
Docker Hardened Images:Alpine:3.24
3.15.0-r0 and later, plus listed versions
3.15.0-r13.15.0-r23.15.0-r33.15.0-r43.15.0-r5
Show 8 more versionsShow less
3.15.0-r63.15.1-r03.15.1-r13.15.1-r23.15.1-r33.15.1-r43.15.1-r53.15.1-r6
None listed
prometheus-3.15-fips
Docker Hardened Images:Alpine:3.23
3.15.0-r0 and later, plus listed versions
3.15.0-r13.15.0-r23.15.0-r33.15.0-r43.15.0-r5
Show 8 more versionsShow less
3.15.0-r63.15.1-r03.15.1-r13.15.1-r23.15.1-r33.15.1-r43.15.1-r53.15.1-r6
None listed
prometheus-3.15-fips
Docker Hardened Images:Alpine:3.24
3.15.0-r0 and later, plus listed versions
3.15.0-r13.15.0-r23.15.0-r33.15.0-r43.15.0-r5
Show 8 more versionsShow less
3.15.0-r63.15.1-r03.15.1-r13.15.1-r23.15.1-r33.15.1-r43.15.1-r53.15.1-r6
None listed
prometheus-3.15
Docker Hardened Images:Alpine:3.23
3.15.0-r0 and later, plus listed versions
3.15.0-r13.15.0-r23.15.0-r33.15.0-r43.15.0-r5
Show 8 more versionsShow less
3.15.0-r63.15.1-r03.15.1-r13.15.1-r23.15.1-r33.15.1-r43.15.1-r53.15.1-r6
None listed
prometheus-3.15
Docker Hardened Images:Alpine:3.24
3.15.0-r0 and later, plus listed versions
3.15.0-r13.15.0-r23.15.0-r33.15.0-r43.15.0-r5
Show 8 more versionsShow less
3.15.0-r63.15.1-r03.15.1-r13.15.1-r23.15.1-r33.15.1-r43.15.1-r53.15.1-r6
None listed
prometheus-3.16-dev
Docker Hardened Images:Alpine:3.23
3.16.0-r0 and later, plus listed versions
3.16.0-r13.16.0-r23.16.0-r33.16.0-r4
None listed
prometheus-3.16-dev
Docker Hardened Images:Alpine:3.24
3.16.0-r0 and later, plus listed versions
3.16.0-r13.16.0-r23.16.0-r33.16.0-r4
None listed
prometheus-3.16-fips-dev
Docker Hardened Images:Alpine:3.23
3.16.0-r0 and later, plus listed versions
3.16.0-r13.16.0-r23.16.0-r33.16.0-r4
None listed
prometheus-3.16-fips-dev
Docker Hardened Images:Alpine:3.24
3.16.0-r0 and later, plus listed versions
3.16.0-r13.16.0-r23.16.0-r33.16.0-r4
None listed
prometheus-3.16-fips
Docker Hardened Images:Alpine:3.23
3.16.0-r0 and later, plus listed versions
3.16.0-r13.16.0-r23.16.0-r33.16.0-r4
None listed
prometheus-3.16-fips
Docker Hardened Images:Alpine:3.24
3.16.0-r0 and later, plus listed versions
3.16.0-r13.16.0-r23.16.0-r33.16.0-r4
None listed
prometheus-3.16
Docker Hardened Images:Alpine:3.23
3.16.0-r0 and later, plus listed versions
3.16.0-r13.16.0-r23.16.0-r33.16.0-r4
None listed
prometheus-3.16
Docker Hardened Images:Alpine:3.24
3.16.0-r0 and later, plus listed versions
3.16.0-r13.16.0-r23.16.0-r33.16.0-r4
None listed
prometheus-3.5-dev
Docker Hardened Images:Alpine:3.23
3.5.5-r1 and later, plus listed versions
3.5.5-r103.5.5-r113.5.5-r123.5.5-r133.5.5-r14
Show 19 more versionsShow less
3.5.5-r153.5.5-r163.5.5-r173.5.5-r183.5.5-r193.5.5-r23.5.5-r203.5.5-r213.5.5-r223.5.5-r233.5.5-r243.5.5-r253.5.5-r263.5.5-r273.5.5-r283.5.5-r33.5.5-r43.5.5-r53.5.5-r9
None listed
prometheus-3.5-dev
Docker Hardened Images:Alpine:3.24
3.5.5-r1 and later, plus listed versions
3.5.5-r103.5.5-r113.5.5-r123.5.5-r133.5.5-r14
Show 19 more versionsShow less
3.5.5-r153.5.5-r163.5.5-r173.5.5-r183.5.5-r193.5.5-r23.5.5-r203.5.5-r213.5.5-r223.5.5-r233.5.5-r243.5.5-r253.5.5-r263.5.5-r273.5.5-r283.5.5-r33.5.5-r43.5.5-r53.5.5-r9
None listed
prometheus-3.5-fips-dev
Docker Hardened Images:Alpine:3.23
3.5.5-r1 and later, plus listed versions
3.5.5-r103.5.5-r113.5.5-r123.5.5-r133.5.5-r14
Show 19 more versionsShow less
3.5.5-r153.5.5-r163.5.5-r173.5.5-r183.5.5-r193.5.5-r23.5.5-r203.5.5-r213.5.5-r223.5.5-r233.5.5-r243.5.5-r253.5.5-r263.5.5-r273.5.5-r283.5.5-r33.5.5-r43.5.5-r53.5.5-r9
None listed
prometheus-3.5-fips-dev
Docker Hardened Images:Alpine:3.24
3.5.5-r1 and later, plus listed versions
3.5.5-r103.5.5-r113.5.5-r123.5.5-r133.5.5-r14
Show 19 more versionsShow less
3.5.5-r153.5.5-r163.5.5-r173.5.5-r183.5.5-r193.5.5-r23.5.5-r203.5.5-r213.5.5-r223.5.5-r233.5.5-r243.5.5-r253.5.5-r263.5.5-r273.5.5-r283.5.5-r33.5.5-r43.5.5-r53.5.5-r9
None listed
prometheus-3.5-fips
Docker Hardened Images:Alpine:3.23
3.5.5-r1 and later, plus listed versions
3.5.5-r103.5.5-r113.5.5-r123.5.5-r133.5.5-r14
Show 19 more versionsShow less
3.5.5-r153.5.5-r163.5.5-r173.5.5-r183.5.5-r193.5.5-r23.5.5-r203.5.5-r213.5.5-r223.5.5-r233.5.5-r243.5.5-r253.5.5-r263.5.5-r273.5.5-r283.5.5-r33.5.5-r43.5.5-r53.5.5-r9
None listed
prometheus-3.5-fips
Docker Hardened Images:Alpine:3.24
3.5.5-r1 and later, plus listed versions
3.5.5-r103.5.5-r113.5.5-r123.5.5-r133.5.5-r14
Show 19 more versionsShow less
3.5.5-r153.5.5-r163.5.5-r173.5.5-r183.5.5-r193.5.5-r23.5.5-r203.5.5-r213.5.5-r223.5.5-r233.5.5-r243.5.5-r253.5.5-r263.5.5-r273.5.5-r283.5.5-r33.5.5-r43.5.5-r53.5.5-r9
None listed
prometheus-3.5
Docker Hardened Images:Alpine:3.23
3.5.5-r1 and later, plus listed versions
3.5.5-r103.5.5-r113.5.5-r123.5.5-r133.5.5-r14
Show 19 more versionsShow less
3.5.5-r153.5.5-r163.5.5-r173.5.5-r183.5.5-r193.5.5-r23.5.5-r203.5.5-r213.5.5-r223.5.5-r233.5.5-r243.5.5-r253.5.5-r263.5.5-r273.5.5-r283.5.5-r33.5.5-r43.5.5-r53.5.5-r9
None listed
prometheus-3.5
Docker Hardened Images:Alpine:3.24
3.5.5-r1 and later, plus listed versions
3.5.5-r103.5.5-r113.5.5-r123.5.5-r133.5.5-r14
Show 19 more versionsShow less
3.5.5-r153.5.5-r163.5.5-r173.5.5-r183.5.5-r193.5.5-r23.5.5-r203.5.5-r213.5.5-r223.5.5-r233.5.5-r243.5.5-r253.5.5-r263.5.5-r273.5.5-r283.5.5-r33.5.5-r43.5.5-r53.5.5-r9
None listed
headlamp-fips
Docker Hardened Images:Debian:13
0.44.0-0 and later, plus listed versions
0.44.0-10.44.0-20.45.0-00.45.0-10.45.0-2
Show 17 more versionsShow less
0.45.0-30.45.0-40.45.0-50.45.0-60.45.0-70.45.0-80.45.0-90.46.0-00.46.0-10.46.0-20.46.0-30.46.0-40.46.0-50.46.0-60.46.0-70.46.0-80.46.0-9
None listed
headlamp
Docker Hardened Images:Debian:13
0.44.0-0 and later, plus listed versions
0.44.0-10.44.0-20.45.0-00.45.0-10.45.0-2
Show 17 more versionsShow less
0.45.0-30.45.0-40.45.0-50.45.0-60.45.0-70.45.0-80.45.0-90.46.0-00.46.0-10.46.0-20.46.0-30.46.0-40.46.0-50.46.0-60.46.0-70.46.0-80.46.0-9
None listed
kubeflow-pipelines-frontend
Docker Hardened Images:Debian:13
2.17.0-0 up to 2.18.1-0, plus listed versions
2.17.0-12.17.0-22.17.0-32.17.0-42.17.1-0
Show 11 more versionsShow less
2.17.1-12.17.2-02.17.2-12.17.2-22.17.2-32.17.2-42.17.2-52.17.3-02.18.0-02.18.0-12.18.0-2
2.18.1-0
logto-1
Docker Hardened Images:Debian:13
1.45.0-0 and later, plus listed versions
1.45.0-11.45.0-21.45.0-31.45.0-41.46.0-0
Show 8 more versionsShow less
1.46.0-11.46.0-21.46.0-31.46.0-41.46.0-51.46.0-61.46.0-71.46.0-8
None listed
marquez-web-0
Docker Hardened Images:Debian:13
0.51.1-0 and later, plus listed versions
0.51.1-10.51.1-2
None listed
prometheus-3.14-dev
Docker Hardened Images:Debian:13
3.14.0-1 and later, plus listed versions
3.14.0-103.14.0-23.14.0-33.14.0-43.14.0-53.14.0-63.14.0-9
None listed
prometheus-3.14-fips-dev
Docker Hardened Images:Debian:13
3.14.0-1 and later, plus listed versions
3.14.0-103.14.0-23.14.0-33.14.0-43.14.0-53.14.0-63.14.0-9
None listed
prometheus-3.14-fips
Docker Hardened Images:Debian:13
3.14.0-1 and later, plus listed versions
3.14.0-103.14.0-23.14.0-33.14.0-43.14.0-53.14.0-63.14.0-9
None listed
prometheus-3.14
Docker Hardened Images:Debian:13
3.14.0-1 and later, plus listed versions
3.14.0-103.14.0-23.14.0-33.14.0-43.14.0-53.14.0-63.14.0-9
None listed
prometheus-3.15-dev
Docker Hardened Images:Debian:13
3.15.0-0 and later, plus listed versions
3.15.0-13.15.0-23.15.0-33.15.0-43.15.0-5
Show 8 more versionsShow less
3.15.0-63.15.1-03.15.1-13.15.1-23.15.1-33.15.1-43.15.1-53.15.1-6
None listed
prometheus-3.15-fips-dev
Docker Hardened Images:Debian:13
3.15.0-0 and later, plus listed versions
3.15.0-13.15.0-23.15.0-33.15.0-43.15.0-5
Show 8 more versionsShow less
3.15.0-63.15.1-03.15.1-13.15.1-23.15.1-33.15.1-43.15.1-53.15.1-6
None listed
prometheus-3.15-fips
Docker Hardened Images:Debian:13
3.15.0-0 and later, plus listed versions
3.15.0-13.15.0-23.15.0-33.15.0-43.15.0-5
Show 8 more versionsShow less
3.15.0-63.15.1-03.15.1-13.15.1-23.15.1-33.15.1-43.15.1-53.15.1-6
None listed
prometheus-3.15
Docker Hardened Images:Debian:13
3.15.0-0 and later, plus listed versions
3.15.0-13.15.0-23.15.0-33.15.0-43.15.0-5
Show 8 more versionsShow less
3.15.0-63.15.1-03.15.1-13.15.1-23.15.1-33.15.1-43.15.1-53.15.1-6
None listed
prometheus-3.16-dev
Docker Hardened Images:Debian:13
3.16.0-0 and later, plus listed versions
3.16.0-13.16.0-23.16.0-33.16.0-4
None listed
prometheus-3.16-fips-dev
Docker Hardened Images:Debian:13
3.16.0-0 and later, plus listed versions
3.16.0-13.16.0-23.16.0-33.16.0-4
None listed
prometheus-3.16-fips
Docker Hardened Images:Debian:13
3.16.0-0 and later, plus listed versions
3.16.0-13.16.0-23.16.0-33.16.0-4
None listed
prometheus-3.16
Docker Hardened Images:Debian:13
3.16.0-0 and later, plus listed versions
3.16.0-13.16.0-23.16.0-33.16.0-4
None listed
prometheus-3.5-dev
Docker Hardened Images:Debian:13
3.5.5-1 and later, plus listed versions
3.5.5-103.5.5-113.5.5-123.5.5-133.5.5-14
Show 19 more versionsShow less
3.5.5-153.5.5-163.5.5-173.5.5-183.5.5-193.5.5-23.5.5-203.5.5-213.5.5-223.5.5-233.5.5-243.5.5-253.5.5-263.5.5-273.5.5-283.5.5-33.5.5-43.5.5-53.5.5-9
None listed
prometheus-3.5-fips-dev
Docker Hardened Images:Debian:13
3.5.5-1 and later, plus listed versions
3.5.5-103.5.5-113.5.5-123.5.5-133.5.5-14
Show 19 more versionsShow less
3.5.5-153.5.5-163.5.5-173.5.5-183.5.5-193.5.5-23.5.5-203.5.5-213.5.5-223.5.5-233.5.5-243.5.5-253.5.5-263.5.5-273.5.5-283.5.5-33.5.5-43.5.5-53.5.5-9
None listed
prometheus-3.5-fips
Docker Hardened Images:Debian:13
3.5.5-1 and later, plus listed versions
3.5.5-103.5.5-113.5.5-123.5.5-133.5.5-14
Show 19 more versionsShow less
3.5.5-153.5.5-163.5.5-173.5.5-183.5.5-193.5.5-23.5.5-203.5.5-213.5.5-223.5.5-233.5.5-243.5.5-253.5.5-263.5.5-273.5.5-283.5.5-33.5.5-43.5.5-53.5.5-9
None listed
prometheus-3.5
Docker Hardened Images:Debian:13
3.5.5-1 and later, plus listed versions
3.5.5-103.5.5-113.5.5-123.5.5-133.5.5-14
Show 19 more versionsShow less
3.5.5-153.5.5-163.5.5-173.5.5-183.5.5-193.5.5-23.5.5-203.5.5-213.5.5-223.5.5-233.5.5-243.5.5-253.5.5-263.5.5-273.5.5-283.5.5-33.5.5-43.5.5-53.5.5-9
None listed

Only in multi-CVE advisories 1

Each of these advisories covers several CVEs at once, so it doesn’t establish that this one affects the package.

Packages named only by advisories that cover several CVEs
PackageAffectedFixed
http-proxy-middleware
TuxCare:npm
4.0.0-tuxcare.0 up to 4.0.0-tuxcare.2, plus listed versions
From an advisory covering 2 CVEs
4.0.04.0.0-tuxcare.1
4.0.0-tuxcare.2
2.0.10-tuxcare.0 up to 2.0.10-tuxcare.1, plus listed versions
From an advisory covering 2 CVEs
2.0.10
2.0.10-tuxcare.1
3.0.7-tuxcare.0 up to 3.0.7-tuxcare.1, plus listed versions
From an advisory covering 2 CVEs
3.0.7
3.0.7-tuxcare.1

Products 1

Sources

CVE List Score usedCVSS 3.15.4

http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival

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.

Record
CVE-2026-140103
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-444, CWE-807
Updated
2026-12-03
EUVDEUVD-2026-139787CVSS 3.15.4

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.

Record
EUVD-2026-139787
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Updated
2026-12-03
GitHub AdvisoriesGHSA-vp89-2qrg-8fwcCVSS 3.15.4

http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival

Summary

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. On the default 4.2.0 upstream pool, a following request can also receive the smuggled request's response. The PoC below uses no attacker credential: a public /api/thing request produces a backend /admin/secret request carrying the attacker-selected internal identity header, and an attacker-controlled follow-up receives SECRET_ADMIN_ONLY.

Details

The vulnerable guard is in src/handlers/fix-request-body.ts:30-39:

// skip fixRequestBody() when req.readableLength not 0 (bodyParser failure)
if (req.readableLength !== 0) {
  return;
}

const requestBody = req.body;

if (!requestBody) {
  return;
}

readableLength reports bytes currently buffered in the readable queue. It is zero both after a parser drains the stream and before the client sends the body. The client controls which state applies by controlling body arrival.

With body-parser 1.20.3, json() assigns req.body = req.body || {} before its media-type test. A request declared as application/x-www-form-urlencoded therefore reaches the proxy with a truthy empty object even when only express.json() is mounted. Body-parser 2.2.0 initializes a previously absent body to undefined, so the second guard returns; the relevant prerequisite is the body-parser major, not the Express major.

The handler then assumes ownership of the upstream framing at src/handlers/fix-request-body.ts:47-81:

const writeBody = (bodyData: string) => {
  let proxyData: string | Buffer = bodyData;
  // compression branches omitted
  proxyReq.setHeader('Content-Length', Buffer.byteLength(proxyData));
  proxyReq.write(proxyData);
};

if (contentType.includes('application/json') || contentType.includes('+json')) {
  writeBody(JSON.stringify(requestBody));
} else if (contentType.includes('application/x-www-form-urlencoded')) {
  writeBody(querystring.stringify(requestBody));
} else if (contentType.includes('multipart/form-data')) {
  writeBody(stringifyFormData(contentType, requestBody));
} else if (contentType.includes('text/plain')) {
  writeBody(requestBody);
}

In the PoC, requestBody is {}, so the URL-encoded form is an empty string and the outgoing length becomes zero. In the published httpxy 0.5.5 artifact, dist/index.mjs:288-290 emits proxyReq from one socket listener and dist/index.mjs:325-327 registers the original request pipe in a later socket listener. The event handler writes the synthetic zero-length body first; the pipe writes the real body afterward. The backend therefore receives this shape from one client request:

POST /api/thing HTTP/1.1
content-type:…
Record
GHSA-vp89-2qrg-8fwc
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-444, CWE-807
Updated
2026-12-01
NVDCVSS 3.15.4

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.

Record
CVE-2026-140103
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-444, CWE-807
Updated
2026-12-03
OSVCVSS 3.15.4

http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival

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.

Record
CVE-2026-140103
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-444, CWE-807
Updated
2026-12-01
OSVDHI-gdek-xgoo-avgc-nxrnCVSS 3.15.4

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…

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.

Record
DHI-gdek-xgoo-avgc-nxrn
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Updated
2026-12-04
Show 4 more recordsShow less
OSVGHSA-vp89-2qrg-8fwcCVSS 3.15.4

http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival

Summary

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. On the default 4.2.0 upstream pool, a following request can also receive the smuggled request's response. The PoC below uses no attacker credential: a public /api/thing request produces a backend /admin/secret request carrying the attacker-selected internal identity header, and an attacker-controlled follow-up receives SECRET_ADMIN_ONLY.

Details

The vulnerable guard is in src/handlers/fix-request-body.ts:30-39:

// skip fixRequestBody() when req.readableLength not 0 (bodyParser failure)
if (req.readableLength !== 0) {
  return;
}

const requestBody = req.body;

if (!requestBody) {
  return;
}

readableLength reports bytes currently buffered in the readable queue. It is zero both after a parser drains the stream and before the client sends the body. The client controls which state applies by controlling body arrival.

With body-parser 1.20.3, json() assigns req.body = req.body || {} before its media-type test. A request declared as application/x-www-form-urlencoded therefore reaches the proxy with a truthy empty object even when only express.json() is mounted. Body-parser 2.2.0 initializes a previously absent body to undefined, so the second guard returns; the relevant prerequisite is the body-parser major, not the Express major.

The handler then assumes ownership of the upstream framing at src/handlers/fix-request-body.ts:47-81:

const writeBody = (bodyData: string) => {
  let proxyData: string | Buffer = bodyData;
  // compression branches omitted
  proxyReq.setHeader('Content-Length', Buffer.byteLength(proxyData));
  proxyReq.write(proxyData);
};

if (contentType.includes('application/json') || contentType.includes('+json')) {
  writeBody(JSON.stringify(requestBody));
} else if (contentType.includes('application/x-www-form-urlencoded')) {
  writeBody(querystring.stringify(requestBody));
} else if (contentType.includes('multipart/form-data')) {
  writeBody(stringifyFormData(contentType, requestBody));
} else if (contentType.includes('text/plain')) {
  writeBody(requestBody);
}

In the PoC, requestBody is {}, so the URL-encoded form is an empty string and the outgoing length becomes zero. In the published httpxy 0.5.5 artifact, dist/index.mjs:288-290 emits proxyReq from one socket listener and dist/index.mjs:325-327 registers the original request pipe in a later socket listener. The event handler writes the synthetic zero-length body first; the pipe writes the real body afterward. The backend therefore receives this shape from one client request:

POST /api/thing HTTP/1.1
content-type:…
Record
GHSA-vp89-2qrg-8fwc
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-444, CWE-807
Updated
2026-12-01
OSVCLSA-2026-1796199481No score

TuxCare security update for http-proxy-middleware (2 CVEs)

TuxCare rebuilt http-proxy-middleware to address 2 CVEs. Fixed in 4.0.0-tuxcare.2.

Record
CLSA-2026-1796199481
Updated
2026-12-04
OSVCLSA-2026-1796201078No score

TuxCare security update for http-proxy-middleware (2 CVEs)

TuxCare rebuilt http-proxy-middleware to address 2 CVEs. Fixed in 2.0.10-tuxcare.1.

Record
CLSA-2026-1796201078
Updated
2026-12-02
OSVCLSA-2026-1796203909No score

TuxCare security update for http-proxy-middleware (2 CVEs)

TuxCare rebuilt http-proxy-middleware to address 2 CVEs. Fixed in 3.0.7-tuxcare.1.

Record
CLSA-2026-1796203909
Updated
2026-12-04

The JSON record also has the rest of 2 source descriptions.

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Affected packages, other IDsOSV
Affected packagesOSV
Published dateEUVD, NVD
Key facts, referencesCVE List
Affected packagesOSV
Affected packagesOSV
Affected packages, other IDsOSV
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packages, other IDs, referencesOSV
Published dateEUVD
Affected packages, referencesOSV
Affected packages, key facts, referencesGitHub Advisories
Other IDs, referencesOSV
Other IDs, published dateEUVD, NVD
First indexedCVE List

Upstream dates may differ.

References

Show 7 more referencesShow less
MoveEnter Open