Intel

AIKIDO-2026-40862

multer is vulnerable to Race Condition

Race ConditionCVE-2026-77063 Published 2 days ago

37

Low Risk

This Affects:

JSmulter
0.0.1 - 2.2.0
Fixed in 2.3.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application configures multer with an asynchronous fileFilter.

Background info

multer is vulnerable to Race Condition in versions 0.0.1 - 2.2.0.

How to fix this

Upgrade the multer library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform