Skip to main content
← All vulnerabilities
CVE-2022-24858GHSA-F9WG-5F46-CJMW

Default redirect callback vulnerable to open redirects

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.3.2, 3.29.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

next-auth v3 users before version 3.29.2 are impacted. next-auth version 4 users before version 4.3.2 are also impacted. Upgrading to 3.29.2 or 4.3.2 will patch this vulnerability. If you are not able to upgrade for any reason, you can add a configuration to your callbacks option. If you already have a `redirect` callback, make sure that you match the incoming `url` origin against the `baseUrl`.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • nextauthjs next-auth

    fixed in 4.3.2

  • next-authnpm

    fixed in 3.29.2

  • next-authnpm

    From 4.0.0 · fixed in 4.3.2

References 3

GitHub · nextauthjs/next-auth

next-auth.js.org