8.8
HIGH
CVE-2023-27490
NextAuth.js OAuth Authentication Bypass
Description

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.

INFO

Published Date :

March 9, 2023, 9:15 p.m.

Last Modified :

April 20, 2023, 9:15 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

2.8
Affected Products

The following products are affected by CVE-2023-27490 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Nextauth.js next-auth

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-27490 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-27490 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Apr. 20, 2023

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20230420-0006/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Mar. 16, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type https://authjs.dev/reference/core/providers#checks No Types Assigned https://authjs.dev/reference/core/providers#checks Product
    Changed Reference Type https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/ No Types Assigned https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/ Not Applicable
    Changed Reference Type https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf No Types Assigned https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf Exploit, Vendor Advisory
    Changed Reference Type https://next-auth.js.org/configuration/initialization#advanced-initialization No Types Assigned https://next-auth.js.org/configuration/initialization#advanced-initialization Product
    Changed Reference Type https://next-auth.js.org/configuration/providers/oauth No Types Assigned https://next-auth.js.org/configuration/providers/oauth Product
    Changed Reference Type https://www.rfc-editor.org/rfc/rfc6749#section-10.12 No Types Assigned https://www.rfc-editor.org/rfc/rfc6749#section-10.12 Not Applicable
    Added CPE Configuration OR *cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:* versions up to (excluding) 4.20.1
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-27490 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.32 }} 0.03%

score

0.70636

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability