NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2025-47935: Multer vulnerable to Denial of Service via memory leaks from unclosed streams

highCVSS 3.1 7.5GHSA-44fp-w29j-9vj5

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 entries