CVE & CISA-KEV Catalog

CVE-2023-48309

MEDIUM
5.3
CVSS v3
NVD

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.

How to fix

Remediation Available
next-authNVD
Affected:< 4.24.5Fixed in:4.24.5CVE-2023-48309derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityNone
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Exploit Intelligence

0.70%probability of exploitation in 30 days
49thpercentile

Moderate risk: more likely to be exploited than 49% of all known CVEs.

References

Vendor Advisory1

Related Vulnerabilities

Other CWE-285 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-29927Critical9.1100%-Fix
CVE-2021-28799Critical10.078%KEV + RansomFix
CVE-2023-32707High8.874%-Fix
CVE-2023-48241High7.573%-Fix
CVE-2023-22480High7.367%-Fix
CVE-2022-3229Critical9.866%--
Embed a live status badge for CVE-2023-48309
CVE-2023-48309 severity badge

Markdown

[![CVE-2023-48309](https://tridentstack.com/cve/badge/CVE-2023-48309.svg)](https://tridentstack.com/cve/CVE-2023-48309)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-48309"><img src="https://tridentstack.com/cve/badge/CVE-2023-48309.svg" alt="CVE-2023-48309"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.