multer vulnerable to Denial of Service via file descriptor leak on aborted uploads
cve-program · CVE-2026-77037
Publishedmulter is a middleware for handling multipart/form-data in Node.js. In version 2.2.0, when a disk-backed upload is aborted or truncated before the write stream finishes, multer's disk storage engine removes the visible file but does not close the underlying write file descriptor, leaving a deleted but still open descriptor. A remote attacker able to reach an upload route using the built-in disk storage can send repeated aborted or malformed multipart uploads, each one leaking a file descriptor and retaining disk blocks until the process exits, which can exhaust resources and cause a denial of service. The issue is fixed in multer 2.3.0, which closes the destination write stream on abnormal source termination and defers cleanup until the stream has closed. Upgrade to multer 2.3.0 to remediate.
Read the publisher's advisoryeuvd · EUVD-2026-67928
Publishedmulter is a middleware for handling multipart/form-data in Node.js. In version 2.2.0, when a disk-backed upload is aborted or truncated before the write stream finishes, multer's disk storage engine removes the visible file but does not close the underlying write file descriptor, leaving a deleted but still open descriptor. A remote attacker able to reach an upload route using the built-in disk storage can send repeated aborted or malformed multipart uploads, each one leaking a file descriptor and retaining disk blocks until the process exits, which can exhaust resources and cause a denial of service. The issue is fixed in multer 2.3.0, which closes the destination write stream on abnormal source termination and defers cleanup until the stream has closed. Upgrade to multer 2.3.0 to remediate.
Read the publisher's advisorynvd · CVE-2026-77037
Publishedmulter is a middleware for handling multipart/form-data in Node.js. In version 2.2.0, when a disk-backed upload is aborted or truncated before the write stream finishes, multer's disk storage engine removes the visible file but does not close the underlying write file descriptor, leaving a deleted but still open descriptor. A remote attacker able to reach an upload route using the built-in disk storage can send repeated aborted or malformed multipart uploads, each one leaking a file descriptor and retaining disk blocks until the process exits, which can exhaust resources and cause a denial of service. The issue is fixed in multer 2.3.0, which closes the destination write stream on abnormal source termination and defers cleanup until the stream has closed. Upgrade to multer 2.3.0 to remediate.
Read the publisher's advisoryosv · GHSA-qfvm-cv95-jqjf
Published### Impact A vulnerability in multer `2.2.0` allows an attacker to trigger a Denial of Service (DoS) by aborting or truncating multipart uploads. When using `diskStorage`, the destination write stream is not closed if the upload is aborted before it finishes, so each failed request leaks an open file descriptor and retains its disk blocks until the process exits. Repeated failed uploads can exhaust the available file descriptors. All applications using multer's disk storage are affected. ### Patches Users should upgrade to `2.3.0`. ### Workarounds None.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-77037 · CVE overview and exploitation status
cve-program · CVE-2026-77037
- https://github.com/expressjs/multer/security/advisories/GHSA-qfvm-cv95-jqjf
- https://cna.openjsf.org/security-advisories.html
euvd · EUVD-2026-67928
- https://github.com/expressjs/multer/security/advisories/GHSA-qfvm-cv95-jqjf
- https://cna.openjsf.org/security-advisories.html
nvd · CVE-2026-77037
- https://cna.openjsf.org/security-advisories.html
- https://github.com/expressjs/multer/security/advisories/GHSA-qfvm-cv95-jqjf
osv · GHSA-qfvm-cv95-jqjf
- https://github.com/expressjs/multer/security/advisories/GHSA-qfvm-cv95-jqjf
- https://nvd.nist.gov/vuln/detail/CVE-2026-77037
- https://github.com/expressjs/multer/commit/eef74440b491ef0f976f3d25895e8089ae495df0
- https://cna.openjsf.org/security-advisories.html
- https://github.com/expressjs/multer
- https://github.com/expressjs/multer/releases/tag/v2.3.0