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-2021-21310

6.1 · MEDIUM
Published Feb 11, 2021 nextauth.js CWE-290 EPSS 1.67% (75th pctl)

Overview

CVE-2021-21310 is a medium-severity vulnerability affecting nextauth.js next-auth. It was published on February 11, 2021 and has a CVSS 3.1 base score of 6.1 (MEDIUM).

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

Technical Description

NextAuth.js (next-auth) is am open source authentication solution for Next.js applications. In next-auth before version 3.3.0 there is a token verification vulnerability. Implementations using the Prisma database adapter in conjunction with the Email provider are impacted. Implementations using the Email provider with the default database adapter are not impacted. Implementations using the Prisma database adapter but not using the Email provider are not impacted. The Prisma database adapter was checking the verification token, but was not verifying the email address associated with that token. This made it possible to use a valid token to sign in as another user when using the Prima adapter in conjunction with the Email provider. This issue is specific to the community supported Prisma adapter. This issue is fixed in version 3.3.0.

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.3.0 Affected

Frequently Asked Questions

What is CVE-2021-21310?

CVE-2021-21310 is a medium-severity vulnerability affecting nextauth.js next-auth. It was published on February 11, 2021 and has a CVSS 3.1 base score of 6.1 (MEDIUM).

How severe is CVE-2021-21310?

This vulnerability has a CVSS 3.1 base score of 6.1, 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-2021-21310?

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-2021-21310?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-21310 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.