CVE-2022-39263
published medium CVSS 3.1 · 6.8NextAuth.js Upstash Adapter missing token verification
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nextauthjs | — | next-auth< 3.0.2 | Affected | Not stated | GitHub_M |
Description
`@next-auth/upstash-redis-adapter` is the Upstash Redis adapter for NextAuth.js, which provides authentication for Next.js. Applications that use `next-auth` Email Provider and `@next-auth/upstash-redis-adapter` before v3.0.2 are affected by this vulnerability. The Upstash Redis adapter implementation did not check for both the identifier (email) and the token, but only checking for the identifier when verifying the token in the email callback flow. An attacker who knows about the victim's email could easily sign in as the victim, given the attacker also knows about the verification token's expired duration. The vulnerability is patched in v3.0.2. A workaround is available. Using Advanced Initialization, developers can check the requests and compare the query's token and identifier before proceeding.
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.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nextauthjs | next-auth | < 3.0.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-287 CWE-287: Improper Authentication
References
2Provider assertions
3GitHub_M · cna
NextAuth.js Upstash Adapter missing token verification
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 16d382fce9e218cab774709852362136e31c3ec0241e955fe5f5d2d35634cf60
- Ingested
- 23 Sep 2026, 08:02:02 UTC
- Source record
- Official CVE record