Skip to content
FlawDB
Sign in

CVE-2026-140103

MEDIUM 5.4

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

AI summary AI generated

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.

Mitigation

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

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

Vulnerability facts

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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 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
CWE
CWE-444, CWE-807
Published
Modified

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

Package / productAffectedFixedSource
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

Versions mentioned in the description AI generated

Extracted by AI; each line quotes the description word for word. Source data above takes precedence.

  • Affected: http-proxy-middleware From 2.0.9 until 2.0.11 From 2.0.9 until 2.0.11
  • Affected: http-proxy-middleware 3.0.8 3.0.8
  • Affected: http-proxy-middleware 4.2.1 4.2.1
  • Fixed: http-proxy-middleware 2.0.11 repository releases 2.0.11, 3.0.8, and 4.2.1
  • Fixed: http-proxy-middleware 3.0.8 repository releases 2.0.11, 3.0.8, and 4.2.1
  • Fixed: http-proxy-middleware 4.2.1 repository releases 2.0.11, 3.0.8, and 4.2.1

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

Technologies

References

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
HIGH 7.5CVE-2026-140102

http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST (ws: true)

Node.js+1
Sponsors