CVE-2022-39263

Published on: Not Yet Published

Last Modified on: 09/30/2022 07:54:00 PM UTC

CVE-2022-39263 - advisory for GHSA-4rxr-27mm-mxq9

Source: Mitre Source: NIST CVE.ORG Print: PDF PDF
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Certain versions of Nextauth from Next-auth contain the following vulnerability:

`@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.

  • CVE-2022-39263 has been assigned by URL Logo [email protected] to track the vulnerability - currently rated as HIGH severity.
  • Affected Vendor/Software: URL Logo nextauthjs - next-auth version < 3.0.2

CVSS3 Score: 8.1 - HIGH

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
NETWORK HIGH NONE NONE
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
UNCHANGED HIGH HIGH HIGH

CVE References

Description Tags Link
Missing token verification in Upstash Adapter · Advisory · nextauthjs/next-auth · GitHub github.com
text/html
URL Logo CONFIRM github.com/nextauthjs/next-auth/security/advisories/GHSA-4rxr-27mm-mxq9
fix(adapters): check token during email verification in Upstash Adapt… · nextauthjs/[email protected] · GitHub github.com
text/html
URL Logo MISC github.com/nextauthjs/next-auth/commit/d16e04848ee703cf797724194d4ad2907fe125a9

Exploit/POC from Github

This repository contains a collection of data files on known Common Vulnerabilities and Exposures (CVEs). Each file i…

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
ApplicationNext-authNextauthAllAllAllAll
  • cpe:2.3:a:next-auth:nextauth:*:*:*:*:*:node.js:*:*:

Social Mentions

Source Title Posted (UTC)
Twitter Icon @CVEreport CVE-2022-39263 : `@next-auth/upstash-redis-adapter` is the Upstash Redis adapter for NextAuth.js, which provides au… twitter.com/i/web/status/1… 2022-09-28 21:11:48
Reddit Logo Icon /r/netcve CVE-2022-39263 2022-09-28 22:38:19
© CVE.report 2023 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report