# CVE-2026-140103: http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **CWE:** CWE-444, CWE-807
- **Published:** 2026-11-30T22:43:54.472Z
- **Modified:** 2026-11-30T23:17:24.857Z

> **AI summary (AI-generated, claude-haiku-5-5):** A remote unauthenticated attacker can smuggle a second HTTP/1.1 request through http-proxy-middleware, bypassing gateway route filters and admin denials to reach the backend.

## Who should check

- Anyone running chimurai http-proxy-middleware \>= 2.0.9, \< 2.0.11; \>= 3.0.5, \< 3.0.8; \>= 4.0.0-beta.0, \< 4.2.1

## 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.

## Affected and fixed versions

- chimurai http-proxy-middleware: \>= 2.0.9, \< 2.0.11; \>= 3.0.5, \< 3.0.8; \>= 4.0.0-beta.0, \< 4.2.1 (cvelist)

## Technologies

Express (AI-matched), Node.js (AI-matched), npm packages (AI-matched)

## Mitigation

- Upgrade http-proxy-middleware to 4.2.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-140103. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-140103.md
Affected: chimurai http-proxy-middleware >= 2.0.9, < 2.0.11; >= 3.0.5, < 3.0.8; >= 4.0.0-beta.0, < 4.2.1
Fixed in: chimurai http-proxy-middleware 2.0.11, chimurai http-proxy-middleware 3.0.8, chimurai http-proxy-middleware 4.2.1

Steps:
1. Search this machine and project for chimurai http-proxy-middleware: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-140103 being exploited?

There is no confirmed exploitation: CVE-2026-140103 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-140103?

Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-140103?

chimurai http-proxy-middleware \>= 2.0.9, \< 2.0.11; \>= 3.0.5, \< 3.0.8; \>= 4.0.0-beta.0, \< 4.2.1.

### Is there a fix for CVE-2026-140103?

Yes. Fixed in chimurai http-proxy-middleware 2.0.11, chimurai http-proxy-middleware 3.0.8, chimurai http-proxy-middleware 4.2.1. Upgrade http-proxy-middleware to 4.2.1 or later.

### How do I check if I'm affected by CVE-2026-140103?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-vp89-2qrg-8fwc>
- patch: <https://github.com/chimurai/http-proxy-middleware/pull/1309>
- patch: <https://github.com/chimurai/http-proxy-middleware/pull/1310>
- patch: <https://github.com/chimurai/http-proxy-middleware/pull/1311>
- patch: <https://github.com/chimurai/http-proxy-middleware/commit/32b56d3f22f0c77eed6828abef84104dacf202f4>
- patch: <https://github.com/chimurai/http-proxy-middleware/commit/412856f29168a815aeb2ede15266d7097b9060cc>
- patch: <https://github.com/chimurai/http-proxy-middleware/commit/77febf656f730ca28cd2188ba372aa4fa98f9404>
- other: <https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.11>
- other: <https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.8>
- other: <https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-140103>

HTML: <https://flawdb.com/CVE-2026-140103> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-140103>
