Is next-auth 1.2 vulnerable?

npm · 1 release from 1.2.1 to 1.2.1 · latest next-auth is 4.24.15 · checked 2 Nov 2026

Yes: 11 known advisories

Yes. next-auth 1.2.1, the last 1.2 release, is affected by 11 known security advisories (1 critical, 3 high, 5 medium, 2 low), including CVE-2022-35924, CVE-2023-27490, CVE-2022-31127. Upgrade to 4.24.15 or later to fix all of them.

Upgrade with:npm install next-auth@4.24.15

Is your project affected?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Advisories affecting next-auth 1.2.1

  • MediumCVE-2026-73419GHSA-x445-f3h2-j27923 Jul 2026

    Auth.js: OAuth state, nonce, and PKCE check cookies are not bound to the provider that created them

    Affected
    >=5.0.0-beta.1 <5.0.0-beta.32 · <4.24.15
    Fixed in
    4.24.15, 5.0.0-beta.32
  • MediumGHSA-5jpx-9hw9-2fx429 Oct 2025

    NextAuthjs Email misdelivery Vulnerability

    Affected
    <4.24.12 · >=5.0.0-beta.0 <5.0.0-beta.30
    Fixed in
    4.24.12, 5.0.0-beta.30
  • MediumCVE-2023-48309GHSA-v64w-49xw-qq8920 Nov 2023

    Possible user mocking that bypasses basic authentication

    Affected
    <4.24.5
    Fixed in
    4.24.5
  • HighCVE-2023-27490GHSA-7r7x-4c4q-c4qf13 Mar 2023

    Missing proper state, nonce and PKCE checks for OAuth authentication

    Affected
    <4.20.1
    Fixed in
    4.20.1
  • LowCVE-2022-31186GHSA-p6mm-27gq-9v3p6 Aug 2022

    next-auth before v4.10.2 and v3.29.9 leaks excessive information into log

    Affected
    <3.29.9 · >=4.0.0 <4.10.2
    Fixed in
    3.29.9, 4.10.2
  • CriticalCVE-2022-35924GHSA-xv97-c62v-45872 Aug 2022

    NextAuth.js before 4.10.3 and 3.29.10 sending verification requests (magic link) to unwanted emails

    Affected
    >=4.0.0 <4.10.3 · <3.29.10
    Fixed in
    3.29.10, 4.10.3
  • HighCVE-2022-31127GHSA-pgjx-7f9g-94636 Jul 2022

    Improper handling of email input

    Affected
    <3.29.8 · >=4.0.0 <4.9.0
    Fixed in
    3.29.8, 4.9.0
  • HighCVE-2022-31093GHSA-g5fm-jp9v-243221 Jun 2022

    Improper Handling of `callbackUrl` parameter in next-auth

    Affected
    <3.29.5 · >=4.0.0 <4.5.0
    Fixed in
    3.29.5, 4.5.0
  • MediumCVE-2022-29214GHSA-q2mx-j4x2-2h7424 May 2022

    URL Redirection to Untrusted Site ('Open Redirect') in next-auth

    Affected
    <3.29.3 · >=4.0.0 <4.3.3
    Fixed in
    3.29.3, 4.3.3
  • MediumCVE-2022-24858GHSA-f9wg-5f46-cjmw22 Apr 2022

    NextAuth.js default redirect callback vulnerable to open redirects

    Affected
    <3.29.2 · >=4.0.0 <4.3.2
    Fixed in
    3.29.2, 4.3.2
  • LowCVE-2021-21310GHSA-pg53-56cg-4m8q11 Feb 2021

    Token verification bug in next-auth

    Affected
    <3.3.0
    Fixed in
    3.3.0

Which of your client projects are still on next-auth 1.2?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact next-auth version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other next-auth versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.