SCA: security update for next-auth (GHSA-g5fm-jp9v-2432)

high Tenable Cloud Security Plugin ID 414891

Description

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

- NextAuth.js is a complete open source authentication solution for Next.js applications. In affected
versions an attacker can send a request to an app using NextAuth.js with an invalid `callbackUrl` query
parameter, which internally is converted to a `URL` object. The URL instantiation would fail due to a
malformed URL being passed into the constructor, causing it to throw an unhandled error which led to the
**API route handler timing out and logging in to fail**. This has been remedied in versions 3.29.5 and
4.5.0. If for some reason you cannot upgrade, the workaround requires you to rely on Advanced
Initialization. Please see the documentation for more. (CVE-2022-31093)

See Also

https://github.com/advisories/GHSA-g5fm-jp9v-2432

Plugin Details

Severity: High

ID: 414891

Version: Revision 1.7

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

Percentile: 23.18

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

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

CVSS Score Source: CVE-2022-31093

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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: 6/21/2022

Vulnerability Publication Date: 6/21/2022

Reference Information

CVE: CVE-2022-31093

cwe: CWE-754