SCA: security update for next-auth (GHSA-v64w-49xw-qq89)

medium Tenable Cloud Security Plugin ID 419107

Description

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

- NextAuth.js provides authentication for Next.js. `next-auth` applications prior to version 4.24.5 that
rely on the default Middleware authorization are affected by a vulnerability. A bad actor could create an
empty/mock user, by getting hold of a NextAuth.js-issued JWT from an interrupted OAuth sign-in flow
(state, PKCE or nonce). Manually overriding the `next-auth.session-token` cookie value with this non-
related JWT would let the user simulate a logged in user, albeit having no user information associated
with it. (The only property on this user is an opaque randomly generated string). This vulnerability does
not give access to other users' data, neither to resources that require proper authorization via scopes or
other means. The created mock user has no information associated with it (ie. no name, email,
access_token, etc.) This vulnerability can be exploited by bad actors to peek at logged in user states
(e.g. dashboard layout). `next-auth` `v4.24.5` contains a patch for the vulnerability. As a workaround,
using a custom authorization callback for Middleware, developers can manually do a basic authentication.
(CVE-2023-48309)

See Also

https://github.com/advisories/GHSA-v64w-49xw-qq89

Plugin Details

Severity: Medium

ID: 419107

Version: Revision 1.8

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: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

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

CVSS Score Source: CVE-2023-48309

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.6

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

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 11/20/2023

Vulnerability Publication Date: 11/20/2023

Reference Information

CVE: CVE-2023-48309

cwe: CWE-285