CVEfocus › CVE database › CVE-2026-5038

CVE-2026-5038multer vulnerable to Denial of Service via incomplete cleanup of aborted uploads

CVSS 5.3 MediumEPSS 0.5% (higher than 35% of CVEs)Published 2026-06-15Updated 2026-06-15Assigner: openjs

Impact: multer versions 2.0.0-alpha.1 through 2.1.1 and 3.0.0-alpha.1 are vulnerable to a Denial of Service when using diskStorage. Aborted or malformed multipart uploads leave orphaned partial files on disk because the Readable.pipe() call does not propagate the stream destroy signal to the underlying fs.WriteStream. An attacker can exhaust disk space by triggering many aborted uploads, with no application bug required. Patches: Users should upgrade to multer 2.2.0 (2.x line) or 3.0.0-alpha.2 (3.x prerelease). Both versions track in-flight write streams and clean them up on the abort path. Workarounds: None.

CWE-459

What to do

Fixed builds are available from npm: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
14Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 10fdo-admin-cliNot affected
Red Hat Enterprise Linux 10fdo-clientNot affected
Red Hat Enterprise Linux 10fdo-initNot affected
Red Hat Enterprise Linux 10fdo-manufacturing-serverNot affected
Red Hat Enterprise Linux 10fdo-owner-cliNot affected
Red Hat Enterprise Linux 10fdo-owner-onboarding-serverNot affected
Red Hat Enterprise Linux 10fdo-rendezvous-serverNot affected
Red Hat Enterprise Linux 10firefoxNot affected
Red Hat Enterprise Linux 10thunderbirdNot affected
Red Hat Enterprise Linux 9firefoxNot affected
Red Hat Enterprise Linux 9firefox-x11Not affected
Red Hat Enterprise Linux 9thunderbirdNot affected
Red Hat Enterprise Linux 8thunderbirdNot affected
Red Hat Enterprise Linux 7firefoxNot affected
npm librarymulterFixed3.0.0-alpha.2GHSA-3p4h-7m6x-2hcm

What the vendor says

As published in the CVE record by openjs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.