Vulnerabilities

CVE-2026-5038

High 7.5 CVSS 3.1

Description

Impact: multer versions 2.0.0-alpha.1 through 2.1.1 and 3.0.0-alpha.1 are vulnerable to a Denial of Service when using diskStorage. Aborted or malformed multipart uploads leave orphaned partial files on disk because the Readable.pipe() call does not propagate the stream destroy signal to the underlying fs.WriteStream. An attacker can exhaust disk space by triggering many aborted uploads, with no application bug required. Patches: Users should upgrade to multer 2.2.0 (2.x line) or 3.0.0-alpha.2 (3.x prerelease). Both versions track in-flight write streams and clean them up on the abort path. Workarounds: None.

Description as published by the source, in English.

Key facts

Published
2026-06-15
Last modified
2026-06-17
Assigned by
ce714d77-add3-4f53-aff5-83d477b104bb
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.3 % higher than 20 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
multer (npm) ≥ 2.0.0-alpha.1, < 2.2.0 Affected
multer (npm) ≥ 3.0.0-alpha.1, < 3.0.0-alpha.2 Affected
Expressjs Multer 3.0.0 Affected
Expressjs Multer ≥ 2.0.0, < 2.2.0 Affected

Weakness type

  • CWE-459: Incomplete Cleanup

    The product does not properly "clean up" and remove temporary or supporting resources after they have been used.

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities