🚨 [security] [backend] Update mongoose 6.0.8 → 7.5.1 (major) #250
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚨 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?
✳️ mongoose (6.0.8 → 7.5.1) · Repo · Changelog
Security Advisories 🚨
🚨 Mongoose Prototype Pollution vulnerability
🚨 Mongoose Prototype Pollution vulnerability
🚨 Prototype pollution Schema.path in automattic/mongoose
Release Notes
Too many releases to show here. View the full release notes.
Commits
See the full diff on Github. The new version differs by 44 commits:
chore: release 7.5.1Merge pull request #13842 from Automattic/vkarpov15/gh-13839style: fix lintMerge pull request #13716 from Hajjiri/discriminator-update-fixMerge pull request #13822 from pshaddel/mastertest: add test case for #13839Merge pull request #13839 from ZSabakh/patch-1Fixed exception where a null element within an array would be attempted to be populated.Merge pull request #13821 from Automattic/vkarpov15/gh-13715fix: lintcheck types of fields individually in the testuse THydratedDocumentType type for this in instance methodstypes(schematypes): use DocType for method thisdocs(model): replace outdated docs on deprecated `findOneAndUpdate()` `overwrite` optionMerge pull request #13812 from Automattic/dependabot/npm_and_yarn/master/markdownlint-cli2-0.9.2Merge pull request #13811 from Automattic/dependabot/npm_and_yarn/master/mongodb-memory-server-8.15.1Merge pull request #13801 from hasezoey/testCIColorMerge pull request #13804 from Automattic/dependabot/npm_and_yarn/master/babel/preset-env-7.22.14Merge pull request #13808 from Automattic/dependabot/npm_and_yarn/master/tsd-0.29.0fix: remove duplicated 'exists' method in Model interface in models.d.ts (#13818)chore(deps-dev): bump @babel/preset-env from 7.22.9 to 7.22.14chore(deps-dev): bump tsd from 0.28.1 to 0.29.0Merge pull request #13806 from Automattic/dependabot/npm_and_yarn/master/babel/core-7.22.11Merge pull request #13807 from Automattic/dependabot/npm_and_yarn/master/typescript-5.2.2Merge pull request #13814 from Automattic/dependabot/npm_and_yarn/master/eslint-8.48.0Merge pull request #13817 from Automattic/dependabot/github_actions/master/actions/setup-node-3.8.1chore(deps): bump actions/setup-node from 3.7.0 to 3.8.1Merge pull request #13816 from Automattic/dependabot/github_actions/master/actions/checkout-3.6.0chore(deps): bump actions/checkout from 3.5.3 to 3.6.0chore(deps-dev): bump eslint from 8.46.0 to 8.48.0chore(deps-dev): bump markdownlint-cli2 from 0.8.1 to 0.9.2chore(deps-dev): bump mongodb-memory-server from 8.13.0 to 8.15.1chore(deps-dev): bump typescript from 5.1.6 to 5.2.2chore(deps-dev): bump @babel/core from 7.22.9 to 7.22.11Merge pull request #13802 from hasezoey/75mongodbchore(CHANGELOG): add missing entry for mongodb 5.18.1 upgrade for 7.5.0chore(workflows/test): force colorMerge pull request #13798 from RobertHunter-Pluto/update-toObject-docs-with-missing-pathsToSkip-optionMerge pull request #13795 from MohOraby/fix/findOneAndUpdate-no-update-objectadd localize bannerupdate docs to reflect change from commit 760fa73Merge branch 'fix/findOneAndUpdate-no-update-object' of https://github.com/MohOraby/mongoose into fix/findOneAndUpdate-no-update-objectrefactorFix assertion👉 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