GitHub Advisoryadvisory · npm
GHSA-65x3-rw7q-gx94 multiparty vulnerable to ReDoS via filename parsing
HIGH
Official page ↗
- Aliases
- CVE-2026-8159
- Ecosystem
- npm
- Packages
- multiparty
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-1333
- Reviewed
- 2026-05-18
Affected packages
• npm multiparty: < 4.3.0 → fixed in 4.3.0
Description
Impact
[email protected] and lower versions are vulnerable to denial of service via regular expression backtracking in the `Content-Disposition` filename parameter parser. A multipart upload with a long header value containing `!filename="1` repeated can cause regex matching to take seconds, blocking the event loop. Any service accepting multipart uploads via multiparty is affected.
Patches
Users should upgrade to [email protected] or higher.
Workarounds
None. Limiting upload sizes at the proxy/gateway layer reduces but does not eliminate the attack surface, since a small ~8 KB header is sufficient to trigger the vulnerable backtracking.
Resources
• OWASP: Regular expression Denial of Service (ReDoS)
Related
Alias · CVE (1)
- CVE-2026-8159 [email protected] and lower versions are vulnerable to denial of service via regular expression backtracking in the Content-Disposition… vulnerability
Weakness · CWE (1)
- CWE-1333 Inefficient Regular Expression Complexity weakness
References
- https://github.com/pillarjs/multiparty/security/advisories/GHSA-65x3-rw7q-gx94 web
- https://nvd.nist.gov/vuln/detail/CVE-2026-8159 advisory
- https://cna.openjsf.org/security-advisories.html web
- https://github.com/pillarjs/multiparty package
- https://github.com/pillarjs/multiparty/releases/tag/v4.3.0 web
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS web