Approved changes feed: RSS · Atom
cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:*part: a version: * update: *
| Vendor | Nextauth.Js (c1626eee-ab71-5ff9-affd-dffd605c2adc) |
|---|---|
| Product | Next Auth (9492f6ab-14b9-595c-84ab-37c274a087ce) |
| Edition | * |
| Language | * |
| Software edition | * |
| Target software | node.js |
| Target hardware | * |
| Other | * |
Notes
Imported from purl2cpe mapping
PURL mappings
| PURL | Source | Last updated |
|---|---|---|
pkg:github/nextauthjs/next-auth |
purl2cpe | 2026-06-01 10:17:56.358487 |
pkg:npm/next-auth |
purl2cpe | 2026-06-01 10:17:56.358490 |
Vulnerability references
| Identifier | cpeApplicability | Submitted | db.gcve.eu details | Rationale |
|---|---|---|---|---|
CVE:CVE-2023-48309 |
vulnerable | 2026-06-08 06:14:26.852246 |
next-auth vulnerable to possible user mocking that bypasses basic authentication
MEDIUM (5.3)
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' data, neither to resources that require proper authorization via scopes or other means. The created mock user has no information associated with it (ie. no name, email, access_token, etc.) This vulnerability can be exploited by bad actors to peek at logged in user states (e.g. dashboard layout). `next-auth` `v4.24.5` contains a patch for the vulnerability. As a workaround, using a custom authorization callback for Middleware, developers can manually do a basic authentication.
Published: 2023-11-20T18:25:01.896Z
Updated: 2024-08-29T13:41:03.796Z Reference links
|
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2023-27490 |
vulnerable | 2026-06-08 05:57:41.710663 |
Missing proper state, nonce and PKCE checks for OAuth authentication in next-auth
HIGH (8.1)
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 to upgrade. Users unable to upgrade may using Advanced Initialization, manually check the callback request for state, pkce, and nonce against the provider configuration to prevent this issue. See the linked GHSA for details.
Published: 2023-03-09T20:37:11.407Z
Updated: 2025-02-25T14:59:02.632Z Reference links
|
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2022-39263 |
vulnerable | 2026-06-08 05:47:18.463772 |
NextAuth.js Upstash Adapter missing token verification
MEDIUM (6.8)
`@next-auth/upstash-redis-adapter` is the Upstash Redis adapter for NextAuth.js, which provides authentication for Next.js. Applications that use `next-auth` Email Provider and `@next-auth/upstash-redis-adapter` before v3.0.2 are affected by this vulnerability. The Upstash Redis adapter implementation did not check for both the identifier (email) and the token, but only checking for the identifier when verifying the token in the email callback flow. An attacker who knows about the victim's email could easily sign in as the victim, given the attacker also knows about the verification token's expired duration. The vulnerability is patched in v3.0.2. A workaround is available. Using Advanced Initialization, developers can check the requests and compare the query's token and identifier before proceeding.
Published: 2022-09-28T21:05:09.000Z
Updated: 2025-04-23T16:54:22.841Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2022-35924 |
vulnerable | 2026-06-08 05:46:05.987235 |
Verification requests (magic link) sent to unwanted emails
CRITICAL (9.1)
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.: `attacker@attacker.com,victim@victim.com`) 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 `attacker@attacker.com,victim@victim.com`. This means that basic authorization like `email.endsWith("@victim.com")` in the `signIn` callback would fail to communicate a threat to the developer and would let the attacker bypass authorization, even with an `@attacker.com` address. This vulnerability has been patched in `v4.10.3` and `v3.29.10` by normalizing the email value that is sent to the sign-in endpoint before accessing it anywhere else. We also added a `normalizeIdentifier` callback on the `EmailProvider` configuration, where you can further tweak your requirements for what your system considers a valid e-mail address. (E.g.: strict RFC2821 compliance). Users are advised to upgrade. There are no known workarounds for this vulnerability. If for some reason you cannot upgrade, you can normalize the incoming request using Advanced Initialization.
Published: 2022-08-02T17:55:13.000Z
Updated: 2025-04-23T17:54:19.705Z Reference links
|
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2022-31127 |
vulnerable | 2026-06-08 05:43:40.249684 |
Improper handling of email input in next-auth
HIGH (7.1)
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.: `balazs@email.com, <a href="http://attacker.com">Before signing in, claim your money!</a>`. This was previously sent to `balazs@email.com`, 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 releases, by simply not rendering that e-mail in the HTML, since it should be obvious to the receiver what e-mail they used: next-auth v3 users before version 3.29.8 are impacted. (We recommend upgrading to v4, as v3 is considered unmaintained. next-auth v4 users before version 4.9.0 are impacted. If for some reason you cannot upgrade, the workaround requires you to sanitize the `email` parameter that is passed to `sendVerificationRequest` and rendered in the HTML. If you haven't created a custom `sendVerificationRequest`, you only need to upgrade. Otherwise, make sure to either exclude `email` from the HTML body or efficiently sanitize it.
Published: 2022-07-06T18:00:16.000Z
Updated: 2025-04-22T17:51:28.600Z Reference links
|
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2022-31093 |
vulnerable | 2026-06-08 05:43:40.140267 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2022-29214 |
vulnerable | 2026-06-08 05:42:47.352705 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2022-24858 |
vulnerable | 2026-06-08 05:41:44.772094 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2021-21310 |
vulnerable | 2026-06-08 05:29:11.594100 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
Contribute
You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.
Inspect record JSON
Open this panel to browse, search, copy or download the JSON record.