Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-3520: CWE-674: Uncontrolled Recursion in expressjs multer

0
High
VulnerabilityCVE-2026-3520cvecve-2026-3520cwe-674
Published: Wed Mar 04 2026 (03/04/2026, 16:17:18 UTC)
Source: CVE Database V5
Vendor/Project: expressjs
Product: multer

Description

Multer is a node.js middleware for handling `multipart/form-data`. A vulnerability in Multer prior to version 2.1.1 allows an attacker to trigger a Denial of Service (DoS) by sending malformed requests, potentially causing stack overflow. Users should upgrade to version 2.1.1 to receive a patch. No known workarounds are available.

AI-Powered Analysis

AILast updated: 03/04/2026, 16:47:41 UTC

Technical Analysis

CVE-2026-3520 is a vulnerability classified under CWE-674 (Uncontrolled Recursion) found in the Multer middleware component of the expressjs project. Multer is widely used in Node.js applications to process multipart/form-data, commonly for file uploads. The vulnerability arises from improper handling of malformed multipart requests, which can cause the middleware to enter uncontrolled recursive calls. This recursion leads to a stack overflow condition, resulting in a Denial of Service (DoS) where the affected application crashes or becomes unresponsive. The flaw affects all versions of Multer prior to 2.1.1. The vulnerability can be exploited remotely without any authentication or user interaction, making it highly accessible to attackers. The CVSS v4.0 score is 8.7 (high severity), reflecting the ease of exploitation and the significant impact on availability. No known workarounds exist, and the only remediation is upgrading to Multer version 2.1.1, which contains the patch. Although no active exploits have been reported, the widespread use of Multer in Node.js web applications makes this a critical issue for developers and organizations relying on this middleware for handling file uploads.

Potential Impact

The primary impact of CVE-2026-3520 is a Denial of Service condition caused by stack overflow due to uncontrolled recursion. This can disrupt web services that rely on Multer for handling multipart/form-data, potentially causing application crashes or server unavailability. Organizations running vulnerable versions of Multer risk service interruptions, which can lead to loss of business continuity, degraded user experience, and reputational damage. Since the vulnerability requires no authentication and can be triggered remotely, it increases the attack surface significantly. Attackers could leverage this flaw to launch DoS attacks against critical web applications, including APIs and file upload endpoints, potentially affecting cloud services, SaaS platforms, and enterprise web portals. The lack of known exploits in the wild currently reduces immediate risk, but the high severity and ease of exploitation mean that attackers may develop exploits rapidly once the vulnerability becomes widely known.

Mitigation Recommendations

To mitigate CVE-2026-3520, organizations should immediately upgrade all instances of Multer to version 2.1.1 or later, where the vulnerability is patched. Developers should audit their dependencies to ensure no indirect usage of vulnerable Multer versions exists. Implementing input validation and limiting the size and complexity of multipart requests at the application or web server level can reduce the risk of malformed request exploitation. Employing Web Application Firewalls (WAFs) with rules to detect and block suspicious multipart/form-data patterns may provide additional protection. Monitoring application logs for unusual request patterns or crashes related to multipart handling can help detect attempted exploitation. Finally, organizations should incorporate Multer version checks into their CI/CD pipelines to prevent deployment of vulnerable versions in the future.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
openjs
Date Reserved
2026-03-04T15:27:42.237Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69a85ed2d1a09e29cb4aee03

Added to database: 3/4/2026, 4:33:22 PM

Last enriched: 3/4/2026, 4:47:41 PM

Last updated: 3/4/2026, 6:04:15 PM

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses