{"id":"EUVD-2023-3038","revision":"5a46569cdaed42ea95be7e1f40115575","records":[{"revision":"5a46569cdaed42ea95be7e1f40115575","observedAt":"2026-10-31T20:10:22.061+00:00","statement":{"source":"euvd","id":"EUVD-2023-3038","aliases":["CVE-2023-48309","GHSA-v64w-49xw-qq89"],"title":"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 hol…","description":"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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"severity":null}],"references":["https://github.com/nextauthjs/next-auth/security/advisories/GHSA-v64w-49xw-qq89","https://github.com/nextauthjs/next-auth/commit/d237059b6d0cb868c041ba18b698e0cee20a2f10","https://authjs.dev/guides/basics/role-based-access-control","https://next-auth.js.org/configuration/nextjs#advanced-usage","https://next-auth.js.org/configuration/nextjs#middlewar"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-3038","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Nov 20, 2023, 6:25:01 PM","dateUpdated":"Aug 29, 2024, 1:41:03 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2023-3038","identifiers":["EUVD-2023-3038","CVE-2023-48309","GHSA-v64w-49xw-qq89"]},"retained":false,"historicalAffected":[]}],"coverage":[]}