VDB
Sign up
MEDIUM5.3

GHSA-3p4h-7m6x-2hcm

Multer vulnerable to Denial of Service via incomplete cleanup of aborted uploads

Quick fix

GHSA-3p4h-7m6x-2hcm — multer: upgrade to the fixed version with the command below.

npm install multer@2.2.0

Details

### Impact

A vulnerability in Multer allows an attacker to trigger a Denial of Service (DoS) by aborting or sending malformed multipart uploads, causing orphaned partial files to accumulate on disk when using diskStorage.

### Patches

Users should upgrade to `2.2.0`, `3.0.0-alpha.2` or higher

### Workarounds

None

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/multer
Introduced in: 2.0.0-alpha.1Fixed in: 2.2.0
Fixnpm install multer@2.2.0
npm/multer
Introduced in: 3.0.0-alpha.1Fixed in: 3.0.0-alpha.2
Fixnpm install multer@3.0.0-alpha.2

References