Input validation error in next-auth - CVE-2022-31093

 

Input validation error in next-auth - CVE-2022-31093

Published: June 20, 2022 / Updated: July 21, 2026


Vulnerability identifier: #VU138944
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2022-31093
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available
Affected software:
next-auth

Detailed vulnerability description

The vulnerability allows a remote attacker to redirect users to an arbitrary URL.

The vulnerability exists due to improper input validation in the callbackUrl parameter handling when processing authentication requests. A remote attacker can supply a crafted callbackUrl value to redirect users to an arbitrary URL.


How to mitigate CVE-2022-31093

Install security update from vendor's website.

Sources