CVE-2026-5038multer vulnerable to Denial of Service via incomplete cleanup of aborted uploads
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | fdo-admin-cli | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-client | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-init | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-manufacturing-server | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-owner-cli | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-owner-onboarding-server | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-rendezvous-server | Not affected | ||
| Red Hat Enterprise Linux 10 | firefox | Not affected | ||
| Red Hat Enterprise Linux 10 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 9 | firefox | Not affected | ||
| Red Hat Enterprise Linux 9 | firefox-x11 | Not affected | ||
| Red Hat Enterprise Linux 9 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 8 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 7 | firefox | Not affected | ||
| npm library | multer | Fixed | 3.0.0-alpha.2 | GHSA-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.
- multer: affected: 2.0.0-alpha.1 to before 2.2.0, 2.2.0 not affected, 3.0.0-alpha.1 to before 3.0.0-alpha.2, 3.0.0-alpha.2 not affected; fixed in
2.2.0,3.0.0-alpha.2
References
- https://github.com/expressjs/multer/security/advisories/GHSA-3p4h-7m6x-2hcm
- https://cna.openjsf.org/security-advisories.html
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.