🚨 [security] [node] Update multer 1.4.5-lts.1 → 2.0.2 (major)
Welcome to Depfu 👋
This is one of the first three pull requests with dependency updates we've sent your way. We tried to start with a few easy patch-level updates. Hopefully your tests will pass and you can merge this pull request without too much risk. This should give you an idea how Depfu works in general.
After you merge your first pull request, we'll send you a few more. We'll never open more than seven PRs at the same time so you're not getting overwhelmed with updates.
Let us know if you have any questions. Thanks so much for giving Depfu a try!
🚨 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.2) · Repo · Changelog
Security Advisories 🚨
🚨 Multer vulnerable to Denial of Service via unhandled exception from malformed request
Impact
A vulnerability in Multer versions >= 1.4.4-lts.1, < 2.0.2 allows an attacker to trigger a Denial of Service (DoS) by sending a malformed request. This request causes an unhandled exception, leading to a crash of the process.
Patches
Users should upgrade to
2.0.2Workarounds
None
🚨 Multer vulnerable to Denial of Service via unhandled exception
Impact
A vulnerability in Multer versions >=1.4.4-lts.1, <2.0.1 allows an attacker to trigger a Denial of Service (DoS) by sending an upload file request with an empty string field name. This request causes an unhandled exception, leading to a crash of the process.
Patches
Users should upgrade to
2.0.1Workarounds
None
References
🚨 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
busboystream 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.0Workarounds
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.0Workarounds
None
References
Release Notes
2.0.1
Important
What's Changed
- add Arabic translation for README .. by @3imed-jaberi in #762
- Update README.md to fix issue #1114 by @Mohamed-Abdelfattah in #1169
- Improved documentation translation to Spanish by @juliomontenegro in #1174
- Translated to french by @AlanLg in #1182
- Improve the Brazilian Portuguese translation by @vitorRibeiro7 in #1204
- doc: uzbek language by @eugene0928 in #1232
- Fix a mistake with README-pt-br.md by @Igor-CA in #1251
- Update in Readme-pt-br and fix in Readme-ko by @carlosstenzel in #1252
- chore: add support for OSSF scorecard reporting by @inigomarquinez in #1260
- ci: replace travis with github action by @inigomarquinez in #1259
- docs: improve readability by @Sreejit-Sengupto in #1255
- test: add test for out-of-band error event by @LinusU in #1294
- chore: upgrade scorecard workflow pinned action versions by @carpasse in #1290
- Documentation: remove unfortunate abbreviation from readme by @MaddyGuthridge in #1299
- ci: use
ubuntu-latestas default runner by @UlisesGascon in #1308- ci: add CodeQL (SAST) by @bjohansebas in #1289
- Update readme badges by @bjohansebas in #1268
- 📝 fix changelog information by @ctcpip in #1316
- master -> v2 by @ctcpip in #1317
- chore: fix typo by @saucecodee in #993
- Remove --save from README by @username1001 in #929
- feat - update link badge in docs by @carlosstenzel in #1273
- ci: change branch reference by @UlisesGascon in #1319
- ♻️ use version tag for CI, fix CI badge, fix references to master/main by @ctcpip in #1324
- deps: update dependencies to latest versions by @bjohansebas in #1328
- 📝 list languages in table to prevent GH right-aligning list due to RTL language by @ctcpip in #1325
- [StepSecurity] Apply security best practices by @step-security-bot in #1311
New Contributors
- @3imed-jaberi made their first contribution in #762
- @Mohamed-Abdelfattah made their first contribution in #1169
- @juliomontenegro made their first contribution in #1174
- @AlanLg made their first contribution in #1182
- @vitorRibeiro7 made their first contribution in #1204
- @eugene0928 made their first contribution in #1232
- @Igor-CA made their first contribution in #1251
- @inigomarquinez made their first contribution in #1260
- @Sreejit-Sengupto made their first contribution in #1255
- @carpasse made their first contribution in #1290
- @MaddyGuthridge made their first contribution in #1299
- @saucecodee made their first contribution in #993
- @username1001 made their first contribution in #929
- @step-security-bot made their first contribution in #1311
Full Changelog: v2.0.0...v.2.0.1
2.0.0
Important
- Breaking change: The minimum supported Node version is now 10.16.0
- Fix CVE-2025-47935 (GHSA-44fp-w29j-9vj5)
- Fix CVE-2025-47944 (GHSA-4pg4-qvpc-4q3h)
What's Changed
- 🐛 drain stream. fixes regression in node 18, remove old CI, set minimum node version, fix readme badges, add .npmrc
- fix: handle two busboy error events
- ♻️ fully drain stream
- 🥅 explicitly handle req error
- 🚨 lint:fix
- ⬆️ bump mocha
- docs: include release 2.0.0 details
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 2 commits:
↗️ concat-stream (indirect, 1.6.2 → 2.0.0) · Repo
Commits
See the full diff on Github. The new version differs by 2 commits:
🗑️ core-util-is (removed)
🗑️ isarray (removed)
🗑️ process-nextick-args (removed)
👉 No CI detected
You don't seem to have any Continuous Integration service set up!
Without a service that will test the Depfu branches and pull requests, we can't inform you if incoming updates actually work with your app. We think that this degrades the service we're trying to provide down to a point where it is more or less meaningless.
This is fine if you just want to give Depfu a quick try. If you want to really let Depfu help you keep your app up-to-date, we recommend setting up a CI system:
* [Circle CI](https://circleci.com), [Semaphore ](https://semaphoreci.com) and [Github Actions](https://docs.github.com/actions) are all excellent options. * If you use something like Jenkins, make sure that you're using the Github integration correctly so that it reports status data back to Github. * If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with `depfu/`.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)