SCA: security update for @next-auth/upstash-redis-adapter (GHSA-4rxr-27mm-mxq9)

high Tenable Self-Hosted Container Security Plugin ID 410386

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

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

See Also

https://github.com/advisories/GHSA-4rxr-27mm-mxq9

Plugin Details

Severity: High

ID: 410386

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.12

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.6

Temporal Score: 5.6

Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2022-39263

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.1

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 9/30/2022

Vulnerability Publication Date: 9/28/2022

Reference Information

CVE: CVE-2022-39263

cwe: CWE-287