patchminder
No public exploit found CVE-2022-39263

Authentication bypassin NextAuth.js next-auth.

Published 28 Sep 2022 · Updated 23 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Medium 6.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.7% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 3.0.2 or later
In plain words

`@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.

What to do now
  • Upgrade next-auth to 3.0.2 or later.
  • Upgrade @next-auth/upstash-redis-adapter (npm) to 3.0.2 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
next-auth
before 3.0.2
3.0.2
CVE record
@next-auth/upstash-redis-adapter (npm)
before 3.0.2
3.0.2
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 2 Sep 2022
    CVE ID reserved by GitHub_M.
  2. 28 Sep 2022
    Published in the CVE List.
  3. 23 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

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.

Related

Other next-auth vulnerabilities

Same weakness: Improper authentication

All CWE-287 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-39263: Authentication bypass in NextAuth.js next-auth. https://patchminder.com/cve/cve-2022-39263/ (accessed 5 December 2026).