CVE-2026-8161: multiparty vulnerable to Denial of Service via Prototype Pollution leading to Uncaught Exception
Impact
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 (e.g., proto, constructor, 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. Any service accepting multipart uploads via multiparty is affected.
Patches
Users should upgrade to multiparty@4.3.0 or higher.
Workarounds
None.
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/multipartyto a version that resolves this vulnerability.Fixed in 4.3.0 - Upgrade
Upgrade
multipartyto a version that resolves this vulnerability.Fixed in 4.3.0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-8161?
CVE-2026-8161 has a medium severity rating due to its potential to cause Denial of Service.
How do I fix CVE-2026-8161?
To mitigate CVE-2026-8161, upgrade to multiparty version 4.2.4 or higher.
What versions of multiparty are affected by CVE-2026-8161?
Multiparty versions 4.2.3 and lower are affected by CVE-2026-8161.
What type of attack does CVE-2026-8161 facilitate?
CVE-2026-8161 facilitates a Denial of Service attack via Prototype Pollution.
Is CVE-2026-8161 related to specific data types?
Yes, CVE-2026-8161 affects multipart/form-data requests with colliding field names.