CVE-2026-73421
NextAuth.js: Configuration errors can cause existence-based auth checks to fail open (auth object populated with an error)
Also known as GHSA-8fpg-xm3f-6cx3
Mitigation
- Upgrade next-auth to 5.0.0-beta.32 or later.
Who should check
- Projects that depend on npm package next-auth (>= 5.0.0-beta.0, < 5.0.0-beta.32)
- Anyone running nextauthjs next-auth >= 5.0.0-beta.4, < 5.0.0-beta.32
Vulnerability facts
- Affected
- next-auth >= 5.0.0-beta.0, < 5.0.0-beta.32
- Fixed in
- 5.0.0-beta.32
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.1 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.64% chance of exploitation in 30 days (percentile 45, 2026-11-26)
- CWE
- CWE-285, CWE-636
- Modified
Description
NextAuth.js provides authentication for Next.js. From next-auth 5.0.0-beta.0 until 5.0.0-beta.32, applications that gate access by checking only for the existence of the auth object returned by the auth() wrapper can fail open when Auth.js has a server configuration error. In middleware, Route Handlers, React Server Components, and other auth() entry points, a non-OK session response is parsed into a truthy error object instead of null, so checks such as !!auth and if (req.auth) evaluate to true for unauthenticated requests. A provider missing both the issuer and authorization endpoint triggers InvalidEndpoints, and an unset AUTH_SECRET or another server configuration error can produce the same behavior. There is no impact while configuration is valid, but after a deployment becomes misconfigured, routes protected only by session existence silently grant access to every visitor. This issue is fixed in next-auth 5.0.0-beta.32.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm next-auth | >= 5.0.0-beta.0, < 5.0.0-beta.32 | 5.0.0-beta.32 | osv |
| nextauthjs next-auth | >= 5.0.0-beta.4, < 5.0.0-beta.32 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-73421. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-73421.md Affected: next-auth >= 5.0.0-beta.0, < 5.0.0-beta.32 Fixed in: 5.0.0-beta.32 Steps: 1. Search this machine and project for next-auth (npm), nextauthjs next-auth: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2026-73421 being exploited?
There is no confirmed exploitation: CVE-2026-73421 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.64% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-73421?
Critical: CVSS 9.1 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-73421?
next-auth >= 5.0.0-beta.0, < 5.0.0-beta.32.
Is there a fix for CVE-2026-73421?
Yes. Fixed in 5.0.0-beta.32. Upgrade next-auth to 5.0.0-beta.32 or later.
How do I check if I'm affected by CVE-2026-73421?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.