Vulnerability Name: | CVE-2021-21310 (CCN-196982) | ||||||||||||
Assigned: | 2020-12-22 | ||||||||||||
Published: | 2021-02-10 | ||||||||||||
Updated: | 2021-02-19 | ||||||||||||
Summary: | 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. | ||||||||||||
CVSS v3 Severity: | 5.9 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N) 5.2 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C)
6.4 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C)
| ||||||||||||
CVSS v2 Severity: | 4.3 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:P/I:N/A:N)
| ||||||||||||
Vulnerability Type: | CWE-290 | ||||||||||||
Vulnerability Consequences: | Bypass Security | ||||||||||||
References: | Source: MITRE Type: CNA CVE-2021-21310 Source: XF Type: UNKNOWN nextauth-cve202121310-sec-bypass(196982) Source: MISC Type: Third Party Advisory https://github.com/nextauthjs/next-auth/releases/tag/v3.3.0 Source: CCN Type: NextAuth.js GIT Repository Insecure email token verification in Prisma adapter Source: CONFIRM Type: Exploit, Third Party Advisory https://github.com/nextauthjs/next-auth/security/advisories/GHSA-pg53-56cg-4m8q Source: CCN Type: NPM Web site next-auth Source: MISC Type: Product, Third Party Advisory https://www.npmjs.com/package/next-auth | ||||||||||||
Vulnerable Configuration: | Configuration 1:![]() | ||||||||||||
BACK |