CVE-2026-73418
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@auth/corenpm | >= 0.1.0, < 0.41.3 | 0.41.3 |
next-authnpm | >= 5.0.0-beta.0, < 5.0.0-beta.32 | 5.0.0-beta.32 |
next-authnpm | >= 4.0.6, < 4.24.15 | 4.24.15 |
Affected products
10- osv-coords8 versionspkg:apk/chainguard/langfuse-3pkg:apk/chainguard/langfuse-3-workerpkg:apk/chainguard/jitsucom-jitsu-consolepkg:apk/chainguard/langfuse-fips-3pkg:apk/chainguard/langfuse-fips-3-workerpkg:apk/wolfi/jitsucom-jitsu-consolepkg:apk/wolfi/langfuse-3pkg:apk/wolfi/langfuse-3-worker
< 3.224.3-r0+ 7 more
- (no CPE)range: < 3.224.3-r0
- (no CPE)range: < 3.224.3-r0
- (no CPE)range: < 2.11.0-r30
- (no CPE)range: < 3.224.2-r0
- (no CPE)range: < 3.224.2-r0
- (no CPE)range: < 2.11.0-r30
- (no CPE)range: < 3.224.3-r0
- (no CPE)range: < 3.224.3-r0
Patches
Vulnerability mechanics
References
13- github.com/advisories/GHSA-xmf8-cvqr-rfgjghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-73418ghsaADVISORY
- github.com/nextauthjs/next-auth/commit/5bca2399a79ba8d116ca5179b4b1ebcd152e7f05nvdWEB
- github.com/nextauthjs/next-auth/commit/e707770f00c52b3479e43422b0200b059149ed53nvdWEB
- github.com/nextauthjs/next-auth/pull/13467ghsaWEB
- github.com/nextauthjs/next-auth/pull/13469nvdWEB
- github.com/nextauthjs/next-auth/releases/tag/@auth/[email protected]ghsaWEB
- github.com/nextauthjs/next-auth/releases/tag/[email protected]ghsaWEB
- github.com/nextauthjs/next-auth/releases/tag/[email protected]ghsaWEB
- github.com/nextauthjs/next-auth/security/advisories/GHSA-xmf8-cvqr-rfgjnvdWEB
- github.com/nextauthjs/next-auth/releases/tag/%40auth%2Fcore%400.41.3nvd
- github.com/nextauthjs/next-auth/releases/tag/next-auth%404.24.15nvd
- github.com/nextauthjs/next-auth/releases/tag/next-auth%405.0.0-beta.32nvd
News mentions
0No linked articles in our index yet.