multer is vulnerable to Denial of Service (DoS)
75
CVE Score
High
Denial of Service (DoS)
multer handles multipart/form-data and passes submitted field names to its append-field dependency, which expands bracket notation such as a[b][c] into nested objects. The parser applies no limit on nesting depth, so a single request with a field name containing tens of thousands of brackets forces allocation of deeply nested structures. This consumes excessive CPU and memory and can render the service unavailable without authentication. The fix adds a fieldNestingDepth limit option that rejects field names whose nesting exceeds the configured depth.
Upgrade the multer library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
1.0.0 - 2.1.1
Fixed in 2.2.0multer is vulnerable to Denial of Service (DoS) in versions 1.0.0 - 2.1.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.