All reports
High

multiparty vulnerable to ReDoS via filename parsing

Affected versions

Affected versions
<= 4.2.3
Fixed version
4.3.0

Exploitation

CVE-2026-8159

Probability of exploitation in the next 30 days: 0.34%

FIRST EPSS · 2026-11-21

Description

Impact

multiparty@4.2.3 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 multiparty@4.3.0 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

Links

Credits

  • aszx87410
  • blakeembrey
  • UlisesGascon