multer is vulnerable to Race Condition
37
Low Risk
When multer is configured with an asynchronous fileFilter, the handler that enforces limits.fileSize is registered inside the async callback. A file that exceeds the configured size limit before the callback runs slips through the timing window, so the size-limit event never fires and the oversized file is accepted and written. This affects all upload methods when an async filter is used, while synchronous filters remain unaffected. The fix enforces the file-size limit independently of the asynchronous filter timing.
You are affected if you are using a version that falls within the vulnerable range and your application configures multer with an asynchronous fileFilter.
multer is vulnerable to Race Condition in versions 0.0.1 - 2.2.0.
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.

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.