- 8.1HighCVSS base score
- 0.54%Exploitation in 30 daysEPSS · top 54% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 8 days later
· 8 days later
Published
- 24 months later
· 24 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.54% · top 54% of all CVEs (12 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.1.
Affected products
- affected < 4.20.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmnext-authGHSA-7r7x-4c4q-c4qf (opens in a new tab)
References
References7
- https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://authjs.dev/reference/core/providers#checks (opens in a new tab)x_refsource_MISCx_transferred
- https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/ (opens in a new tab)x_refsource_MISCx_transferred
- https://next-auth.js.org/configuration/initialization#advanced-initialization (opens in a new tab)x_refsource_MISCx_transferred
- https://next-auth.js.org/configuration/providers/oauth (opens in a new tab)x_refsource_MISCx_transferred
- https://www.rfc-editor.org/rfc/rfc6749#section-10.12 (opens in a new tab)x_refsource_MISCx_transferred
- https://security.netapp.com/advisory/ntap-20230420-0006/ (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-0931 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-7r7x-4c4q-c4qf (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-27490)Record last updated .