SCA: security update for next-auth (GHSA-xv97-c62v-4587)

critical Tenable Self-Hosted Container Security Plugin ID 420676

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. `next-auth` users
who are using the `EmailProvider` either in versions before `4.10.3` or `3.29.10` are affected. If an
attacker could forge a request that sent a comma-separated list of emails (eg.:
`[email protected],[email protected]`) to the sign-in endpoint, NextAuth.js would send emails to both
the attacker and the victim's e-mail addresses. The attacker could then login as a newly created user with
the email being `[email protected],[email protected]`. This means that basic authorization like
`email.endsWith("@victim.com")` in the `signIn` callback would fail to communicate a threat to the
developer and would let the attacker bypass authorization, even with an `@attacker.com` address. This
vulnerability has been patched in `v4.10.3` and `v3.29.10` by normalizing the email value that is sent to
the sign-in endpoint before accessing it anywhere else. We also added a `normalizeIdentifier` callback on
the `EmailProvider` configuration, where you can further tweak your requirements for what your system
considers a valid e-mail address. (E.g.: strict RFC2821 compliance). Users are advised to upgrade. There
are no known workarounds for this vulnerability. If for some reason you cannot upgrade, you can normalize
the incoming request using Advanced Initialization. (CVE-2022-35924)

See Also

https://github.com/advisories/GHSA-xv97-c62v-4587

Plugin Details

Severity: Critical

ID: 420676

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

Percentile: 53.04

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: High

Base Score: 9.4

Temporal Score: 7

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

CVSS Score Source: CVE-2022-35924

CVSS v3

Risk Factor: Critical

Base Score: 9.1

Temporal Score: 7.9

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

Vulnerability Publication Date: 8/2/2022

Reference Information

CVE: CVE-2022-35924