Resource Exhaustion Vulnerability in Multer Node.js Middleware
CVE-2025-47935
7.5HIGH
What is CVE-2025-47935?
Multer, a middleware for Node.js used for handling multipart form data, contains a resource exhaustion and memory leak vulnerability in versions prior to 2.0.0. This vulnerability arises from improper handling of HTTP request streams when an error is emitted. The internal busboy stream is not closed, leading to unclosed streams that consume increasing amounts of memory and file descriptors over time. Under conditions of sustained or repeated failures, this exposure can result in a denial of service, necessitating manual server restarts for recovery. Users should upgrade to version 2.0.0 or later to mitigate this issue, as no known workarounds are available.
Affected Version(s)
multer < 2.0.0