multer is vulnerable to Denial of Service (DoS)
53
CVE Score
Medium
Denial of Service (DoS)
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.
Upgrade the multer library to the patch version.
You are affected if you are using diskStorage and are on a version that falls within the vulnerable range.
2.0.0 - 2.1.1
Fixed in 2.2.0multer is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 2.1.1.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.