Skip to content

http-proxy-middleware

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

CVE-2026-140103GHSA-vp89-2qrg-8fwcPublished 30 Nov 2026, 22:43 UTC

Real-world risk

1.1/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

5.4

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
http-proxy-middlewareWidespread>= 4.0.0-beta.0, <= 4.2.0; >= 3.0.5, <= 3.0.7; >= 2.0.9, <= 2.0.104.2.1, 3.0.10, 2.0.11
http-proxy-middlewareNiche>= 2.0.9, < 2.0.11; >= 3.0.5, < 3.0.8; >= 4.0.0-beta.0, < 4.2.12.0.11, 3.0.8, 4.2.1

What to do

Update to a fixed version: 4.2.1, 3.0.10, 2.0.11, 3.0.8.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.5% chance of exploitation in 30 days (percentile 45), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.450
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.45 × threat 0.851.147
  4. Rounded to one decimal between 0.1 and 101.1

How the score works

Exploitation and evidence timeline

  1. 30 Nov 2026 Published
  2. 2 Dec 2026 Risk 1.1 (cvss fallback)

Weakness

CWE-444, CWE-807

References

Get alerts for http-proxy-middleware

Free email or text alerts when a vulnerability in http-proxy-middleware reaches risk 8 or higher. Nothing else.

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