p PatchFirst

PatchFirst · Vulnérabilités récentes

Vulnérabilités de next-auth

Vulnérabilité publiée pour next-auth au cours des 30 derniers jours : 0. Dans le catalogue KEV : 0.

Filtrer les vulnérabilités
Effacer les filtres

Vulnérabilités : 14

  1. CVE-2026-73421

    Critique · CVSS 9.1EPSS 0,64%Correctif disponible

    NextAuth.js: Configuration errors can cause existence-based auth checks to fail open (auth object populated with an error)

    NextAuth.js provides authentication for Next.js. From next-auth 5.0.0-beta.0 until 5.0.0-beta.32, applications that gate access by checking only for the existence of the auth object returned by the auth() wrapper can fail open when Auth.js has a server configuration error. In middleware, Route Handlers, React Server Components, and other auth() entry points, a non-OK session response is parsed into a truthy error object instead of null, so checks such as !!auth and if (req.auth) evaluate to true for unauthenticated requests. A provider missing both the issuer and authorization endpoint triggers InvalidEndpoints, and an unset AUTH_SECRET or an

    • Mettez à jour vers 5.0.0-beta.32
    Publication Mise à jour
  2. CVE-2026-73420

    Critique · CVSS 9.1EPSS 0,73%Correctif disponible

    NextAuth.js: Email normalizer validates the address before Unicode normalization, allowing a homoglyph @ bypass

    NextAuth.js provides authentication for Next.js. Prior to @auth/core 0.41.3 and next-auth 4.24.15 and 5.0.0-beta.32, the defaultNormalizer used by the email and magic-link sign-in flow validates an address before applying Unicode normalization. An address can contain a Unicode character such as U+FF20 FULLWIDTH COMMERCIAL AT that is not ASCII at-sign but canonicalizes to an ASCII at-sign under NFKC or NFKD normalization. The address passes the normalizer's single-at-sign check, but a downstream sendVerificationRequest mail library or delivery service that normalizes the address can then see two at-sign separators and deliver the passwordless

    • Mettez à jour vers 4.24.15
    • Mettez à jour vers 5.0.0-beta.32
    Publication Mise à jour
  3. CVE-2026-73419

    Moyenne · CVSS 6.8EPSS 0,25%Correctif disponible

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

    NextAuth.js provides authentication for Next.js. Prior to@auth/core 0.41.3 and next-auth 4.24.15 and 5.0.0-beta.32, Auth.js stores the OAuth/OIDC anti-CSRF checks state, nonce, and the PKCE verifier in global cookies that are not bound to the provider that created them. On callback, a check value minted during a sign-in started with one provider can satisfy the callback for a different provider because the stored cookie is not verified against the callback provider's identity, including the provider ID, issuer, client ID, or redirect URI. In a multi-provider application that permits account linking while logged in, when one provider's authori

    • Mettez à jour vers 4.24.15
    • Mettez à jour vers 5.0.0-beta.32
    Publication Mise à jour
  4. CVE-2026-73418

    Élevée · CVSS 7.5EPSS 0,88%Correctif disponible

    NextAuth.js: getToken() throws an uncaught exception on malformed Bearer authorization headers

    NextAuth.js provides authentication for Next.js. Prior to @auth/core 0.41.3 and next-auth 4.24.15 and 5.0.0-beta.32, the exported getToken() helper in the next-auth/jwt and @auth/core/jwt modules can throw an uncaught exception when it reads a malformed Authorization: Bearer header. When no session cookie is present, getToken() URL-decodes the bearer value before validating it, and malformed percent encoding causes decodeURIComponent() to throw instead of treating the token as invalid. Because getToken() is commonly called in API routes, middleware, and server-side request handlers, a single unauthenticated request can trigger an unhandled ex

    • Mettez à jour vers 4.24.15
    • Mettez à jour vers 5.0.0-beta.32
    Publication Mise à jour
  5. GHSA-5jpx-9hw9-2fx4

    Élevée · CVSS 8.3Correctif disponible

    NextAuthjs Email misdelivery Vulnerability

    ### Summary NextAuth.js's email sign-in can be forced to deliver authentication emails to an attacker-controlled mailbox due to a bug in `nodemailer`'s address parser used by the project (fixed in `nodemailer` **v7.0.7**). A crafted input such as: ``` "[email protected]"@victim.com ``` is parsed incorrectly and results in the message being delivered to `[email protected]` (attacker) instead of `"<[email protected]>@victim.com"` (the intended recipient at `victim.com`) in violation of RFC 5321/5322 semantics. This allows an attacker to receive login/verification links or other sensitive emails intended for the victim. <h2>Affected NextAuthjs Versio

    • Mettez à jour vers 4.24.12
    • Mettez à jour vers 5.0.0-beta.30
    Publication Mise à jour
  6. CVE-2023-48309

    Moyenne · CVSS 5.3EPSS 0,7%Correctif disponible

    next-auth vulnerable to possible user mocking that bypasses basic authentication

    NextAuth.js provides authentication for Next.js. `next-auth` applications prior to version 4.24.5 that rely on the default Middleware authorization are affected by a vulnerability. A bad actor could create an empty/mock user, by getting hold of a NextAuth.js-issued JWT from an interrupted OAuth sign-in flow (state, PKCE or nonce). Manually overriding the `next-auth.session-token` cookie value with this non-related JWT would let the user simulate a logged in user, albeit having no user information associated with it. (The only property on this user is an opaque randomly generated string). This vulnerability does not give access to other users'

    • Mettez à jour vers 4.24.5
    Publication Mise à jour
  7. CVE-2023-27490

    Élevée · CVSS 8.1EPSS 0,54%Correctif disponible

    Missing proper state, nonce and PKCE checks for OAuth authentication in next-auth

    NextAuth.js is an open source authentication solution for Next.js applications. `next-auth` applications using OAuth provider versions before `v4.20.1` have been found to be subject to an authentication vulnerability. A bad actor who can read traffic on the victim's network or who is able to social engineer the victim to click a manipulated login link could intercept and tamper with the authorization URL to **log in as the victim**, bypassing the CSRF protection. This is due to a partial failure during a compromised OAuth session where a session code is erroneously generated. This issue has been addressed in version 4.20.1. Users are advised

    • Mettez à jour vers 4.20.1
    Publication Mise à jour
  8. CVE-2022-35924

    Critique · CVSS 9.1EPSS 1,47%Correctif disponible

    Verification requests (magic link) sent to unwanted emails

    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` c

    • Mettez à jour vers 3.29.10
    • Mettez à jour vers 4.10.3
    Publication Mise à jour
  9. CVE-2022-31186

    Faible · CVSS 3.3EPSS 0,26%Correctif disponible

    Leakage of excessive information into log in next-auth

    NextAuth.js is a complete open source authentication solution for Next.js applications. An information disclosure vulnerability in `next-auth` before `v4.10.2` and `v3.29.9` allows an attacker with log access privilege to obtain excessive information such as an identity provider's secret in the log (which is thrown during OAuth error handling) and use it to leverage further attacks on the system, like impersonating the client to ask for extensive permissions. This issue has been patched in `v4.10.2` and `v3.29.9` by moving the log for `provider` information to the debug level. In addition, we added a warning for having the `debug: true` optio

    • Mettez à jour vers 3.29.9
    • Mettez à jour vers 4.10.2
    Publication Mise à jour
  10. CVE-2022-31127

    Élevée · CVSS 7.1EPSS 1,13%Correctif disponible

    Improper handling of email input in next-auth

    NextAuth.js is a complete open source authentication solution for Next.js applications. An attacker can pass a compromised input to the e-mail [signin endpoint](https://next-auth.js.org/getting-started/rest-api#post-apiauthsigninprovider) that contains some malicious HTML, tricking the e-mail server to send it to the user, so they can perform a phishing attack. Eg.: `[email protected], <a href="http://attacker.com">Before signing in, claim your money!</a>`. This was previously sent to `[email protected]`, and the content of the email containing a link to the attacker's site was rendered in the HTML. This has been remedied in the following relea

    • Mettez à jour vers 3.29.8
    • Mettez à jour vers 4.9.0
    Publication Mise à jour
  11. CVE-2022-31093

    Élevée · CVSS 7.5EPSS 1,75%Correctif disponible

    Improper Handling of `callbackUrl` parameter in next-auth

    NextAuth.js is a complete open source authentication solution for Next.js applications. In affected versions an attacker can send a request to an app using NextAuth.js with an invalid `callbackUrl` query parameter, which internally is converted to a `URL` object. The URL instantiation would fail due to a malformed URL being passed into the constructor, causing it to throw an unhandled error which led to the **API route handler timing out and logging in to fail**. This has been remedied in versions 3.29.5 and 4.5.0. If for some reason you cannot upgrade, the workaround requires you to rely on Advanced Initialization. Please see the documentati

    • Mettez à jour vers 3.29.5
    • Mettez à jour vers 4.5.0
    Publication Mise à jour
  12. CVE-2022-29214

    Moyenne · CVSS 6.1EPSS 0,67%Correctif disponible

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

    NextAuth.js (next-auth) is am open source authentication solution for Next.js applications. Prior to versions 3.29.3 and 4.3.3, an open redirect vulnerability is present when the developer is implementing an OAuth 1 provider. Versions 3.29.3 and 4.3.3 contain a patch for this issue. The maintainers recommend adding a certain configuration to one's `callbacks` option as a workaround for those unable to upgrade.

    • Mettez à jour vers 3.29.3
    • Mettez à jour vers 4.3.3
    Publication Mise à jour
  13. CVE-2022-24858

    Moyenne · CVSS 6.1EPSS 0,79%Correctif disponible

    Default redirect callback vulnerable to open redirects

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

    • Mettez à jour vers 3.29.2
    • Mettez à jour vers 4.3.2
    Publication Mise à jour
  14. CVE-2021-21310

    Moyenne · CVSS 6.1EPSS 1,67%Correctif disponible

    Token verification bug in next-auth

    NextAuth.js (next-auth) is am open source authentication solution for Next.js applications. In next-auth before version 3.3.0 there is a token verification vulnerability. Implementations using the Prisma database adapter in conjunction with the Email provider are impacted. Implementations using the Email provider with the default database adapter are not impacted. Implementations using the Prisma database adapter but not using the Email provider are not impacted. The Prisma database adapter was checking the verification token, but was not verifying the email address associated with that token. This made it possible to use a valid token to sig

    • Mettez à jour vers 3.3.0
    Publication Mise à jour

Vérifiez votre serveur

Comparez votre pile et les versions installées aux bases de vulnérabilités actuelles.

Vérifiez votre serveur →