GHSA-v64w-49xw-qq89 · Severity: medium · Ecosystem: npm — 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' 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.
Conclusion & alert: CVE-2023-48309 is rated Low Risk (39.6/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 0.29%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2025-11-06 | 0.22% | 0.29% | +0.07% |
| 2 | 2025-05-20 | 0.28% | 0.22% | -0.05% |
| 3 | 2025-03-30 | — | 0.28% | — |
Full EPSS history (10 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.3 | 3.1 | MEDIUM |
|
3.9 | 1.4 | [email protected] |
| 5.3 | 3.1 | MEDIUM |
|
3.9 | 1.4 | [email protected] |
GHSA-v64w-49xw-qq89 · Severity: medium · Ecosystem: npm — Possible user mocking that bypasses basic authentication
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| nextauth.js | next-auth | < 4.24.5 | cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://authjs.dev/guides/basics/role-based-access-control | Technical Description |
| https://github.com/nextauthjs/next-auth/commit/d237059b6d0cb868c041ba18b698e0cee20a2f10 | Patch |
| https://github.com/nextauthjs/next-auth/security/advisories/GHSA-v64w-49xw-qq89 | Vendor Advisory |
| https://next-auth.js.org/configuration/nextjs#advanced-usage | Technical Description |
| https://next-auth.js.org/configuration/nextjs#middlewar | Technical Description |