High · 7.5 Node.js & npm CVE-2026-113872 GHSA-q7qp-rjg7-q26m
Multer Denial-of-Service Vulnerability Lets Attackers Crash Node.js Apps with a Single Request (CVE-2026-113872)
A denial-of-service flaw in multer, the popular Node.js file upload middleware, allows an attacker to crash the Node.js process with a single aborted upload request when an asynchronous fileFilter is used. The issue is fixed in multer 2.5.0.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A vulnerability has been disclosed in multer, a widely used Node.js middleware for handling multipart/form-data file uploads. Tracked as CVE-2026-113872, the issue allows a single network request to crash an affected Node.js process under certain configurations. The flaw is rated 7.5 (High) on CVSS 3.1 and has been fixed in multer 2.5.0.
What happened
A denial-of-service vulnerability was identified in multer, the Node.js middleware for handling multipart/form-data file uploads. When multer is configured with an asynchronous fileFilter, an attacker can send a file upload request and then abort it while the asynchronous fileFilter callback for one of the files is still pending. When that pending callback later fires, it attempts to resume a parsing stream that multer has already torn down following the request abort. The underlying parser then emits an error on a stream that no longer has an error listener attached, which Node.js treats as an unhandled error event, causing the process to exit.
Technical cause
The root cause is a race condition between request teardown and the resolution of an asynchronous fileFilter callback. multer tears down the parsing stream and its associated error listener when a request is aborted, but does not account for the case where a fileFilter callback for that request is still outstanding. When the delayed callback resumes processing on the now-torn-down stream, the parser emits an error that has no listener attached, resulting in an unhandled error event in Node.js and an abrupt process exit. This is classified as CWE-248 (Uncaught Exception).
Who is affected
Any application using multer with an asynchronous fileFilter is affected, regardless of which storage engine is configured. Applications that use a synchronous fileFilter are not affected by this issue.
Affected versions
Multer versions from 2.0.0 up to, but not including, 2.5.0 are affected. The vulnerability is fixed in multer 2.5.0.
Fixes and mitigation
The vulnerability is fixed in multer 2.5.0. Users should upgrade to version 2.5.0 or later. As a temporary workaround for applications that cannot upgrade immediately, using a synchronous fileFilter avoids the race condition that triggers this issue.
Recommended action
Upgrade multer to version 2.5.0 or later as soon as possible, particularly for applications that use an asynchronous fileFilter. If an immediate upgrade is not feasible, switch to a synchronous fileFilter as an interim mitigation. No further action is required for applications already using only synchronous fileFilter logic, though upgrading is still recommended as general good practice.
PatchBriefing score
7.5 / 10 · High
Official CVSS: 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS 0.0049 (35 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- multer >= 2.0.0, < 2.5.0
- vulnerable
- multer ≥ 2.0.0 < 2.5.0
- vulnerable
- ≥ 2.5.0
- patched
Reported fixes
The vulnerability is fixed in multer 2.5.0. Users should upgrade to version 2.5.0 or later. As a temporary workaround for applications that cannot upgrade immediately, using a synchronous fileFilter avoids the race condition that triggers this issue.
How this was built
3 source records were collected, matched and used to prepare the report above.
-
NVD (NIST) database
-
GitHub Advisory Database database
-
OSV.dev database
Revision history
- Published
- Generated