CVE-2022-39263
CVE-2022-39263 is a medium-severity vulnerability in Nextauth.js Next-auth with a CVSS 3.x base score of 6.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-287.
Key facts
- Severity: Medium (CVSS 3.x base score 6.8)
- EPSS exploit prediction: 1% (44th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-287
- Affected product: Nextauth.js Next-auth
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2022-39263?
- `@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.
- How severe is CVE-2022-39263?
- CVE-2022-39263 has a CVSS 3.x base score of 6.8, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability none.
- Is CVE-2022-39263 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (44th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-39263?
- CVE-2022-39263 affects Nextauth.js Next-auth. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2022-39263?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2022-39263 published?
- CVE-2022-39263 was published on 2022-09-28 and last updated on 2026-06-17.
References
- https://github.com/nextauthjs/next-auth/commit/d16e04848ee703cf797724194d4ad2907fe125a9
- https://github.com/nextauthjs/next-auth/security/advisories/GHSA-4rxr-27mm-mxq9
Affected products (1)
- cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:*
More vulnerabilities in Nextauth.js Next-auth
- CVE-2022-35924 — Critical (CVSS 9.1): NextAuth.js is a complete open source authentication solution for Next.js applications. `next-auth` users who are using…
- CVE-2023-27490 — High (CVSS 8.1): NextAuth.js is an open source authentication solution for Next.js applications. `next-auth` applications using OAuth…
- CVE-2022-31093 — High (CVSS 7.5): NextAuth.js is a complete open source authentication solution for Next.js applications. In affected versions an…
- CVE-2022-31127 — High (CVSS 7.1): NextAuth.js is a complete open source authentication solution for Next.js applications. An attacker can pass a…
- CVE-2022-29214 — Medium (CVSS 6.1): NextAuth.js (next-auth) is am open source authentication solution for Next.js applications. Prior to versions 3.29.3…
- CVE-2022-24858 — Medium (CVSS 6.1): next-auth v3 users before version 3.29.2 are impacted. next-auth version 4 users before version 4.3.2 are also…
All CVEs affecting Nextauth.js Next-auth →
Other CWE-287 (Improper Authentication) vulnerabilities
- CVE-2026-45480 — Critical (CVSS 10.0): Improper authentication in Azure Active Directory allows an unauthorized attacker to elevate privileges over a network.
- CVE-2026-46389 — Critical (CVSS 10.0): UDS Identity Config builds the Keycloak configuration image (realm, plugins, theme, truststore, JARs) consumed by UDS…
- CVE-2026-10611 — Critical (CVSS 10.0): An authentication bypass vulnerability exists in MISP when LDAP mixed authentication is enabled with OTP enforcement.…
- CVE-2026-47280 — Critical (CVSS 10.0): Improper authentication in Azure Resource Manager (ARM) allows an unauthorized attacker to elevate privileges over a…
- CVE-2026-42822 — Critical (CVSS 10.0): Improper authentication in Azure Local Disconnected Operations allows an unauthorized attacker to elevate privileges…
- CVE-2026-20182 — Critical (CVSS 10.0): May 2026: This security advisory provides the details and fix information for a vulnerability that was discovered and…
Browse all CWE-287 (Improper Authentication) vulnerabilities →