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

Published Jun 15, 2026
·
Updated

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

Other sources

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.

MITRE

Affected Software

5 affected componentsFixes available
npm/multer>=2.0.0-alpha.1<=2.1.1, =3.0.0-alpha.1
expressjs Multer Node.js>=2.0.0<2.2.0
expressjs Multer Node.js=3.0.0-alpha1
npm/multer>=3.0.0-alpha.1<3.0.0-alpha.2
3.0.0-alpha.2
npm/multer>=2.0.0-alpha.1<2.2.0
2.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/multer to a version that resolves this vulnerability.

    Fixed in 2.2.0
  2. Upgrade

    Upgrade npm/multer to a version that resolves this vulnerability.

    Fixed in 3.0.0-alpha.2

Event History

Jun 15, 2026
CVE Published
via MITRE·02:23 PM
Data Sourced
via MITRE·02:23 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeaknessAffected Software
Jun 17, 2026
Advisory Published
via GitHub·06:11 PM
Data Sourced
via GitHub·06:11 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-5038?

CVE-2026-5038 has a medium severity rating of 5.3.

2

How do I fix CVE-2026-5038?

To fix CVE-2026-5038, you should update multer to version 2.1.2 or later.

3

What impact does CVE-2026-5038 have?

CVE-2026-5038 can lead to a Denial of Service due to orphaned partial files being left on disk.

4

Which versions of multer are affected by CVE-2026-5038?

CVE-2026-5038 affects multer versions from 2.0.0-alpha.1 to 2.1.1 and 3.0.0-alpha.1.

5

What type of vulnerability is CVE-2026-5038?

CVE-2026-5038 is a Denial of Service vulnerability related to incomplete cleanup of aborted uploads.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203