NextAuth.js: getToken() throws an uncaught exception on malformed Bearer authorization headers

Summary

CVECVE-2026-73418
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-08-12 21:17:40 UTC
Updated2026-08-12 21:17:40 UTC
DescriptionNextAuth.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.

Risk And Classification

Primary CVSS: v3.1 7.5 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Problem Types: CWE-20 | CWE-248 | CWE-20 CWE-20: Improper Input Validation | CWE-248 CWE-248: Uncaught Exception


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1CNADECLARED7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Nextauthjs Next-auth affected >= 4.0.6, <= 4.24.14 Not specified
CNA Nextauthjs Next-auth affected >= 5.0.0-beta.0, <= 5.0.0-beta.31 Not specified
CNA @auth Core affected >= 0.1.0, < 0.41.3 Not specified

References

ReferenceSourceLinkTags
github.com/nextauthjs/next-auth/releases/tag/next-auth%405.0.0-beta.32 [email protected] github.com
github.com/nextauthjs/next-auth/commit/e707770f00c52b3479e43422b0200b059... [email protected] github.com
github.com/nextauthjs/next-auth/releases/tag/next-auth%404.24.15 [email protected] github.com
github.com/nextauthjs/next-auth/pull/13469 [email protected] github.com
github.com/nextauthjs/next-auth/releases/tag/%40auth%2Fcore%400.41.3 [email protected] github.com
github.com/nextauthjs/next-auth/security/advisories/GHSA-xmf8-cvqr-rfgj [email protected] github.com
github.com/nextauthjs/next-auth/commit/5bca2399a79ba8d116ca5179b4b1ebcd1... [email protected] github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report