CVE-2026-140103 (GCVE-0-2026-140103)

Vulnerability from cvelistv5 – Published: 2026-11-30 22:43 – Updated: 2026-11-30 22:43
VLAI
Title
http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival
Summary
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.
CWE
  • CWE-444 - Inconsistent Interpretation of HTTP Requests
  • CWE-807 - Reliance on Untrusted Inputs in a Security Decision
Assigner
GitHub_M CNA under the mitre root
CNA scorecard C 72/100 over 7812 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
chimurai 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
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "product": "http-proxy-middleware",
          "vendor": "chimurai",
          "versions": [
            {
              "status": "affected",
              "version": "\u003e= 2.0.9, \u003c 2.0.11"
            },
            {
              "status": "affected",
              "version": "\u003e= 3.0.5, \u003c 3.0.8"
            },
            {
              "status": "affected",
              "version": "\u003e= 4.0.0-beta.0, \u003c 4.2.1"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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\u0027s 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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "attackComplexity": "HIGH",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 5.4,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "LOW",
            "integrityImpact": "LOW",
            "privilegesRequired": "NONE",
            "scope": "CHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N",
            "version": "3.1"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-444",
              "description": "CWE-444: Inconsistent Interpretation of HTTP Requests",
              "lang": "en",
              "type": "CWE"
            }
          ]
        },
        {
          "descriptions": [
            {
              "cweId": "CWE-807",
              "description": "CWE-807: Reliance on Untrusted Inputs in a Security Decision",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-30T22:43:54.472Z",
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M"
      },
      "references": [
        {
          "name": "https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-vp89-2qrg-8fwc",
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-vp89-2qrg-8fwc"
        },
        {
          "name": "https://github.com/chimurai/http-proxy-middleware/pull/1309",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/chimurai/http-proxy-middleware/pull/1309"
        },
        {
          "name": "https://github.com/chimurai/http-proxy-middleware/pull/1310",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/chimurai/http-proxy-middleware/pull/1310"
        },
        {
          "name": "https://github.com/chimurai/http-proxy-middleware/pull/1311",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/chimurai/http-proxy-middleware/pull/1311"
        },
        {
          "name": "https://github.com/chimurai/http-proxy-middleware/commit/32b56d3f22f0c77eed6828abef84104dacf202f4",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/chimurai/http-proxy-middleware/commit/32b56d3f22f0c77eed6828abef84104dacf202f4"
        },
        {
          "name": "https://github.com/chimurai/http-proxy-middleware/commit/412856f29168a815aeb2ede15266d7097b9060cc",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/chimurai/http-proxy-middleware/commit/412856f29168a815aeb2ede15266d7097b9060cc"
        },
        {
          "name": "https://github.com/chimurai/http-proxy-middleware/commit/77febf656f730ca28cd2188ba372aa4fa98f9404",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/chimurai/http-proxy-middleware/commit/77febf656f730ca28cd2188ba372aa4fa98f9404"
        },
        {
          "name": "https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.11",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.11"
        },
        {
          "name": "https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.8",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.8"
        },
        {
          "name": "https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.1",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.1"
        }
      ],
      "source": {
        "advisory": "GHSA-vp89-2qrg-8fwc",
        "discovery": "UNKNOWN"
      },
      "title": "http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "cveId": "CVE-2026-140103",
    "datePublished": "2026-11-30T22:43:54.472Z",
    "dateReserved": "2026-11-30T20:55:13.434Z",
    "dateUpdated": "2026-11-30T22:43:54.472Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "product": "http-proxy-middleware",
                "vendor": "chimurai",
                "versions": [
                  {
                    "status": "affected",
                    "version": "\u003e= 2.0.9, \u003c 2.0.11"
                  },
                  {
                    "status": "affected",
                    "version": "\u003e= 3.0.5, \u003c 3.0.8"
                  },
                  {
                    "status": "affected",
                    "version": "\u003e= 4.0.0-beta.0, \u003c 4.2.1"
                  }
                ]
              }
            ],
            "source": "security-advisories@github.com"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "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\u0027s 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."
          }
        ],
        "id": "CVE-2026-140103",
        "lastModified": "2026-11-30T23:17:24.857",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "HIGH",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 5.4,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "LOW",
                "integrityImpact": "LOW",
                "privilegesRequired": "NONE",
                "scope": "CHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N",
                "version": "3.1"
              },
              "exploitabilityScore": 2.2,
              "impactScore": 2.7,
              "source": "security-advisories@github.com",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T23:17:24.857",
        "references": [
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/chimurai/http-proxy-middleware/commit/32b56d3f22f0c77eed6828abef84104dacf202f4"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/chimurai/http-proxy-middleware/commit/412856f29168a815aeb2ede15266d7097b9060cc"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/chimurai/http-proxy-middleware/commit/77febf656f730ca28cd2188ba372aa4fa98f9404"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/chimurai/http-proxy-middleware/pull/1309"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/chimurai/http-proxy-middleware/pull/1310"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/chimurai/http-proxy-middleware/pull/1311"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.11"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.8"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.1"
          },
          {
            "source": "security-advisories@github.com",
            "url": "https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-vp89-2qrg-8fwc"
          }
        ],
        "sourceIdentifier": "security-advisories@github.com",
        "vulnStatus": "Received",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-444"
              },
              {
                "lang": "en",
                "value": "CWE-807"
              }
            ],
            "source": "security-advisories@github.com",
            "type": "Primary"
          }
        ]
      }
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.