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: 4.6 [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]
CVE-ID: CVE-2022-31093
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

next-auth

How to mitigate CVE-2022-31093

Install security update from vendor's website.

next-auth - addressed in versions 3.29.5, 4.5.0

External References

Related Security Bulletins