CVE-2026-140103
http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival
Check your servers for CVE-2026-140103
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-140103 affects http-proxy-middleware, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality low, integrity low, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.51%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 45.2% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-444 Inconsistent Interpretation of HTTP Requests
- CWE-807 Reliance on Untrusted Inputs in a Security Decision
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| http-proxy-middleware |
affected >= 2.0.9, < 2.0.11 affected >= 3.0.5, < 3.0.8 affected >= 4.0.0-beta.0, < 4.2.1
|
Is my server affected?
Find the installed version of http-proxy-middleware and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i http-proxy-middleware
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-140103 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-140103RHEL, Rocky, Alma, Fedora
rpm -q http-proxy-middleware
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-140103Alpine
apk list --installed | grep -i http-proxy-middlewareWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-140103
trivy image --scanners vuln IMAGE | grep CVE-2026-140103
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-vp89-2qrg-8fwc github.com
Other references
- https://github.com/chimurai/http-proxy-middleware/pull/1309 github.com
- https://github.com/chimurai/http-proxy-middleware/pull/1310 github.com
- https://github.com/chimurai/http-proxy-middleware/pull/1311 github.com
- https://github.com/chimurai/http-proxy-middleware/commit/32b56d3f22f0c77eed6828abef84104dacf202f4 github.com
- https://github.com/chimurai/http-proxy-middleware/commit/412856f29168a815aeb2ede15266d7097b9060cc github.com
- https://github.com/chimurai/http-proxy-middleware/commit/77febf656f730ca28cd2188ba372aa4fa98f9404 github.com
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.11 github.com
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.8 github.com
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.1 github.com
Source: the record CVE-2026-140103 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse