cnodejs / nodeclub

:baby_chick:Nodeclub 是使用 Node.js 和 MongoDB 开发的社区系统
http://cnodejs.org/
MIT License
9.34k stars 3.12k forks source link

[Snyk] Security upgrade mongoose from 5.3.8 to 5.13.20 #1159

Closed atian25 closed 5 months ago

atian25 commented 1 year ago

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.

#### Changes included in this PR - Changes to the following files to upgrade the vulnerable dependencies to a fixed version: - package.json #### Vulnerabilities that will be fixed ##### With an upgrade: Severity | Priority Score (*) | Issue | Breaking Change | Exploit Maturity :-------------------------:|-------------------------|:-------------------------|:-------------------------|:------------------------- ![high severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/h.png "high severity") | **798/1000**
**Why?** Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 8.1 | Prototype Pollution
[SNYK-JS-MONGOOSE-5777721](https://snyk.io/vuln/SNYK-JS-MONGOOSE-5777721) | No | Proof of Concept (*) Note that the real score may have changed since the PR was raised.
Commit messages
Package name: mongoose The new version differs by 250 commits.
  • 0f3997a chore: release 5.13.20
  • f1efabf fix: avoid prototype pollution on init
  • 98e0762 chore: release 5.13.19
  • 7e36d21 chore: release 5.13.18
  • 6759c60 undo accidental changes and actually pin @ types/json-schema
  • 4ed4a89 chore: pin version of @ types/json-schema because of install issues on node v4 and v6
  • 9a9536d Merge pull request #13535 from lorand-horvath/patch-12
  • 26424d5 5.x - bump mongodb driver to 3.7.4
  • 4b8b0a9 add versionNumber to 5.x
  • 1bc07ec chore: release 5.13.17
  • 3f827b3 Merge branch '5.x' of github.com:Automattic/mongoose into 5.x
  • eeabe5f chore: run CI tests on ubuntu 20.04 because 18.04 no longer supported
  • 14464d1 Merge pull request #13195 from raj-goguardian/gh-13192
  • 7e888e4 fix(update): handle $and & $or in array filters.
  • 5dd0a4e Merge pull request #13138 from rdeavila94/gh-13136
  • c8191da Update model.indexes.test.js
  • 7364264 Update model.indexes.test.js
  • 77b9d99 Updated the isIndexEqual function to take into account non-text indexes when checking compound indexes that include both text and non-text indexes
  • 9dd82be Merge pull request #13132 from rdeavila94/gh-12654
  • d0e149b Merge pull request #12737 from Automattic/vkarpov15/gh-12654
  • e76c41c chore: release 5.13.16
  • cdab11e chore: remove Node 5 and 7 from CI because GitHub actions is bugging out with them
  • e33a8be fix(types): add missing typedefs for bulkSave() to 5.x
  • 896cd76 Merge pull request #12692 from hasezoey/backportLinkUpdate
See the full diff
Check the changes in this PR to ensure they won't cause issues with your project. ------------ **Note:** *You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.* For more information: 🧐 [View latest project report](https://app.snyk.io/org/node-modules/project/1bdc843d-e951-4861-b813-30fab05a5899?utm_source=github&utm_medium=referral&page=fix-pr) 🛠 [Adjust project settings](https://app.snyk.io/org/node-modules/project/1bdc843d-e951-4861-b813-30fab05a5899?utm_source=github&utm_medium=referral&page=fix-pr/settings) 📚 [Read more about Snyk's upgrade and patch logic](https://support.snyk.io/hc/en-us/articles/360003891078-Snyk-patches-to-fix-vulnerabilities) [//]: # (snyk:metadata:{"prId":"d8ee3073-3210-49e9-a067-743d2f00db0e","prPublicId":"d8ee3073-3210-49e9-a067-743d2f00db0e","dependencies":[{"name":"mongoose","from":"5.3.8","to":"5.13.20"}],"packageManager":"npm","projectPublicId":"1bdc843d-e951-4861-b813-30fab05a5899","projectUrl":"https://app.snyk.io/org/node-modules/project/1bdc843d-e951-4861-b813-30fab05a5899?utm_source=github&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-JS-MONGOOSE-5777721"],"upgrade":["SNYK-JS-MONGOOSE-5777721"],"isBreakingChange":false,"env":"prod","prType":"fix","templateVariants":["updated-fix-title","priorityScore"],"priorityScoreList":[798],"remediationStrategy":"vuln"}) --- **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [Prototype Pollution](https://learn.snyk.io/lesson/prototype-pollution/?loc=fix-pr)