Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. multer
  4. ›
  5. CVE-2025-47935

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

May 19, 2025

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.

References

  • github.com/advisories/GHSA-44fp-w29j-9vj5
  • github.com/expressjs/multer
  • github.com/expressjs/multer/commit/2c8505f207d923dd8de13a9f93a4563e59933665
  • github.com/expressjs/multer/pull/1120
  • github.com/expressjs/multer/security/advisories/GHSA-44fp-w29j-9vj5
  • nvd.nist.gov/vuln/detail/CVE-2025-47935

Code Behaviors & Features

Detect and mitigate CVE-2025-47935 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.0

Fixed versions

  • 2.0.0

Solution

Upgrade to version 2.0.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-401: Missing Release of Memory after Effective Lifetime

Source file

npm/multer/CVE-2025-47935.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:46 +0000.