CVE-2026-73418
NextAuth.js: getToken() throws an uncaught exception on malformed Bearer authorization headers
Also known as GHSA-xmf8-cvqr-rfgj
Mitigation
- Upgrade @auth/core to 0.41.3 or later.
- Upgrade next-auth to one of 5.0.0-beta.32, 4.24.15 (or later in the same release line).
Who should check
- Projects that depend on npm package @auth/core (>= 0.1.0, < 0.41.3)
- Projects that depend on npm package next-auth (>= 5.0.0-beta.0, < 5.0.0-beta.32)
- Anyone running nextauthjs next-auth >= 4.0.6, <= 4.24.14; >= 5.0.0-beta.0, <= 5.0.0-beta.31
- Anyone running @auth core >= 0.1.0, < 0.41.3
Vulnerability facts
- Affected
- @auth/core >= 0.1.0, < 0.41.3; next-auth >= 5.0.0-beta.0, < 5.0.0-beta.32
- Fixed in
- 0.41.3, 5.0.0-beta.32, 4.24.15
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.88% chance of exploitation in 30 days (percentile 57, 2026-11-26)
- CWE
- CWE-20, CWE-248
- Modified
Description
NextAuth.js provides authentication for Next.js. Prior to @auth/core 0.41.3 and next-auth 4.24.15 and 5.0.0-beta.32, the exported getToken() helper in the next-auth/jwt and @auth/core/jwt modules can throw an uncaught exception when it reads a malformed Authorization: Bearer header. When no session cookie is present, getToken() URL-decodes the bearer value before validating it, and malformed percent encoding causes decodeURIComponent() to throw instead of treating the token as invalid. Because getToken() is commonly called in API routes, middleware, and server-side request handlers, a single unauthenticated request can trigger an unhandled exception in code paths that authenticate requests, causing a per-request denial of service without exposing tokens, sessions, or other data and without bypassing authentication. This issue is fixed in @auth/core 0.41.3 and next-auth 4.24.15 and 5.0.0-beta.32.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @auth/core | >= 0.1.0, < 0.41.3 | 0.41.3 | osv |
| npm next-auth | >= 5.0.0-beta.0, < 5.0.0-beta.32 | 5.0.0-beta.32, 4.24.15 | osv |
| nextauthjs next-auth | >= 4.0.6, <= 4.24.14; >= 5.0.0-beta.0, <= 5.0.0-beta.31 | — | cvelist |
| @auth core | >= 0.1.0, < 0.41.3 | — | 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-73418. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-73418.md Affected: @auth/core >= 0.1.0, < 0.41.3; next-auth >= 5.0.0-beta.0, < 5.0.0-beta.32 Fixed in: 0.41.3, 5.0.0-beta.32, 4.24.15 Steps: 1. Search this machine and project for @auth/core (npm), next-auth (npm), nextauthjs next-auth, @auth core: 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
Vendor advisories
Patches
Other
- https://github.com/nextauthjs/next-auth/releases/tag/%40auth%2Fcore%400.41.3
- https://github.com/nextauthjs/next-auth/releases/tag/next-auth%404.24.15
- https://github.com/nextauthjs/next-auth/releases/tag/next-auth%405.0.0-beta.32
- https://github.com/nextauthjs/next-auth
- https://github.com/nextauthjs/next-auth/releases/tag/@auth/core@0.41.3
- https://github.com/nextauthjs/next-auth/releases/tag/next-auth@4.24.15
- https://github.com/nextauthjs/next-auth/releases/tag/next-auth@5.0.0-beta.32
FAQ
Is CVE-2026-73418 being exploited?
There is no confirmed exploitation: CVE-2026-73418 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.88% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-73418?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-73418?
@auth/core >= 0.1.0, < 0.41.3; next-auth >= 5.0.0-beta.0, < 5.0.0-beta.32.
Is there a fix for CVE-2026-73418?
Yes. Fixed in 0.41.3, 5.0.0-beta.32, 4.24.15. Upgrade @auth/core to 0.41.3 or later. Upgrade next-auth to one of 5.0.0-beta.32, 4.24.15 (or later in the same release line).
How do I check if I'm affected by CVE-2026-73418?
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.