{"id":"CVE-2026-73418","published":"2026-08-12T20:21:11Z","modified":"2026-08-13T12:53:44Z","title":"NextAuth.js: getToken() throws an uncaught exception on malformed Bearer authorization headers","vendor":"nextauthjs","product":"next-auth","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00877,"percentile":0.59908,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-248","name":"Uncaught Exception"}],"references":[{"url":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-xmf8-cvqr-rfgj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nextauthjs/next-auth/pull/13469","tags":["x_refsource_MISC"]},{"url":"https://github.com/nextauthjs/next-auth/commit/5bca2399a79ba8d116ca5179b4b1ebcd152e7f05","tags":["x_refsource_MISC"]},{"url":"https://github.com/nextauthjs/next-auth/commit/e707770f00c52b3479e43422b0200b059149ed53","tags":["x_refsource_MISC"]},{"url":"https://github.com/nextauthjs/next-auth/releases/tag/%40auth%2Fcore%400.41.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%404.24.15","tags":["x_refsource_MISC"]},{"url":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%405.0.0-beta.32","tags":["x_refsource_MISC"]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":11.98},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"nextauthjs","affectedVersions":[{"vendor":"nextauthjs","product":"next-auth","versions":[">= 4.0.6, <= 4.24.14",">= 5.0.0-beta.0, <= 5.0.0-beta.31"]},{"vendor":"@auth","product":"core","versions":[">= 0.1.0, < 0.41.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-13T12:53:20.378207Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@auth/core","vulnerableRanges":[">=0.1.0, <0.41.3"],"patched":["0.41.3"],"from":["GHSA-xmf8-cvqr-rfgj"],"provenance":"source"},{"ecosystem":"npm","package":"next-auth","vulnerableRanges":[">=5.0.0-beta.0, <5.0.0-beta.32",">=4.0.6, <4.24.15"],"patched":["5.0.0-beta.32","4.24.15"],"from":["GHSA-xmf8-cvqr-rfgj"],"provenance":"source"}],"summary":{"text":"NextAuth.js's exported getToken() helper, in the next-auth/jwt and @auth/core/jwt modules, fails to handle malformed Authorization: Bearer headers: when no session cookie is present, a badly percent-encoded bearer value makes decodeURIComponent() throw an uncaught exception instead of rejecting the token. An unauthenticated remote attacker can exploit this with a single crafted HTTP request to any code path that calls getToken(), such as API routes, middleware, or server-side handlers, causing a per-request denial of service without exposing data or bypassing authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:47:59Z"},"euvd":{"id":"EUVD-2026-57552","exploited":false,"provenance":"source"}}