CVE-2021-21310
published medium CVSS 3.1 · 6.1Token verification bug in next-auth
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nextauthjs | — | next-auth< 3.3.0 | Affected | Not stated | GitHub_M |
Description
NextAuth.js (next-auth) is am open source authentication solution for Next.js applications. In next-auth before version 3.3.0 there is a token verification vulnerability. Implementations using the Prisma database adapter in conjunction with the Email provider are impacted. Implementations using the Email provider with the default database adapter are not impacted. Implementations using the Prisma database adapter but not using the Email provider are not impacted. The Prisma database adapter was checking the verification token, but was not verifying the email address associated with that token. This made it possible to use a valid token to sign in as another user when using the Prima adapter in conjunction with the Email provider. This issue is specific to the community supported Prisma adapter. This issue is fixed in version 3.3.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nextauthjs | next-auth | < 3.3.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-290 CWE-290: Authentication Bypass by Spoofing
References
3Provider assertions
2GitHub_M · cna
Token verification bug in next-auth
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 232f304c8113636f1f49a66b869aca432baa571906c8ca9522ae75551cee189d
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record