p PatchFirst

PatchFirst · Vulnerabilidades recientes

Vulnerabilidades de next-auth

Vulnerabilidades publicadas para next-auth en los últimos 30 días: 0. Incluidas en el catálogo KEV: 0.

Filtrar vulnerabilidades
Borrar filtros

Vulnerabilidades: 14

  1. CVE-2026-73421

    Crítica · CVSS 9.1EPSS 0,64%Corrección 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

    • Actualiza a 5.0.0-beta.32
    Publicación Actualización
  2. CVE-2026-73420

    Crítica · CVSS 9.1EPSS 0,73%Corrección 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

    • Actualiza a 4.24.15
    • Actualiza a 5.0.0-beta.32
    Publicación Actualización
  3. CVE-2026-73419

    Media · CVSS 6.8EPSS 0,25%Corrección 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

    • Actualiza a 4.24.15
    • Actualiza a 5.0.0-beta.32
    Publicación Actualización
  4. CVE-2026-73418

    Alta · CVSS 7.5EPSS 0,88%Corrección 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

    • Actualiza a 4.24.15
    • Actualiza a 5.0.0-beta.32
    Publicación Actualización
  5. GHSA-5jpx-9hw9-2fx4

    Alta · CVSS 8.3Corrección 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

    • Actualiza a 4.24.12
    • Actualiza a 5.0.0-beta.30
    Publicación Actualización
  6. CVE-2023-48309

    Media · CVSS 5.3EPSS 0,7%Corrección 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'

    • Actualiza a 4.24.5
    Publicación Actualización
  7. CVE-2023-27490

    Alta · CVSS 8.1EPSS 0,54%Corrección 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

    • Actualiza a 4.20.1
    Publicación Actualización
  8. CVE-2022-35924

    Crítica · CVSS 9.1EPSS 1,47%Corrección 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

    • Actualiza a 3.29.10
    • Actualiza a 4.10.3
    Publicación Actualización
  9. CVE-2022-31186

    Baja · CVSS 3.3EPSS 0,26%Corrección 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

    • Actualiza a 3.29.9
    • Actualiza a 4.10.2
    Publicación Actualización
  10. CVE-2022-31127

    Alta · CVSS 7.1EPSS 1,13%Corrección 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

    • Actualiza a 3.29.8
    • Actualiza a 4.9.0
    Publicación Actualización
  11. CVE-2022-31093

    Alta · CVSS 7.5EPSS 1,75%Corrección 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

    • Actualiza a 3.29.5
    • Actualiza a 4.5.0
    Publicación Actualización
  12. CVE-2022-29214

    Media · CVSS 6.1EPSS 0,67%Corrección 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.

    • Actualiza a 3.29.3
    • Actualiza a 4.3.3
    Publicación Actualización
  13. CVE-2022-24858

    Media · CVSS 6.1EPSS 0,79%Corrección 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`.

    • Actualiza a 3.29.2
    • Actualiza a 4.3.2
    Publicación Actualización
  14. CVE-2021-21310

    Media · CVSS 6.1EPSS 1,67%Corrección 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

    • Actualiza a 3.3.0
    Publicación Actualización

Comprueba tu servidor

Compara tu pila y las versiones instaladas con las bases actuales de vulnerabilidades.

Comprueba tu servidor →