Multiparty
multiparty vulnerable to Denial of Service via Prototype Pollution leading to Uncaught Exception
multiparty@4.2.3 and lower versions are vulnerable to denial of service via uncaught exception. By sending a multipart/form-data request with a field name that collides with an inherited Object.prototype property such as __proto__, constructor, or toString, the parser invokes .push() on the inherited prototype value rather than an array, throwing a TypeError that propagates as an uncaught exception and crashes the process. Impact: any service accepting multipart uploads via multiparty is affected. Workarounds: none. Upgrade to multiparty@4.3.0 or higher.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- <= 4.2.3
Fixed in 4.3.0
Mitigation
Upgrade multiparty to 4.3.0 or later.
References
- Vendor advisory github.com/pillarjs/multiparty/security/adviso…
Timeline
Days relative to CVE publicationFirst public PoC 13 h before publication; not in CISA KEV. First PoC: Ser0n-ath/multiparty-CVE-2026-8161 (created 11 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Ser0n-ath/multiparty-CVE-2026-8161 | 11 May 2026 −13 h | 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 /api/submit
- Key headers
Cache-Control: no-cacheX-Requested-With: XMLHttpRequest- Body markers
------WebKitFormBoundaryoFXWxynGz2jDt5Im Content-Disposition: form-data; name="__proto__"inmultipart/form-data; boundary=----WebKitFormBoundaryoFXWxynGz2jDt5Im- Ports
- 8080
- Seen in
- 1 repo: Ser0n-ath/multiparty-CVE-2026-8161
- Evidence
- Ser0n-ath/multiparty-CVE-2026-8161/secdos-burp-req:1
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/submit(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-8161 multiparty multiparty exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/submit"; http.header; content:"Cache-Control: no-cache"; nocase; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; http.request_body; content:"------WebKitFormBoundaryoFXWxynGz2jDt5Im Content-Disposition: form-data|3b| name=|22|__proto__|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-8161; classtype:web-application-attack; sid:9699633; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: multiparty multiparty exploit attempt (CVE-2026-8161)
id: gg-pocmon-cve-2026-8161-9699633
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-8161. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-8161
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/submit'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.8161