GHSA-3pph-fpjx-jg34: Medium severity npm/multer vulnerability

Published Sep 28, 2026
·
Updated

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.

Affected Software

1 affected componentFixes available
npm/multer>=2.2.0<2.4.0
2.4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/multer to a version that resolves this vulnerability.

    Fixed in 2.4.0
  2. Upgrade

    Upgrade Multer to a version that resolves this vulnerability.

    Fixed in 2.4.0

Event History

Sep 28, 2026
Advisory Published
via GitHub·09:34 PM
Data Sourced
via GitHub·09:34 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to disk exhaustion?

Any route using Multer's diskStorage is exposed if it accepts multipart uploads. An unauthenticated attacker can repeatedly abort upload requests and accumulate orphaned files until the upload directory or shared system temporary directory is exhausted.

2

What conditions make exploitation easier?

The attacker only needs network access to a multipart-upload route backed by diskStorage; no authentication or user interaction is required. Asynchronous destination or filename handling widens the timing window in which aborted uploads can leave files behind.

3

Is there a workaround if an upgrade cannot be applied immediately?

No workaround is provided. Upgrade Multer to version 2.4.0 or later.

4

How can operators tell whether they may already be affected?

Check the disk used by the configured upload directory and any shared system temporary directory for unexpected complete files that are not associated with application-managed uploads. The vulnerable cleanup path leaves no application handle for these orphaned files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203