multer is vulnerable to Denial of Service (DoS)
53
Medium Risk
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.
You are affected if you are using diskStorage and are on a version that falls within the vulnerable range.
multer is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 2.1.1.
Upgrade the multer library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant