{"api_version":"1","generated_at":"2026-08-13T03:48:07+00:00","cve":"CVE-2026-73418","urls":{"html":"https://cve.report/CVE-2026-73418","api":"https://cve.report/api/cve/CVE-2026-73418.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-73418","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-73418"},"summary":{"title":"NextAuth.js: getToken() throws an uncaught exception on malformed Bearer authorization headers","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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-08-12 21:17:40","updated_at":"2026-08-12 21:17:40"},"problem_types":["CWE-20","CWE-248","CWE-20 CWE-20: Improper Input Validation","CWE-248 CWE-248: Uncaught Exception"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"references":[{"url":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%405.0.0-beta.32","name":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%405.0.0-beta.32","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nextauthjs/next-auth/commit/e707770f00c52b3479e43422b0200b059149ed53","name":"https://github.com/nextauthjs/next-auth/commit/e707770f00c52b3479e43422b0200b059149ed53","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%404.24.15","name":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%404.24.15","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nextauthjs/next-auth/pull/13469","name":"https://github.com/nextauthjs/next-auth/pull/13469","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nextauthjs/next-auth/releases/tag/%40auth%2Fcore%400.41.3","name":"https://github.com/nextauthjs/next-auth/releases/tag/%40auth%2Fcore%400.41.3","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-xmf8-cvqr-rfgj","name":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-xmf8-cvqr-rfgj","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nextauthjs/next-auth/commit/5bca2399a79ba8d116ca5179b4b1ebcd152e7f05","name":"https://github.com/nextauthjs/next-auth/commit/5bca2399a79ba8d116ca5179b4b1ebcd152e7f05","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-73418","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73418","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"nextauthjs","product":"next-auth","version":"affected >= 4.0.6, <= 4.24.14","platforms":[]},{"source":"CNA","vendor":"nextauthjs","product":"next-auth","version":"affected >= 5.0.0-beta.0, <= 5.0.0-beta.31","platforms":[]},{"source":"CNA","vendor":"@auth","product":"core","version":"affected >= 0.1.0, < 0.41.3","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"next-auth","vendor":"nextauthjs","versions":[{"status":"affected","version":">= 4.0.6, <= 4.24.14"},{"status":"affected","version":">= 5.0.0-beta.0, <= 5.0.0-beta.31"}]},{"product":"core","vendor":"@auth","versions":[{"status":"affected","version":">= 0.1.0, < 0.41.3"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","description":"CWE-20: Improper Input Validation","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-248","description":"CWE-248: Uncaught Exception","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-08-12T20:21:11.318Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-xmf8-cvqr-rfgj","tags":["x_refsource_CONFIRM"],"url":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-xmf8-cvqr-rfgj"},{"name":"https://github.com/nextauthjs/next-auth/pull/13469","tags":["x_refsource_MISC"],"url":"https://github.com/nextauthjs/next-auth/pull/13469"},{"name":"https://github.com/nextauthjs/next-auth/commit/5bca2399a79ba8d116ca5179b4b1ebcd152e7f05","tags":["x_refsource_MISC"],"url":"https://github.com/nextauthjs/next-auth/commit/5bca2399a79ba8d116ca5179b4b1ebcd152e7f05"},{"name":"https://github.com/nextauthjs/next-auth/commit/e707770f00c52b3479e43422b0200b059149ed53","tags":["x_refsource_MISC"],"url":"https://github.com/nextauthjs/next-auth/commit/e707770f00c52b3479e43422b0200b059149ed53"},{"name":"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/%40auth%2Fcore%400.41.3"},{"name":"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%404.24.15"},{"name":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%405.0.0-beta.32","tags":["x_refsource_MISC"],"url":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%405.0.0-beta.32"}],"source":{"advisory":"GHSA-xmf8-cvqr-rfgj","discovery":"UNKNOWN"},"title":"NextAuth.js: getToken() throws an uncaught exception on malformed Bearer authorization headers"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-73418","datePublished":"2026-08-12T20:21:11.318Z","dateReserved":"2026-08-12T14:32:11.795Z","dateUpdated":"2026-08-12T20:21:11.318Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-08-12 21:17:40","lastModifiedDate":"2026-08-12 21:17:40","problem_types":["CWE-20","CWE-248","CWE-20 CWE-20: Improper Input Validation","CWE-248 CWE-248: Uncaught Exception"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"73418","Ordinal":"1","Title":"NextAuth.js: getToken() throws an uncaught exception on malforme","CVE":"CVE-2026-73418","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"73418","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"NextAuth.js: getToken() throws an uncaught exception on malforme"}]}}}