CVE-2026-5038: Multer Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-3p4h-7m6x-2hcm
CVSS 5.3
CWE-459
Published
Advisory Summary

CVE-2026-5038 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-459: Incomplete Cleanup) affecting Multer libraries in the npm ecosystem. The issue involves multer vulnerable to denial of service via incomplete cleanup of aborted uploads. Remediation is available by upgrading affected packages to version 2.2.0, 3.0.0-alpha.2.

CVE-2026-5038 at a Glance

CVE Identifier CVE-2026-5038
GHSA Identifier GHSA-3p4h-7m6x-2hcm
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-459: Incomplete Cleanup
Affected Product Multer
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

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

How to Fix CVE-2026-5038

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

multer fixed: 2.2.0
npm install multer@2.2.0
multer fixed: 3.0.0-alpha.2
npm install multer@3.0.0-alpha.2
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 multer

How to Check if You Are Affected

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

npm ls multer

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

Note: The npm ls multer 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-459: Incomplete Cleanup, where the product does not properly "clean up" and remove temporary or supporting resources after they have been used. In Multer, 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

### Impact A vulnerability in Multer allows an attacker to trigger a Denial of Service (DoS) by aborting or sending malformed multipart uploads, causing orphaned partial files to accumulate on disk when using diskStorage. ### Patches Users should upgrade to `2.2.0`, `3.0.0-alpha.2` or higher ### Workarounds None

CVE-2026-5038 Affected Multer Versions

2 component(s)
Fixed Versions:
2.2.03.0.0-alpha.2
Product / Package Ecosystem Affected Versions Fixed Version
multer
npm
≥ 2.0.0-alpha.1
< 2.2.0
2.2.0
multer
npm
≥ 3.0.0-alpha.1
< 3.0.0-alpha.2
3.0.0-alpha.2

References

Frequently Asked Questions

What is CVE-2026-5038?
CVE-2026-5038 is a security vulnerability in Multer involving Multer vulnerable to Denial of Service via incomplete cleanup of aborted uploads under CWE-459: Incomplete Cleanup.
Which Multer versions are affected?
Affected versions include releases prior to 2.2.0, 3.0.0-alpha.2 across affected packages: multer.
What version fixes CVE-2026-5038?
Upgrading to 2.2.0, 3.0.0-alpha.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is multer affected?
Yes, multer is affected in releases prior to 2.2.0, 3.0.0-alpha.2. Upgrade your dependency to 2.2.0, 3.0.0-alpha.2 or later.
What is the CVSS score of CVE-2026-5038?
CVE-2026-5038 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2026-5038?
CVE-2026-5038 is classified under CWE-459: Incomplete Cleanup (The product does not properly "clean up" and remove temporary or supporting resources after they have been used.).
How can I check npm dependencies for CVE-2026-5038?
Run the dependency tree command: 'npm ls multer'. 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-3p4h-7m6x-2hcm",
  "modified" : "2026-06-17T18:11:48Z",
  "published" : "2026-06-17T18:11:48Z",
  "aliases" : [ "CVE-2026-5038" ],
  "summary" : "Multer vulnerable to Denial of Service via incomplete cleanup of aborted uploads",
  "details" : "### Impact\n\nA vulnerability in Multer allows an attacker to trigger a Denial of Service (DoS) by aborting or sending malformed multipart uploads, causing orphaned partial files to accumulate on disk when using diskStorage.\n\n### Patches\n\nUsers should upgrade to `2.2.0`, `3.0.0-alpha.2` or higher\n\n### Workarounds\n\nNone",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "multer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0-alpha.1"
      }, {
        "fixed" : "2.2.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "multer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0-alpha.1"
      }, {
        "fixed" : "3.0.0-alpha.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/expressjs/multer/security/advisories/GHSA-3p4h-7m6x-2hcm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-5038"
  }, {
    "type" : "WEB",
    "url" : "https://cna.openjsf.org/security-advisories.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/expressjs/multer"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-459" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-17T18:11:48Z",
    "nvd_published_at" : "2026-06-15T16:16:34Z"
  }
}