Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113872 Overview
CVE-2026-113872 is a denial-of-service vulnerability in multer, a widely used Node.js middleware for handling multipart/form-data file uploads. The flaw affects versions from 2.0.0 up to but not including 2.5.0 when the middleware is configured with an asynchronous fileFilter. A single aborted request can crash the entire Node.js process by triggering an unhandled error event on a torn-down parsing stream. The vulnerability is tracked under [CWE-248: Uncaught Exception]. Applications using a synchronous fileFilter are not affected.
Critical Impact
An unauthenticated remote attacker can crash any Node.js application using multer with an async fileFilter by aborting an upload mid-stream, causing a full process exit and service outage.
Affected Products
- multer versions >= 2.0.0 and < 2.5.0
- Node.js applications using multer with an asynchronous fileFilter function
- All storage engines backed by affected multer versions (disk, memory, custom)
Discovery Timeline
- 2026-10-22 - CVE-2026-113872 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-113872
Vulnerability Analysis
The vulnerability resides in how multer manages lifecycle events between its internal multipart parser and user-supplied asynchronous fileFilter callbacks. When an HTTP client aborts an in-flight upload while an async fileFilter is still awaiting its callback, multer tears down its parsing streams and removes error listeners. The pending fileFilter callback later resumes the already-destroyed parsing stream. The parser then emits an error on a stream with no attached error listener. Node.js promotes this into an unhandled error event and terminates the process.
The impact is service-wide. A single crafted request can bring down a worker, and repeated requests can defeat process managers that attempt automatic restart. Because the issue is tied to Node's stream event semantics rather than user payload content, no authentication, privileges, or user interaction are required to trigger it.
Root Cause
The root cause is a lifecycle mismatch between asynchronous callback resolution and stream teardown. multer does not retain an error handler on the parsing stream after it is torn down following a client abort. When the deferred fileFilter callback executes and interacts with that stream, the resulting error has no consumer. Node.js escalates uncaught error events on EventEmitter instances to a fatal process-level exception, as classified by [CWE-248: Uncaught Exception].
Attack Vector
An attacker initiates a multipart/form-data upload to any endpoint protected by multer with an async fileFilter, then aborts the TCP connection before the filter callback resolves. No authentication or special permissions are required. The attack is remotely exploitable over the network and requires no user interaction. The vulnerability is described in detail in the GitHub Security Advisory GHSA-q7qp-rjg7-q26m.
// No verified proof-of-concept code is published.
// The vulnerability is triggered by:
// 1. Sending a multipart/form-data POST to a multer-protected endpoint
// 2. multer invokes the configured async fileFilter
// 3. Client aborts the connection before the fileFilter callback resolves
// 4. multer tears down its parser; pending callback later resumes the stream
// 5. Node.js raises an unhandled 'error' event -> process exits
Detection Methods for CVE-2026-113872
Indicators of Compromise
- Unexpected Node.js process exits with log entries referencing Unhandled error or ERR_UNHANDLED_ERROR originating from multer or busboy stream internals.
- Clusters of aborted multipart/form-data POST requests from the same source IP immediately preceding worker restarts.
- Process manager (PM2, systemd, Kubernetes) logs showing repeated restart cycles correlated with upload endpoint traffic.
Detection Strategies
- Inventory Node.js services for the multer dependency and flag any version in the range >=2.0.0 <2.5.0 using npm ls multer or SBOM queries.
- Audit application code for fileFilter functions that invoke the callback asynchronously (for example, inside await, promises, or I/O callbacks).
- Correlate web server access logs for aborted upload requests with application crash events to identify active exploitation attempts.
Monitoring Recommendations
- Alert on sudden increases in Node.js process restarts for services that expose file-upload endpoints.
- Monitor for HTTP 499 or truncated request logs at the reverse proxy (NGINX, HAProxy) targeting multipart endpoints.
- Capture Node.js uncaughtException and unhandledRejection telemetry and forward to centralized logging for crash-pattern analysis.
How to Mitigate CVE-2026-113872
Immediate Actions Required
- Upgrade multer to version 2.5.0 or later in all affected Node.js applications.
- If immediate upgrade is not feasible, replace async fileFilter implementations with synchronous equivalents.
- Rate-limit multipart upload endpoints at the reverse proxy to reduce exploitability during the patch window.
Patch Information
The issue is fixed in multer 2.5.0. Update the dependency with npm install multer@^2.5.0 or the equivalent yarn/pnpm command, then redeploy. Review the GitHub Security Advisory GHSA-q7qp-rjg7-q26m and the OpenJS Foundation Security Advisories for release notes and additional guidance.
Workarounds
- Convert any asynchronous fileFilter function to a synchronous implementation that returns its decision immediately via the callback.
- Front the application with a WAF or reverse-proxy rule that rejects or throttles rapid aborted multipart requests from a single source.
- Deploy under a supervisor (PM2, systemd, Kubernetes) with aggressive restart policies to reduce downtime, acknowledging this does not prevent exploitation.
# Upgrade multer to the patched version
npm install multer@^2.5.0
# Verify the installed version
npm ls multer
# Audit for other known vulnerabilities
npm audit --production
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

