GHSA-3pph-fpjx-jg34

Suggest an improvement
Source
https://github.com/advisories/GHSA-3pph-fpjx-jg34
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-3pph-fpjx-jg34/GHSA-3pph-fpjx-jg34.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3pph-fpjx-jg34
Aliases
Downstream
CGA (4)
Published
2026-09-28T21:34:58Z
Modified
2026-09-28T21:45:03Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
multer vulnerable to Denial of Service via orphaned disk writes on aborted uploads
Details

Impact

Multer's diskStorage can leave complete, orphaned files on disk when a multipart upload is aborted in the brief window before the storage engine assigns the file path. This is an incomplete fix of CVE-2026-5038: the earlier cleanup removes only in-flight uploads that already have a path, so an upload aborted inside that window is written to disk with nothing left to remove it, and the application is not given a handle to clean it up. An unauthenticated attacker sending aborted requests to any route backed by disk storage can accumulate orphaned files until the upload directory or the shared system temporary directory is exhausted. An asynchronous destination or filename widens the window.

Patches

Users should upgrade to 2.4.0 or higher.

Workarounds

None.

Database specific
{
    "cwe_ids":  [
        "CWE-400",
        "CWE-459"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-09-28T21:34:58Z",
    "nvd_published_at":  "2026-09-14T09:17:01Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / multer

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.2.0
Fixed
2.4.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-3pph-fpjx-jg34/GHSA-3pph-fpjx-jg34.json"