Skip to content

🚨 [security] [js] Update multer 1.4.5-lts.1 → 2.0.0 (major)#1183

Closed
depfu[bot] wants to merge 1 commit into
masterfrom
depfu/update/yarn/multer-2.0.0
Closed

🚨 [security] [js] Update multer 1.4.5-lts.1 → 2.0.0 (major)#1183
depfu[bot] wants to merge 1 commit into
masterfrom
depfu/update/yarn/multer-2.0.0

Conversation

@depfu

@depfu depfu Bot commented May 20, 2025

Copy link
Copy Markdown
Contributor

🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ multer (1.4.5-lts.1 → 2.0.0) · Repo · Changelog

Security Advisories 🚨

🚨 Multer vulnerable to Denial of Service via memory leaks from unclosed streams

Impact

Multer <2.0.0 is vulnerable to a resource exhaustion and memory leak issue due to improper stream handling. When the HTTP request stream emits an error, the internal busboy stream is not closed, violating Node.js stream safety guidance.

This leads to unclosed streams accumulating over time, consuming memory and file descriptors. Under sustained or repeated failure conditions, this can result in denial of service, requiring manual server restarts to recover. All users of Multer handling file uploads are potentially impacted.

Patches

Users should upgrade to 2.0.0

Workarounds

None

References

🚨 Multer vulnerable to Denial of Service from maliciously crafted requests

Impact

A vulnerability in Multer versions >=1.4.4-lts.1 allows an attacker to trigger a Denial of Service (DoS) by sending a malformed multi-part upload request. This request causes an unhandled exception, leading to a crash of the process.

Patches

Users should upgrade to 2.0.0

Workarounds

None

References

Commits

See the full diff on Github. The new version differs by 12 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu Bot added the depfu label May 20, 2025
@depfu depfu Bot assigned dvaJi May 20, 2025
@depfu depfu Bot requested a review from dvaJi May 20, 2025 00:06
@depfu

depfu Bot commented Jun 5, 2025

Copy link
Copy Markdown
Contributor Author

Closed in favor of #1184.

@depfu depfu Bot closed this Jun 5, 2025
@depfu depfu Bot deleted the depfu/update/yarn/multer-2.0.0 branch June 5, 2025 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant