GHSA-535w-7cp7-47q4: High severity npm/multer vulnerability

Published Sep 8, 2026
·
Updated

Impact

multer is vulnerable to a Denial of Service (DoS) via a crafted array index in multipart field names. The append-field dependency parses bracket notation in field names, and a large numeric index such as items[4294967294] forces allocation of a maximum-length sparse array. A following field with a non-numeric key on the same base then converts that array to an object by iterating its full length, which consumes CPU synchronously and leaves the process unable to handle other requests. A single HTTP request with a crafted multipart body is sufficient to exploit this, and it affects multer 1.x and 2.x.

Patches

Users should upgrade to 2.3.0 and configure limits.fieldArrayIndexLimit to the minimum array index their application requires.

Workarounds

None.

Affected Software

1 affected componentFixes available
npm/multer<2.3.0
2.3.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.3.0
  2. Upgrade

    Upgrade multer to a version that resolves this vulnerability.

    Fixed in 2.3.0
  3. Configuration

    Configure limits.fieldArrayIndexLimit to the minimum array index your application requires to prevent allocation of a maximum-length sparse array from crafted numeric bracket notation (e.g., items[4294967294]).

    multer limits.fieldArrayIndexLimit = minimum array index their application requires

Event History

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

Frequently Asked Questions

1

Which deployments are exposed to this denial-of-service issue?

Applications using multer 1.x or 2.x to process multipart requests are affected. Because exploitation requires only a single crafted HTTP multipart request and no authentication, any reachable multipart upload endpoint using an affected version is exposed.

2

What request conditions are needed to trigger the denial of service?

The multipart body must include a field name with a very large numeric bracket index, such as items[4294967294], followed by a field with a non-numeric key using the same base. This causes synchronous CPU consumption while the sparse array is converted to an object, preventing the process from handling other requests.

3

What should teams do to remediate the issue?

Upgrade multer to version 2.3.0. Configure limits.fieldArrayIndexLimit to the smallest array index required by the application.

4

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

No workaround is provided. The stated remediation is upgrading to 2.3.0 and restricting limits.fieldArrayIndexLimit.

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