Authentication bypassin NextAuth.js next-auth.
No public exploit found; not on exploited lists.
`@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.
- Upgrade next-auth to 3.0.2 or later.
- Upgrade @next-auth/upstash-redis-adapter (npm) to 3.0.2 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 2 Sep 2022CVE ID reserved by GitHub_M.
- 28 Sep 2022Published in the CVE List.
- 23 Apr 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other next-auth vulnerabilities
Same weakness: Improper authentication
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
Patchminder. CVE-2022-39263: Authentication bypass in NextAuth.js next-auth. https://patchminder.com/cve/cve-2022-39263/ (accessed 5 December 2026).