---
id: CVE-2026-73418
title: NextAuth.js provides authentication for Next.js
summary: >-
  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 r…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-20
  - CWE-248
published: '2026-08-12'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:58:37.713'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-73418'
references:
  - url: >-
      https://github.com/nextauthjs/next-auth/commit/5bca2399a79ba8d116ca5179b4b1ebcd152e7f05
    label: security-advisories@github.com
  - url: >-
      https://github.com/nextauthjs/next-auth/commit/e707770f00c52b3479e43422b0200b059149ed53
    label: security-advisories@github.com
  - url: 'https://github.com/nextauthjs/next-auth/pull/13469'
    label: security-advisories@github.com
  - url: >-
      https://github.com/nextauthjs/next-auth/releases/tag/%40auth%2Fcore%400.41.3
    label: security-advisories@github.com
  - url: 'https://github.com/nextauthjs/next-auth/releases/tag/next-auth%404.24.15'
    label: security-advisories@github.com
  - url: >-
      https://github.com/nextauthjs/next-auth/releases/tag/next-auth%405.0.0-beta.32
    label: security-advisories@github.com
  - url: >-
      https://github.com/nextauthjs/next-auth/security/advisories/GHSA-xmf8-cvqr-rfgj
    label: security-advisories@github.com
tags:
  - nvd
epss: 0.00461
epssPercentile: 0.39235
ingestedAt: '2026-09-09T21:22:45.532Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
