Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-39263

6.8 · MEDIUM
Published Sep 28, 2022 nextauth.js CWE-287 EPSS 0.62% (47th pctl)

Overview

CVE-2022-39263 is a medium-severity vulnerability affecting nextauth.js next-auth. It was published on September 28, 2022 and has a CVSS 3.1 base score of 6.8 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 6.8, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from nextauth.js. Update next-auth to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
nextauth.js next-auth >= 0, < 3.0.2 Affected

Frequently Asked Questions

What is CVE-2022-39263?

CVE-2022-39263 is a medium-severity vulnerability affecting nextauth.js next-auth. It was published on September 28, 2022 and has a CVSS 3.1 base score of 6.8 (MEDIUM).

How severe is CVE-2022-39263?

This vulnerability has a CVSS 3.1 base score of 6.8, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2022-39263?

Check the references section for vendor advisories and patches from nextauth.js. Update next-auth to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-39263?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-39263 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.