CVE-2026-5038
published medium CVSS 3.1 · 5.3multer vulnerable to Denial of Service via incomplete cleanup of aborted uploads
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| multer | — | multer2.0.0-alpha.1 to < 2.2.0 (affected · semver) · 2.2.0 (unaffected · semver) · 3.0.0-alpha.1 to < 3.0.0-alpha.2 (affected · semver) · 3.0.0-alpha.2 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| multer | multer | 2.0.0-alpha.1 to < 2.2.0 (affected · semver)2.2.0 (unaffected · semver)3.0.0-alpha.1 to < 3.0.0-alpha.2 (affected · semver)3.0.0-alpha.2 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-459 CWE-459: Incomplete Cleanup
References
2Provider assertions
2openjs · cna
multer vulnerable to Denial of Service via incomplete cleanup of aborted uploads
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ff86188909a3532d001669761bd218b2ee4d21dbc16e6d069d9afadcded66760
- Ingested
- 23 Sep 2026, 09:22:51 UTC
- Source record
- Official CVE record