Intel

AIKIDO-2026-153470

multer is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)CVE-2026-5038 Published 5 days ago

53

Medium Risk

This Affects:

JSmulter
2.0.0 - 2.1.1
Fixed in 2.2.0
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.

Who does this affect?

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

Background info

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

How to fix this

Upgrade the multer library to the patch version.