Skip to main content

Next Auth CVE-2023-48309

MEDIUM
Improper Authorization (CWE-285)
2023-11-20 security-advisories@github.com
5.3
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

1
CVE Published
Nov 20, 2023 - 19:15 nvd
MEDIUM 5.3

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 15 npm packages depend on next-auth (11 direct, 6 indirect)

Ecosystem-wide dependent count for version 4.24.5.

DescriptionNVD

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.

AnalysisAI

NextAuth.js provides authentication for Next.js. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity.

Technical ContextAI

This vulnerability is classified under CWE-285. 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. Affected products include: Nextauth.Js Next-Auth. Version information: version 4.24.5.

RemediationAI

A vendor patch is available. Apply the latest security update as soon as possible. Apply vendor patches when available. Implement network segmentation and monitoring as interim mitigations.

CVE-2023-27490 HIGH POC
8.8 Mar 09

NextAuth.js is an open source authentication solution for Next.js applications. Rated high severity (CVSS 8.8), this vul

CVE-2022-31127 MEDIUM POC
6.1 Jul 06

NextAuth.js is a complete open source authentication solution for Next.js applications. Rated medium severity (CVSS 6.1)

CVE-2021-21310 MEDIUM POC
5.9 Feb 11

NextAuth.js (next-auth) is am open source authentication solution for Next.js applications. Rated medium severity (CVSS

CVE-2022-35924 CRITICAL
9.1 Aug 02

NextAuth.js is a complete open source authentication solution for Next.js applications. Rated critical severity (CVSS 9.

CVE-2022-39263 HIGH
8.1 Sep 28

`@next-auth/upstash-redis-adapter` is the Upstash Redis adapter for NextAuth.js, which provides authentication for Next.

CVE-2026-73418 HIGH
7.5 Aug 12

Denial of service in NextAuth.js's getToken() helper allows unauthenticated remote attackers to crash any API route, mid

CVE-2022-31093 HIGH
7.5 Jun 27

NextAuth.js is a complete open source authentication solution for Next.js applications. Rated high severity (CVSS 7.5),

CVE-2026-73419 MEDIUM
6.8 Aug 12

Provider-confusion in NextAuth.js (next-auth and @auth/core) allows an attacker to link their own OAuth identity at a ta

CVE-2022-29214 MEDIUM
6.1 May 21

NextAuth.js (next-auth) is am open source authentication solution for Next.js applications. Rated medium severity (CVSS

CVE-2022-24858 MEDIUM
6.1 Apr 19

next-auth v3 users before version 3.29.2 are impacted. Rated medium severity (CVSS 6.1), this vulnerability is remotely

CVE-2022-31186 LOW
3.3 Aug 01

NextAuth.js is a complete open source authentication solution for Next.js applications. Rated low severity (CVSS 3.3), t

Share

CVE-2023-48309 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy