Multer
multer vulnerable to Denial of Service via crafted multipart field names
multer is a middleware for handling multipart/form-data in Node.js. A small multipart request containing two specially crafted text field names can cause an uncaught RangeError (Invalid array length) that terminates the Node.js process. The first field uses a very large numeric array index to allocate a maximum-length sparse array, and a second field then pushes past that length, which throws inside the append-field dependency and is not caught by multer. All versions before 2.3.0 are affected, and the issue is a remotely triggerable denial of service. The issue is fixed in multer 2.3.0. Upgrade to multer 2.3.0 to remediate.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.3.0
Fixed in 2.3.0
Mitigation
Upgrade multer to 2.3.0 or later.
References
- Vendor advisory github.com/expressjs/multer/security/advisorie…
Timeline
Days relative to CVE publicationFirst public PoC 24 days after publication; not in CISA KEV. First PoC: wtfkimi/CVE-2026-77078 (created 21 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| wtfkimi/CVE-2026-77078 | 21 Sep 2026 +24 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /upload
- Body markers
@/tmp/multer-poc.bin------copwc9g Content-Disposition: form-data; name="a[4294967294]"inmultipart/form-data; boundary=----copwc9g- Ports
- 3000
- Seen in
- 1 repo: wtfkimi/CVE-2026-77078
- Evidence
- wtfkimi/CVE-2026-77078/multer-cve-2026-77078.en.md:186 wtfkimi/CVE-2026-77078/multer-cve-2026-77078.en.md:197 wtfkimi/CVE-2026-77078/multer-cve-2026-77078.md:184 wtfkimi/CVE-2026-77078/multer-cve-2026-77078.md:195
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/upload(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-77078 multer multer exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/upload"; http.request_body; content:"@/tmp/multer-poc.bin"; http.request_body; content:"------copwc9g Content-Disposition: form-data|3b| name=|22|a[4294967294]|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-77078; classtype:web-application-attack; sid:9520038; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: multer multer exploit attempt (CVE-2026-77078)
id: gg-pocmon-cve-2026-77078-9520038
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-77078. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-77078
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/upload'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.77078