# CVE-2022-39263: NextAuth.js Upstash Adapter missing token verification

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-02)
- Published: 2022-09-28T21:05:09.000Z
- Modified: 2026-06-17T04:58:01.683Z
- Also known as: GHSA-4rxr-27mm-mxq9
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- nextauthjs next-auth: < 3.0.2
- @next-auth/upstash-redis-adapter (npm): before 3.0.2
- nextauth.js next-auth: before 3.0.2

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/nextauthjs/next-auth/security/advisories/GHSA-4rxr-27mm-mxq9> (mitigation, patch, third-party-advisory, web)
- <https://github.com/nextauthjs/next-auth/commit/d16e04848ee703cf797724194d4ad2907fe125a9> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39263> (advisory)
- <https://github.com/nextauthjs/next-auth> (package)

## Sources

- CVE List: [CVE-2022-39263](https://www.cve.org/CVERecord?id=CVE-2022-39263), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-4rxr-27mm-mxq9](https://github.com/advisories/GHSA-4rxr-27mm-mxq9), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-39263](https://nvd.nist.gov/vuln/detail/CVE-2022-39263), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39263 · Whole record: https://cve.day/CVE-2022-39263.json · Rebuilt by cve.day 2026-11-25T22:58:15.361Z
