Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2023-27490
PUBLISHED
More InfoOfficial Page
Assigner-GitHub_M
Assigner Org ID-a0819718-46f1-4df5-94e2-005712e83aaa
View Known Exploited Vulnerability (KEV) details
Published At-09 Mar, 2023 | 20:37
Updated At-25 Feb, 2025 | 14:59
Rejected At-
▼CVE Numbering Authority (CNA)
Missing proper state, nonce and PKCE checks for OAuth authentication in next-auth

NextAuth.js is an open source authentication solution for Next.js applications. `next-auth` applications using OAuth provider versions before `v4.20.1` have been found to be subject to an authentication vulnerability. A bad actor who can read traffic on the victim's network or who is able to social engineer the victim to click a manipulated login link could intercept and tamper with the authorization URL to **log in as the victim**, bypassing the CSRF protection. This is due to a partial failure during a compromised OAuth session where a session code is erroneously generated. This issue has been addressed in version 4.20.1. Users are advised to upgrade. Users unable to upgrade may using Advanced Initialization, manually check the callback request for state, pkce, and nonce against the provider configuration to prevent this issue. See the linked GHSA for details.

Affected Products
Vendor
nextauthjs
Product
next-auth
Versions
Affected
  • < 4.20.1
Problem Types
TypeCWE IDDescription
CWECWE-384CWE-384: Session Fixation
CWECWE-352CWE-352: Cross-Site Request Forgery (CSRF)
Type: CWE
CWE ID: CWE-384
Description: CWE-384: Session Fixation
Type: CWE
CWE ID: CWE-352
Description: CWE-352: Cross-Site Request Forgery (CSRF)
Metrics
VersionBase scoreBase severityVector
3.18.1HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Version: 3.1
Base score: 8.1
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf
x_refsource_CONFIRM
https://authjs.dev/reference/core/providers#checks
x_refsource_MISC
https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/
x_refsource_MISC
https://next-auth.js.org/configuration/initialization#advanced-initialization
x_refsource_MISC
https://next-auth.js.org/configuration/providers/oauth
x_refsource_MISC
https://www.rfc-editor.org/rfc/rfc6749#section-10.12
x_refsource_MISC
https://security.netapp.com/advisory/ntap-20230420-0006/
N/A
Hyperlink: https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf
Resource:
x_refsource_CONFIRM
Hyperlink: https://authjs.dev/reference/core/providers#checks
Resource:
x_refsource_MISC
Hyperlink: https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/
Resource:
x_refsource_MISC
Hyperlink: https://next-auth.js.org/configuration/initialization#advanced-initialization
Resource:
x_refsource_MISC
Hyperlink: https://next-auth.js.org/configuration/providers/oauth
Resource:
x_refsource_MISC
Hyperlink: https://www.rfc-editor.org/rfc/rfc6749#section-10.12
Resource:
x_refsource_MISC
Hyperlink: https://security.netapp.com/advisory/ntap-20230420-0006/
Resource: N/A
▼Authorized Data Publishers (ADP)
1. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf
x_refsource_CONFIRM
x_transferred
https://authjs.dev/reference/core/providers#checks
x_refsource_MISC
x_transferred
https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/
x_refsource_MISC
x_transferred
https://next-auth.js.org/configuration/initialization#advanced-initialization
x_refsource_MISC
x_transferred
https://next-auth.js.org/configuration/providers/oauth
x_refsource_MISC
x_transferred
https://www.rfc-editor.org/rfc/rfc6749#section-10.12
x_refsource_MISC
x_transferred
https://security.netapp.com/advisory/ntap-20230420-0006/
x_transferred
Hyperlink: https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf
Resource:
x_refsource_CONFIRM
x_transferred
Hyperlink: https://authjs.dev/reference/core/providers#checks
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://next-auth.js.org/configuration/initialization#advanced-initialization
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://next-auth.js.org/configuration/providers/oauth
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://www.rfc-editor.org/rfc/rfc6749#section-10.12
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://security.netapp.com/advisory/ntap-20230420-0006/
Resource:
x_transferred
2. CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
Details not found