CVE-2025-47935
JavaScript vulnerability analysis and mitigation

Overview

Multer, a popular Node.js middleware for handling multipart/form-data with over 26.3 million monthly downloads, contains a critical vulnerability (CVE-2025-47935) affecting all versions prior to 2.0.0. The vulnerability was disclosed on May 19, 2025, and primarily impacts applications using Multer for file upload functionality (Wiz, Security Advisory).

Technical details

The vulnerability stems from improper stream handling in Multer's implementation. When an HTTP request stream emits an error, the internal 'busboy' stream is not properly closed, which violates Node.js stream safety guidance. This technical oversight has been assigned a CVSS v3.1 score of 7.5 (High), with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. The vulnerability is classified as CWE-401 (Missing Release of Memory after Effective Lifetime) (Security Advisory).

Impact

The vulnerability leads to unclosed streams accumulating over time, resulting in resource exhaustion through memory and file descriptor consumption. Under sustained or repeated failure conditions, this can cause denial of service (DoS) that requires manual server restarts to recover. Given Multer's widespread use with over 26.3 million monthly downloads, the potential impact is significant (Wiz).

Mitigation and workarounds

The vulnerability has been patched in Multer version 2.0.0. Users are strongly advised to upgrade to this version as no alternative workarounds are available. The fix includes proper handling of stream closure when errors occur (Security Advisory, GitHub Commit).

Community reactions

The vulnerability has garnered significant attention from the developer community, with multiple developers expressing concerns about the severity of the memory leak issues. Prior to the fix, developers reported having to restart their servers daily due to thousands of unclosed streams, highlighting the operational impact of this vulnerability (GitHub PR).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management