-
-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): update dependency next-auth to v4.24.12 [security] #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
develop
Choose a base branch
from
renovate/npm-next-auth-vulnerability
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d75adee to
75bf17d
Compare
75bf17d to
8745b62
Compare
b51af22 to
0fb67a5
Compare
0fb67a5 to
9f18ab7
Compare
9f18ab7 to
54481ce
Compare
54481ce to
1ed7858
Compare
1ed7858 to
848131d
Compare
848131d to
1f798a1
Compare
1f798a1 to
79d07ae
Compare
79d07ae to
481dfdd
Compare
481dfdd to
0679fde
Compare
53b3682 to
05128e6
Compare
05128e6 to
30232f6
Compare
30232f6 to
8c03856
Compare
8c03856 to
2d5c1d1
Compare
2d5c1d1 to
19ba7e1
Compare
19ba7e1 to
ccd4a4b
Compare
ccd4a4b to
c6285d6
Compare
c6285d6 to
204ce1f
Compare
204ce1f to
2b9b09a
Compare
2b9b09a to
0559422
Compare
0559422 to
92a2222
Compare
92a2222 to
8029413
Compare
8029413 to
21bace9
Compare
21bace9 to
090cf35
Compare
090cf35 to
9345b35
Compare
9345b35 to
1667916
Compare
1667916 to
1cb02bc
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.18.7→4.24.12GitHub Vulnerability Alerts
CVE-2023-48309
Impact
next-authapplications prior to version 4.24.5 that rely on the default Middleware authorization are affected.A bad actor could create an empty/mock user, by getting hold of a NextAuth.js-issued JWT from an interrupted OAuth sign-in flow (state, PKCE or nonce).
Manually overriding the
next-auth.session-tokencookie value with this non-related JWT would let the user simulate a logged in user, albeit having no user information associated with it. (The only property on this user is an opaque randomly generated string).This vulnerability does not give access to other users' data, neither to resources that require proper authorization via scopes or other means. The created mock user has no information associated with it (ie. no name, email, access_token, etc.)
This vulnerability can be exploited by bad actors to peek at logged in user states (e.g. dashboard layout).
Note: Regardless of the vulnerability, the existence of a NextAuth.js session state can provide simple authentication, but not authorization in your applications. For role-based access control, you can check out our guide.
Patches
We patched the vulnerability in
next-authv4.24.5. To upgrade, run one of the following:Workarounds
Upgrading to
latestis the recommended way to fix this issue. However, using a custom authorization callback for Middleware, developers can manually do a basic authentication:References
GHSA-5jpx-9hw9-2fx4
Summary
NextAuth.js's email sign-in can be forced to deliver authentication emails to an attacker-controlled mailbox due to a bug in
nodemailer's address parser used by the project (fixed innodemailerv7.0.7). A crafted input such as:is parsed incorrectly and results in the message being delivered to
e@attacker.com(attacker) instead of"<e@attacker.com>@​victim.com"(the intended recipient atvictim.com) in violation of RFC 5321/5322 semantics. This allows an attacker to receive login/verification links or other sensitive emails intended for the victim.Affected NextAuthjs Version
POC
Example Setup showing misdelivery of email
Mitigation
Update to nodemailer 7.0.7
Credits
https://zeropath.com/ Helped identify this security issue
Release Notes
nextauthjs/next-auth (next-auth)
v4.24.12Compare Source
v4.24.11Compare Source
v4.24.10Compare Source
What's Changed
490a033Full Changelog: https://github.com/nextauthjs/next-auth/compare/next-auth@4.24.9...next-auth@4.24.10
v4.24.9Compare Source
What's Changed
awaitdynamic APIs as per Next.js 15 changes by @balazsorban44 in4d143c5New Contributors
Full Changelog: https://github.com/nextauthjs/next-auth/compare/next-auth@4.24.8...next-auth@4.24.9
v4.24.8Compare Source
What's Changed
identifier@auth/*-adaptersfor v4 by @balazsorban44 in #11562New Contributors
Full Changelog: https://github.com/nextauthjs/next-auth/compare/next-auth@4.24.7...next-auth@4.24.8
v4.24.7Compare Source
Others
v4.24.6Compare Source
Bugfixes
nodemailerimports (#9261) (fa287be)v4.24.5Compare Source
Bugfixes
v4.24.4Compare Source
Bugfixes
v4.24.3Compare Source
Bugfixes
v4.24.2Compare Source
Bugfixes
v4.24.1Compare Source
Bugfixes
v4.24.0Compare Source
Features
v4.23.2Compare Source
Bugfixes
redirect: falsefor route handler (#8775) (27b2519)d813c00)?from signIn URL (#8466)Other
v4.23.1Compare Source
Bugfixes
next-auth/adapters(20c3fe3)defaultsubmodules export inpackage.json(#8330)v4.23.0Compare Source
Features
5a8aa2e)Bugfixes
05ff6ae)v4.22.5Compare Source
Bugfixes
next-auth/adapter&@auth/core/adapters(3b0128c)Other
v4.22.4Compare Source
Bugfixes
465644f)getServerSession(#8108)res.end()in api handler (#8244)Other
getServerSessionunstable_getServerSessionv4.22.3Compare Source
Full Changelog: https://github.com/nextauthjs/next-auth/compare/next-auth@4.22.2...next-auth@4.22.3
v4.22.2Compare Source
Bugfixes
nodemailer/required types (#7950) (f48eb04)bd37c55)169a523)Other
v4.22.1Bugfixes
instanceof Requestcheck fails (#7303)Other
b481048)a220245)next-authfromv4tomain(#7265)v4.21.1Compare Source
Bugfixes
sessioncallback type changes (#7136) (ec8a343)v4.21.0Compare Source
Features
Bugfixes
8aa1789)86d031f)idinupdateUseras always defined (319f2ce)Other
v4.20.1Compare Source
Full Changelog: https://github.com/nextauthjs/next-auth/compare/next-auth@4.20.0...next-auth@4.20.1
v4.20.0Compare Source
What's Changed
getServerSidePropsby @ChinonsoIg in #6589enginesrequirement onopenid-clientby @balazsorban44 in #6654NEXTAUTH_URL_INTERNALby @ThangHuuVu in #6814New Contributors
Full Changelog: https://github.com/nextauthjs/next-auth/compare/next-auth@4.19.2...next-auth@4.20.0
v4.19.2Compare Source
What's Changed
Full Changelog: https://github.com/nextauthjs/next-auth/compare/next-auth@4.19.1...next-auth@4.19.2
v4.19.1Compare Source
What's Changed
unstablenote. by @OrJDev in #6537unstable_getServerSessionby @joulev in #6560New Contributors
Full Changelog: https://github.com/nextauthjs/next-auth/compare/next-auth@4.19.0...next-auth@4.19.1
v4.19.0Compare Source
What's Changed
oauth_token_secretin #6534unstable_prefixgetServerSessionin #6535generateSessionTokenawaitable in #6536Full Changelog: https://github.com/nextauthjs/next-auth/compare/next-auth@4.18.10...next-auth@4.19.0
v4.18.10Compare Source
Full Changelog: https://github.com/nextauthjs/next-auth/compare/next-auth@4.18.9...next-auth@4.18.10
v4.18.9Compare Source
Bugfixes
f54424c)nullfor Azure AD (09bcc1d)v4.18.8Compare Source
What's Changed
docusaurus.config.jssettings (v4) #6160NextAuthcorrectly #6206Full Changelog: https://github.com/nextauthjs/next-auth/compare/next-auth@v4.18.7...next-auth@4.18.8
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.