yurikrupnik / mussia8

Mussia8 base project monorepo poc for api gateway
alfred-lake.vercel.app
MIT License
0 stars 0 forks source link

[Snyk] Security upgrade mongoose from 5.13.7 to 5.13.20 #355

Open yurikrupnik opened 11 months ago

yurikrupnik commented 11 months 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: - packages/service1/package.json - packages/service1/package-lock.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 105 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/yurikrupnik-plq/project/965fa52a-ca1e-4637-8a88-f3ba9260fd36?utm_source=github&utm_medium=referral&page=fix-pr) 🛠 [Adjust project settings](https://app.snyk.io/org/yurikrupnik-plq/project/965fa52a-ca1e-4637-8a88-f3ba9260fd36?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":"88cc9566-2131-4331-901c-5009753b56d6","prPublicId":"88cc9566-2131-4331-901c-5009753b56d6","dependencies":[{"name":"mongoose","from":"5.13.7","to":"5.13.20"}],"packageManager":"npm","projectPublicId":"965fa52a-ca1e-4637-8a88-f3ba9260fd36","projectUrl":"https://app.snyk.io/org/yurikrupnik-plq/project/965fa52a-ca1e-4637-8a88-f3ba9260fd36?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)
secure-code-warrior-for-github[bot] commented 11 months ago

Micro-Learning Topic: Prototype pollution (Detected by phrase)

Matched on "Prototype Pollution"

What is this? (2min video)

By adding or modifying attributes of an object prototype, it is possible to create attributes that exist on every object, or replace critical attributes with malicious ones. This can be problematic if the software depends on existence or non-existence of certain attributes, or uses pre-defined attributes of object prototype (such as hasOwnProperty, toString or valueOf).

Try a challenge in Secure Code Warrior