Uncontrolled Recursion Affecting multer package, versions >=1.0.0 <2.2.0>=3.0.0-alpha.1 <3.0.0-alpha.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Uncontrolled Recursion vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MULTER-17342512
  • published16 Jun 2026
  • disclosed15 Jun 2026
  • creditByunSuyoung

Introduced: 15 Jun 2026

NewCVE-2026-5079  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade multer to version 2.2.0, 3.0.0-alpha.2 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion via deeply nested field names in multipart form data. An attacker can exhaust CPU and memory resources by sending a single HTTP request with a crafted multipart body containing excessively nested field names.

Workaround

This vulnerability can be mitigated by setting the limits.fields option to a reasonable value to reduce the number of fields an attacker can send per request. This does not fully mitigate the issue but limits the impact.

CVSS Base Scores

version 4.0
version 3.1