{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-73421","id":"CVE-2026-73421","title":"NextAuth.js: Configuration errors can cause existence-based auth checks to fail open (auth object populated with an error)","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 int","descriptionLong":"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.","published":"2026-08-13T22:04:36.985Z","updated":"2026-10-28T02:30:32.091810328Z","reserved":"2026-08-12T14:32:11.795Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":9.1,"vector":"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","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"4.0","score":9.1,"vector":"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","rating":"critical","source":"GitHub_M"},{"version":"4.0","score":9.1,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"critical","source":"github.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"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","rating":"critical","source":"GitHub"}],"rating":"critical","products":["nextauthjs next-auth"],"affectedProducts":[{"vendor":"nextauthjs","product":"next-auth","defaultStatus":null,"versions":[{"version":">= 5.0.0-beta.4, < 5.0.0-beta.32","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"next-auth","purl":"pkg:npm/next-auth","ranges":[">=5.0.0-beta.0 <5.0.0-beta.32"],"fixed":["5.0.0-beta.32"],"advisory":"GHSA-8fpg-xm3f-6cx3"}],"cwes":["CWE-285","CWE-636"],"aliases":["GHSA-8fpg-xm3f-6cx3"],"references":[{"url":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-8fpg-xm3f-6cx3","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/nextauthjs/next-auth/commit/d008b9b764bf4b322a87e1822d1dda7789258d8f","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth@5.0.0-beta.32","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73421.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73421","tags":["advisory"]},{"url":"https://github.com/nextauthjs/next-auth","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00643,"epssPercentile":0.5177,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-73421","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73421","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-73421","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-8fpg-xm3f-6cx3","ok":true,"note":"GHSA-8fpg-xm3f-6cx3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-73421","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}