# CVE-2026-73421: NextAuth.js: Configuration errors can cause existence-based auth checks to fail open (auth object populated with an error)

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.64% (percentile 45, 2026-11-28)
- **CWE:** CWE-285, CWE-636
- **Aliases:** GHSA-8fpg-xm3f-6cx3
- **Published:** 2026-07-23T14:52:23.000Z
- **Modified:** 2026-09-18T20:05:53.723Z

## 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

## 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

- npm `next-auth`: affected \>= 5.0.0-beta.0, \< 5.0.0-beta.32; fixed 5.0.0-beta.32 (osv)
- nextauthjs next-auth: \>= 5.0.0-beta.4, \< 5.0.0-beta.32 (cvelist)

## Mitigation

- Upgrade next-auth to 5.0.0-beta.32 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-28).

### 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.

## References

- vendor: <https://github.com/nextauthjs/next-auth/security/advisories/GHSA-8fpg-xm3f-6cx3>
- patch: <https://github.com/nextauthjs/next-auth/commit/d008b9b764bf4b322a87e1822d1dda7789258d8f>
- other: <https://github.com/nextauthjs/next-auth/releases/tag/next-auth@5.0.0-beta.32>
- other: <https://github.com/nextauthjs/next-auth>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-73421>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-8fpg-xm3f-6cx3> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-73421> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-73421>
