# CVE-2026-73418: NextAuth.js: getToken() throws an uncaught exception on malformed Bearer authorization headers

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.88%, higher than 57% of CVEs (2026-11-30)
- Published: 2026-07-23T14:42:55.000Z
- Modified: 2026-09-10T03:51:12.549Z
- Also known as: GHSA-xmf8-cvqr-rfgj
- Weaknesses: CWE-20, CWE-248
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nextauthjs next-auth: >= 4.0.6, <= 4.24.14; >= 5.0.0-beta.0, <= 5.0.0-beta.31
- @auth core: >= 0.1.0, < 0.41.3
- @auth/core (npm): from 0.1.0 before 0.41.3
- next-auth (npm): from 5.0.0-beta.0 before 5.0.0-beta.32; from 4.0.6 before 4.24.15

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/nextauthjs/next-auth/security/advisories/GHSA-xmf8-cvqr-rfgj> (web)
- <https://github.com/nextauthjs/next-auth/pull/13469> (web)
- <https://github.com/nextauthjs/next-auth/commit/5bca2399a79ba8d116ca5179b4b1ebcd152e7f05> (web)
- <https://github.com/nextauthjs/next-auth/commit/e707770f00c52b3479e43422b0200b059149ed53> (web)
- <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://nvd.nist.gov/vuln/detail/CVE-2026-73418> (advisory)
- <https://github.com/nextauthjs/next-auth/pull/13467> (web)
- <https://github.com/nextauthjs/next-auth> (package)
- <https://github.com/nextauthjs/next-auth/releases/tag/@auth/core@0.41.3> (web)
- <https://github.com/nextauthjs/next-auth/releases/tag/next-auth@4.24.15> (web)
- <https://github.com/nextauthjs/next-auth/releases/tag/next-auth@5.0.0-beta.32> (web)

## Sources

- CVE List: [CVE-2026-73418](https://www.cve.org/CVERecord?id=CVE-2026-73418), CVE Terms of Use, modified 2026-08-13
- GitHub Advisory Database: [GHSA-xmf8-cvqr-rfgj](https://github.com/advisories/GHSA-xmf8-cvqr-rfgj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-73418](https://nvd.nist.gov/vuln/detail/CVE-2026-73418), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-73418 · Whole record: https://cve.day/CVE-2026-73418.json · Rebuilt by cve.day 2026-11-25T22:59:32.658Z
