Multer Denial-of-Service Vulnerability via Malformed Multipart Requests

Vulnerability

A denial-of-service vulnerability has been identified in Multer, a Node.js middleware for handling multipart form data. This issue affects Multer versions 1.4.4-lts.1 through 2.0.2. The vulnerability arises when an attacker sends a malformed multipart upload request, which triggers an unhandled exception and crashes the process. Users are advised to upgrade to version 2.0.2, the first version that includes a patch for this vulnerability. No known workarounds are available.

Impact

Exploitation of this vulnerability leads to a process crash, causing a denial-of-service condition.

Reproduction

The vulnerability can be reproduced by sending a multipart upload request with a malformed structure, particularly one that includes a bad boundary. This can be done using an HTTP client that allows for the manipulation of multipart form data, such as Postman or a custom script. The server should be set up to use Multer for handling file uploads.

Remediation

Users should upgrade to Multer version 2.0.2.

Added: Jul 17, 2025, 4:18 PM
Updated: Jul 17, 2025, 4:18 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.4
remediation
7.7
relevance
0.2
threat
4.8
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.