Intel

AIKIDO-2026-153470

multer is vulnerable to Denial of Service (DoS)

CVE-2026-5038Published Jun 17, 2026
June 17, 2026

53

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

multer is an Express middleware for handling multipart/form-data uploads. When it is configured with diskStorage, an aborted or malformed multipart request can leave the partial uploaded file on disk because the stream destroy signal is not propagated to the underlying file write stream. Repeated aborted uploads accumulate orphaned partial files and can exhaust available disk space, resulting in denial of service. The fix tracks in-flight write streams and cleans them up on the abort path so no orphaned partial file is left behind.

How do I fix this?

Upgrade the multer library to the patch version.

Who does this affect?

You are affected if you are using diskStorage and are on a version that falls within the vulnerable range.

Package

Versions

2.0.0 - 2.1.1

Fixed in 2.2.0

Background info

multer is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 2.1.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea