From b925b9271e45009cecce2a34c55be2a466f0fa2a Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 30 Sep 2022 11:39:53 +0000 Subject: [PATCH] fix: package.json & yarn.lock to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-NEXTAUTH-3035577 --- package.json | 2 +- yarn.lock | 24 +++++++++++++++++------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index db686b1..2bac9d0 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "luxon": "^2.4.0", "next": "11.1.4", "next-absolute-url": "^1.2.2", - "next-auth": "^4.3.4", + "next-auth": "^4.12.0", "react": "17.0.2", "react-css-collapse": "^4.1.0", "react-datepicker": "^4.8.0", diff --git a/yarn.lock b/yarn.lock index 8980267..1c8b637 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3511,6 +3511,11 @@ cookie@^0.4.1: resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432" integrity sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA== +cookie@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b" + integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== + core-js-pure@^3.20.2: version "3.21.1" resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.21.1.tgz#8c4d1e78839f5f46208de7230cebfb72bc3bdb51" @@ -5670,11 +5675,16 @@ jest@27.4.5: import-local "^3.0.2" jest-cli "^27.4.5" -jose@^4.1.4, jose@^4.3.7: +jose@^4.1.4: version "4.6.1" resolved "https://registry.yarnpkg.com/jose/-/jose-4.6.1.tgz#241472ff928c79b2e2e2fe4c1056b3085384ec42" integrity sha512-EFnufEivlIB6j7+JwaenYQzdUDs/McajDr9WnhT6EI0WxbexnfuZimpWX1GnobF6OnQsUFmWFXUXdWyZHWdQow== +jose@^4.9.3: + version "4.10.0" + resolved "https://registry.yarnpkg.com/jose/-/jose-4.10.0.tgz#2e0b7bcc80dd0775f8a4588e55beb9460c37d60a" + integrity sha512-KEhB/eLGLomWGPTb+/RNbYsTjIyx03JmbqAyIyiXBuNSa7CmNrJd5ysFhblayzs/e/vbOPMUaLnjHUMhGp4yLw== + "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -6196,15 +6206,15 @@ next-absolute-url@^1.2.2: resolved "https://registry.yarnpkg.com/next-absolute-url/-/next-absolute-url-1.2.2.tgz#9aba5adcee8effcffd63271d99e13213ad04c23b" integrity sha512-Z2+LZXQTthhw2je9u4eq8QWXxXd57a6b54x9exBfQX4Dct6YxaMjcXZWNLHd9AOlCue84EsMpdSGP7wACqUnPg== -next-auth@^4.3.4: - version "4.3.4" - resolved "https://registry.yarnpkg.com/next-auth/-/next-auth-4.3.4.tgz#7b241e34e1f68632768cef8ee289e33256cb2b19" - integrity sha512-8dGkNicbxY2BYsJq4uOJIEsGt39wXj5AViTBsVfbRQqtAFmZmXYHutf90VBmobm8rT2+Xl60HDUTkuVVK+x+xw== +next-auth@^4.12.0: + version "4.12.2" + resolved "https://registry.yarnpkg.com/next-auth/-/next-auth-4.12.2.tgz#fc665dfde1b53783e4f275fb218bd6ccce935245" + integrity sha512-B25iFUIKYa2pRMWRFPIQWv84WJydqIsv6EbriNuzqNSZnxnlmpsrmJrTeMMLf+9a3qf9FG8enxDmDntmwnBkDQ== dependencies: "@babel/runtime" "^7.16.3" "@panva/hkdf" "^1.0.1" - cookie "^0.4.1" - jose "^4.3.7" + cookie "^0.5.0" + jose "^4.9.3" oauth "^0.9.15" openid-client "^5.1.0" preact "^10.6.3"