CVE-2025-47935: Multer vulnerable to Denial of Service via memory leaks from unclosed streams
Impact Multer <2.0.0 is vulnerable to a resource exhaustion and memory leak issue due to improper stream handling. When the HTTP request stream emits an error, the internal busboy stream is not closed, violating Node.js stream safety guidance. This leads to unclosed streams accumulating over time, consuming memory and file descriptors.
Published May 19, 2025 · Updated Jun 8, 2025
Affected packages
multer
- Ecosystem
- npm
- Affected
- < 2.0.0
- Fixed in
- 2.0.0
- Check
npm ls multer
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Multer <2.0.0 is vulnerable to a resource exhaustion and memory leak issue due to improper stream handling. When the HTTP request stream emits an error, the internal busboy stream is not closed, violating Node.js stream safety guidance.
This leads to unclosed streams accumulating over time, consuming memory and file descriptors. Under sustained or repeated failure conditions, this can result in denial of service, requiring manual server restarts to recover. All users of Multer handling file uploads are potentially impacted.
Patches
Users should upgrade to 2.0.0
Workarounds
None
References
- https://github.com/expressjs/multer/pull/1120
- https://github.com/expressjs/multer/commit/2c8505f207d923dd8de13a9f93a4563e59933665
Credited to ctcpip, UlisesGascon, UnlimitedBytes.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-113872
multer vulnerable to Denial of Service via a pending asynchronous fileFilter after request teardown
high7.5Oct 23, 2026CVE-2026-88932
multer vulnerable to Denial of Service via orphaned disk writes on aborted uploads
medium5.3Sep 28, 2026CVE-2026-77037
multer vulnerable to Denial of Service via file descriptor leak on aborted uploads
high7.5Sep 8, 2026CVE-2026-77063
multer vulnerable to file size limit bypass via async fileFilter race condition
low3.7Sep 8, 2026CVE-2026-77078
multer vulnerable to Denial of Service via crafted multipart field names
high7.5Sep 8, 2026CVE-2026-82333
multer vulnerable to Denial of Service via oversized array index in field names
high7.5Sep 8, 2026
