CVE-2025-32997: Http proxy middleware Http-proxy-middleware Allows FixRequestBody To Proceed Vulnerability

MODERATE
Advisory Identifier: GHSA-9gqv-wp59-fq42
CVSS 4.0
CWE-754
Published
Advisory Summary

CVE-2025-32997 is a MODERATE (CVSS 4.0) http-proxy-middleware allows fixrequestbody to proceed vulnerability (CWE-754: Improper Check for Unusual or Exceptional Conditions) affecting Http proxy middleware libraries in the npm ecosystem. The issue involves http-proxy-middleware allows fixrequestbody to proceed even if bodyparser has failed. Remediation is available by upgrading affected packages to version 2.0.9, 3.0.5.

CVE-2025-32997 at a Glance

CVE Identifier CVE-2025-32997
GHSA Identifier GHSA-9gqv-wp59-fq42
Severity MODERATE
CVSS v3.1 Base Score 4.0
CWE Classification CWE-754: Improper Check for Unusual or Exceptional Conditions
Affected Product Http proxy middleware
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-32997

To remediate this vulnerability, upgrade all affected Http proxy middleware dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

http-proxy-middleware fixed: 2.0.9
npm install http-proxy-middleware@2.0.9
http-proxy-middleware fixed: 3.0.5
npm install http-proxy-middleware@3.0.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls http-proxy-middleware

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-32997, inspect your project dependencies using npm:

npm ls http-proxy-middleware

Analyze the terminal output to locate any version of Http proxy middleware in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.9), your application is affected.

Note: The npm ls http-proxy-middleware command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-754: Improper Check for Unusual or Exceptional Conditions, where the product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product. In Http proxy middleware, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

In http-proxy-middleware before 2.0.9 and 3.x before 3.0.5, fixRequestBody proceeds even if bodyParser has failed.

CVE-2025-32997 Affected Http proxy middleware Versions

2 component(s)
Fixed Versions:
2.0.93.0.5
Product / Package Ecosystem Affected Versions Fixed Version
http-proxy-middleware
npm
≥ 1.3.0
< 2.0.9
2.0.9
http-proxy-middleware
npm
≥ 3.0.0
< 3.0.5
3.0.5

References

Frequently Asked Questions

What is CVE-2025-32997?
CVE-2025-32997 is a security vulnerability in Http proxy middleware involving http-proxy-middleware allows fixRequestBody to proceed even if bodyParser has failed under CWE-754: Improper Check for Unusual or Exceptional Conditions.
Which Http proxy middleware versions are affected?
Affected versions include releases prior to 2.0.9, 3.0.5 across affected packages: http-proxy-middleware.
What version fixes CVE-2025-32997?
Upgrading to 2.0.9, 3.0.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is http-proxy-middleware affected?
Yes, http-proxy-middleware is affected in releases prior to 2.0.9, 3.0.5. Upgrade your dependency to 2.0.9, 3.0.5 or later.
What is the CVSS score of CVE-2025-32997?
CVE-2025-32997 has a CVSS v3.1 base score of 4.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N.
What CWE is associated with CVE-2025-32997?
CVE-2025-32997 is classified under CWE-754: Improper Check for Unusual or Exceptional Conditions (The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.).
How can I check npm dependencies for CVE-2025-32997?
Run the dependency tree command: 'npm ls http-proxy-middleware'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9gqv-wp59-fq42",
  "modified" : "2025-04-28T14:28:53Z",
  "published" : "2025-04-15T03:30:34Z",
  "aliases" : [ "CVE-2025-32997" ],
  "summary" : "http-proxy-middleware allows fixRequestBody to proceed even if bodyParser has failed",
  "details" : "In http-proxy-middleware before 2.0.9 and 3.x before 3.0.5, fixRequestBody proceeds even if bodyParser has failed.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "http-proxy-middleware"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.0"
      }, {
        "fixed" : "2.0.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "http-proxy-middleware"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-32997"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/chimurai/http-proxy-middleware/pull/1096"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/chimurai/http-proxy-middleware/commit/1bdccbeec243850f1d2bb50ea0ff2151e725d67e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/chimurai/http-proxy-middleware"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-754" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-16T15:24:43Z",
    "nvd_published_at" : "2025-04-15T03:15:18Z"
  }
}