auth0 / auth0-authorization-extension

Auth0 Extension that adds authorization features to your account
https://auth0.com/docs/extensions/authorization-extension/v2
Other
82 stars 55 forks source link

[Snyk] Security upgrade hapi-auth-jwt2 from 7.0.1 to 10.4.0 #348

Open crew-security opened 1 year ago

crew-security 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 - 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") | **671/1000**
**Why?** Recently disclosed, Has a fix available, CVSS 7.7 | Improper Input Validation
[SNYK-JS-JSONWEBTOKEN-3180020](https://snyk.io/vuln/SNYK-JS-JSONWEBTOKEN-3180020) | Yes | No Known Exploit ![critical severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/c.png "critical severity") | **776/1000**
**Why?** Recently disclosed, Has a fix available, CVSS 9.8 | Improper Authentication
[SNYK-JS-JSONWEBTOKEN-3180022](https://snyk.io/vuln/SNYK-JS-JSONWEBTOKEN-3180022) | Yes | No Known Exploit ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **611/1000**
**Why?** Recently disclosed, Has a fix available, CVSS 6.5 | Improper Restriction of Security Token Assignment
[SNYK-JS-JSONWEBTOKEN-3180024](https://snyk.io/vuln/SNYK-JS-JSONWEBTOKEN-3180024) | Yes | No Known Exploit ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **626/1000**
**Why?** Recently disclosed, Has a fix available, CVSS 6.8 | Use of a Broken or Risky Cryptographic Algorithm
[SNYK-JS-JSONWEBTOKEN-3180026](https://snyk.io/vuln/SNYK-JS-JSONWEBTOKEN-3180026) | Yes | No Known Exploit (*) Note that the real score may have changed since the PR was raised.
Commit messages
Package name: hapi-auth-jwt2 The new version differs by 250 commits.
  • 308ea43 Update version of jsonwebtoken to avoid potential security issues https://github.com/dwyl/hapi-auth-jwt2/pull/375
  • dc35688 Update version of jsonwebtoken to avoid potential security issues https://github.com/dwyl/hapi-auth-jwt2/pull/375
  • 160d0d6 manually revert version so npm can handle update #375
  • 2a026ae rename "master" to "main" https://www.bbc.com/news/technology-53050955
  • 1baa513 add "run: npm run lint" to ci.yml to run eslint on GitHub Actions/CI to avoid lint issues in future ...
  • 42087c8 re-enable "run: npm ci" in ci.yml (duh!)
  • 94f9d5a replace "function" with "=>" (arrow functions) to keep prettier happy https://github.com/dwyl/hapi-auth-jwt2/pull/375#issuecomment-1371859575 https://youtu.be/dyihQtBes1I?t=70
  • 9796ba6 update version of eslint & prettier https://github.com/dwyl/hapi-auth-jwt2/pull/375#issuecomment-1371849302
  • 2d12ed3 Merge branch 'v10.3.0' of github.com:dwyl/hapi-auth-jwt2 into v10.3.0
  • e105d37 github being very unhelpful right now ... 🤦
  • 00d7061 remove .travis.yml https://github.com/dwyl/learn-travis/issues/67
  • 50c5e31 Merge branch 'master' into v10.3.0
  • a32773d remove deps badges from README.md as 404 #375
  • a025767 add jsonwebtoken update to CHANGELOG.md #373 #374 #375
  • d5e8a84 comment out "- run: npm ci" in .github/workflows/ci.yml as Missing script: "ci" ...
  • 8889df1 create .github for CI + @ dependabot 🤖
  • 4cd3cae explicitly add package-lock.json to Git for tracking/transparency
  • 2357b17 attempt upgrade to @ hapi/hapi v21.1.0 in devDependencies
  • 0cf2b34 Merge pull request #374 from AntoineAA/update-jwt
  • 5a45986 update jsonwebtoken dependency
  • 379bc10 Merge pull request #362 from brick9527/translate/zh-CN
  • 62ae86b Merge pull request #371 from Arhell/upd
  • db9ca6a update hapijs links
  • b344229 Merge pull request #369 from Arhell/upd
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/auth0-authorization/project/ab207cbf-584e-48c4-b121-927983c5e99f?utm_source=github&utm_medium=referral&page=fix-pr) 🛠 [Adjust project settings](https://app.snyk.io/org/auth0-authorization/project/ab207cbf-584e-48c4-b121-927983c5e99f?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":"da5b5885-f11a-4821-ac39-febb92f5cceb","prPublicId":"da5b5885-f11a-4821-ac39-febb92f5cceb","dependencies":[{"name":"hapi-auth-jwt2","from":"7.0.1","to":"10.4.0"}],"packageManager":"npm","projectPublicId":"ab207cbf-584e-48c4-b121-927983c5e99f","projectUrl":"https://app.snyk.io/org/auth0-authorization/project/ab207cbf-584e-48c4-b121-927983c5e99f?utm_source=github&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-JS-JSONWEBTOKEN-3180020","SNYK-JS-JSONWEBTOKEN-3180022","SNYK-JS-JSONWEBTOKEN-3180024","SNYK-JS-JSONWEBTOKEN-3180026"],"upgrade":["SNYK-JS-JSONWEBTOKEN-3180020","SNYK-JS-JSONWEBTOKEN-3180022","SNYK-JS-JSONWEBTOKEN-3180024","SNYK-JS-JSONWEBTOKEN-3180026"],"isBreakingChange":true,"env":"prod","prType":"fix","templateVariants":["updated-fix-title","priorityScore"],"priorityScoreList":[671,776,611,626]}) --- **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [Use of a Broken or Risky Cryptographic Algorithm](https://learn.snyk.io/lessons/insecure-hash/javascript/?loc=fix-pr)