Uh oh!
There was an error while loading. Please reload this page.
chore(deps): update dependency next-auth to v4.24.5 [security] - #32
chore(deps): update dependency next-auth to v4.24.5 [security]#32renovate[bot] wants to merge 1 commit into
Conversation
|
2555180 to
a0b2184Comparea0b2184 to
ac0cbe8Compareac0cbe8 to
8951040Compare8951040 to
1ec5904Compare1ec5904 to
a9539ffComparea9539ff to
b8c7a7bCompareb8c7a7b to
f3e8a5eComparef3e8a5e to
c3d36a3Comparec3d36a3 to
ae4adcaCompareae4adca to
b8a1d85Compareb8a1d85 to
5c09d61Compare5c09d61 to
4c071a8Compare4c071a8 to
e468feeComparee468fee to
3f91c35Compare3f91c35 to
b994288CompareReview the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
b994288 to
16ea509Compare16ea509 to
8ed577bCompare



This PR contains the following updates:
4.23.2→4.24.5Possible user mocking that bypasses basic authentication
CVE-2023-48309 / GHSA-v64w-49xw-qq89
More information
Details
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
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
nextauthjs/next-auth (next-auth)
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
Configuration
📅 Schedule: (UTC)
🚦 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.