rithinch / event-driven-microservices-docker-example

🐳 Simple example of event driven communication between microservices, based on Docker containers, Docker Compose and RabbitMQ. Microservices are implemented in Node.js using Koa.
MIT License
248 stars 84 forks source link

[Snyk] Security upgrade koa-router from 7.4.0 to 11.0.2 #58

Open rithinch opened 9 months ago

rithinch commented 9 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: - services/authentication/package.json - services/authentication/package-lock.json #### Vulnerabilities that will be fixed ##### With an upgrade: Severity | Priority Score (*) | Issue | Breaking Change | Exploit Maturity :-------------------------:|-------------------------|:-------------------------|:-------------------------|:------------------------- ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **539/1000**
**Why?** Has a fix available, CVSS 6.5 | Improper Input Validation
[SNYK-JS-URIJS-1055003](https://snyk.io/vuln/SNYK-JS-URIJS-1055003) | Yes | No Known Exploit ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **479/1000**
**Why?** Has a fix available, CVSS 5.3 | Improper Input Validation
[SNYK-JS-URIJS-1078286](https://snyk.io/vuln/SNYK-JS-URIJS-1078286) | Yes | No Known Exploit ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **586/1000**
**Why?** Proof of Concept exploit, Has a fix available, CVSS 5.3 | Open Redirect
[SNYK-JS-URIJS-1319803](https://snyk.io/vuln/SNYK-JS-URIJS-1319803) | Yes | Proof of Concept ![high severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/h.png "high severity") | **579/1000**
**Why?** Has a fix available, CVSS 7.3 | Prototype Pollution
[SNYK-JS-URIJS-1319806](https://snyk.io/vuln/SNYK-JS-URIJS-1319806) | Yes | No Known Exploit ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **586/1000**
**Why?** Proof of Concept exploit, Has a fix available, CVSS 5.3 | Open Redirect
[SNYK-JS-URIJS-2401466](https://snyk.io/vuln/SNYK-JS-URIJS-2401466) | Yes | Proof of Concept ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **586/1000**
**Why?** Proof of Concept exploit, Has a fix available, CVSS 5.3 | Improper Input Validation
[SNYK-JS-URIJS-2415026](https://snyk.io/vuln/SNYK-JS-URIJS-2415026) | Yes | Proof of Concept ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **586/1000**
**Why?** Proof of Concept exploit, Has a fix available, CVSS 5.3 | Open Redirect
[SNYK-JS-URIJS-2419067](https://snyk.io/vuln/SNYK-JS-URIJS-2419067) | Yes | Proof of Concept ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **646/1000**
**Why?** Proof of Concept exploit, Has a fix available, CVSS 6.5 | Misinterpretation of Input
[SNYK-JS-URIJS-2440699](https://snyk.io/vuln/SNYK-JS-URIJS-2440699) | Yes | Proof of Concept ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **591/1000**
**Why?** Proof of Concept exploit, Has a fix available, CVSS 5.4 | Cross-site Scripting (XSS)
[SNYK-JS-URIJS-2441239](https://snyk.io/vuln/SNYK-JS-URIJS-2441239) | Yes | Proof of Concept (*) Note that the real score may have changed since the PR was raised.
Commit messages
Package name: koa-router The new version differs by 91 commits.
  • 8fe1d54 11.0.1
  • d2ad849 feat: allow set router host match (#156)
  • 54a3198 11.0.0
  • fdf7117 chore: drop node 12 from tests
  • d0c6d8b feat: require node >= 12, modernize, bump deps
  • 68253f6 fix(lib/test/doc): fix jsdoc and typo (#146)
  • c6a8fc8 feat: add `exclusive` option (#129)
  • 3454a7d doc: add comma for better understanding (#145)
  • 13a634d Support symbols as route names (#143)
  • 6ba3efa feat(deps): update minimal version from 8 -> 12 (#152)
  • 6db0e68 feat(default-params): replace || cond with default params (#153)
  • 6aca720 Improve path checking before route registration (#155)
  • 4fb50ac improve doc for prefix method. (#151)
  • 65414f4 * update deps (#150)
  • 1aead99 doc: add header to refer to api reference. (#112)
  • 05fe8dd Include type installation instructions in README (#134)
  • 5cec6fb Replace user with ctx.user in param docs (#136)
  • 90dd73c 10.1.1
  • 904db98 Correct @ hapi/boom usage example (#128)
  • fa48560 10.1.0
  • e9fa04b Fix additional entry inejcted to params (#124)
  • 344ba0b 10.0.0
  • 89b7c02 Allow router.redirect() to accept external destinations (#110)
  • 56735f0 v9.4.0
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/rithinch/project/d6229fd1-2b3a-4ead-bc15-65dbf8f73da0?utm_source=github&utm_medium=referral&page=fix-pr) 🛠 [Adjust project settings](https://app.snyk.io/org/rithinch/project/d6229fd1-2b3a-4ead-bc15-65dbf8f73da0?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":"57e2c9a5-a1cd-4ea3-b90f-0a0f8eb71d28","prPublicId":"57e2c9a5-a1cd-4ea3-b90f-0a0f8eb71d28","dependencies":[{"name":"koa-router","from":"7.4.0","to":"11.0.2"}],"packageManager":"npm","projectPublicId":"d6229fd1-2b3a-4ead-bc15-65dbf8f73da0","projectUrl":"https://app.snyk.io/org/rithinch/project/d6229fd1-2b3a-4ead-bc15-65dbf8f73da0?utm_source=github&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-JS-URIJS-1055003","SNYK-JS-URIJS-1078286","SNYK-JS-URIJS-1319803","SNYK-JS-URIJS-1319806","SNYK-JS-URIJS-2401466","SNYK-JS-URIJS-2415026","SNYK-JS-URIJS-2419067","SNYK-JS-URIJS-2440699","SNYK-JS-URIJS-2441239"],"upgrade":["SNYK-JS-URIJS-1055003","SNYK-JS-URIJS-1078286","SNYK-JS-URIJS-1319803","SNYK-JS-URIJS-1319806","SNYK-JS-URIJS-2401466","SNYK-JS-URIJS-2415026","SNYK-JS-URIJS-2419067","SNYK-JS-URIJS-2440699","SNYK-JS-URIJS-2441239"],"isBreakingChange":true,"env":"prod","prType":"fix","templateVariants":["updated-fix-title","priorityScore"],"priorityScoreList":[539,479,586,579,586,586,586,646,591],"remediationStrategy":"vuln"}) --- **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [Improper Input Validation](https://learn.snyk.io/lesson/improper-input-validation/?loc=fix-pr) 🦉 [Open Redirect](https://learn.snyk.io/lesson/open-redirect/?loc=fix-pr) 🦉 [Prototype Pollution](https://learn.snyk.io/lesson/prototype-pollution/?loc=fix-pr) 🦉 [More lessons are available in Snyk Learn](https://learn.snyk.io/?loc=fix-pr)
sonarcloud[bot] commented 9 months ago

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud