Skip to content

fix(deps): update dependency multer to v2 [security]#658

Open
renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
renovate-bot:renovate/npm-multer-vulnerability
Open

fix(deps): update dependency multer to v2 [security]#658
renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
renovate-bot:renovate/npm-multer-vulnerability

Conversation

@renovate-bot
Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
multer ^1.4.1^2.1.1 age confidence

GitHub Vulnerability Alerts

CVE-2026-3304

Impact

A vulnerability in Multer versions < 2.1.0 allows an attacker to trigger a Denial of Service (DoS) by sending malformed requests, potentially causing resource exhaustion.

Patches

Users should upgrade to 2.1.0

Workarounds

None

CVE-2026-2359

Impact

A vulnerability in Multer versions < 2.1.0 allows an attacker to trigger a Denial of Service (DoS) by dropping connection during file upload, potentially causing resource exhaustion.

Patches

Users should upgrade to 2.1.0

Workarounds

None

CVE-2026-3520

Impact

A vulnerability in Multer versions < 2.1.1 allows an attacker to trigger a Denial of Service (DoS) by sending malformed requests, potentially causing stack overflow.

Patches

Users should upgrade to 2.1.1

Workarounds

None

Resources


Release Notes

expressjs/multer (multer)

v2.1.1

Compare Source

v2.1.0

Compare Source

v2.0.2

Compare Source

v2.0.1

Compare Source

v2.0.0

Compare Source

v1.4.4

Compare Source

v1.4.3

Compare Source

  • Bugfix: Avoid deprecated pseudoRandomBytes function (#​774)
  • Docs: Add Português Brazil translation for README (#​758)
  • Docs: Clarify the callback calling convention (#​775)
  • Docs: Add example on how to link to html multipart form (#​580)
  • Docs: Add Spanish translation for README (#​838)
  • Docs: Add Math.random() to storage filename example (#​841)
  • Docs: Fix mistakes in russian doc (#​869)
  • Docs: Improve Português Brazil translation (#​877)
  • Docs: Update var to const in all Readmes (#​1024)
  • Internal: Bump mkdirp version (#​862)
  • Internal: Bump Standard version (#​878)

v1.4.2

Compare Source

  • Docs: Add Russian translation for README (#​662)
  • Docs: Patch zh-CN README base on newest README (#​670)
  • Docs: Fix broken link in Readme (#​679)
  • Docs: Fix broken link in Chinese Readme (#​730)
  • Docs: Fix typo in Russian README (#​738)
  • Docs: Add unit for fieldSize in busboy limit params (#​734)
  • Internal: Make unit tests comaptible with Node.js 13.x (#​752)

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Mar 30, 2026

/gcbrun

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the multer dependency to version 2.1.1. The review feedback points out that this major version upgrade requires a correction in the initialization of the memory storage engine to avoid runtime failures, as the current implementation incorrectly uses a class reference instead of a function call.

"body-parser": "^1.18.3",
"express": "^4.16.4",
"multer": "^1.4.1",
"multer": "^2.1.1",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Upgrading to multer v2.x is a major version bump that introduces breaking changes. The current implementation in bookshelf/lib/images.js (line 77) uses Multer.MemoryStorage, which is incorrect for both v1 and v2. It should be updated to Multer.memoryStorage() (a function call) to correctly initialize the memory storage engine. In v2, passing the class/constructor instead of an instance will cause the middleware to fail during file processing.

Additionally, verify that the deployment environment supports the new minimum Node.js version requirement (10.16.0) mentioned in the release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants