Security mailing lists by PureSourceCode

CVE-2026-73418

HIGH 7.5CVSS 3.1

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

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.

Published
12 Aug 2026
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Awaiting Analysis
Weakness
CWE-20
Also known as
GHSA-xmf8-cvqr-rfgj
Sources
NVDJSONOSV GHSA-xmf8-cvqr-rfgjJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm @auth/core >= 0.1.0, < 0.41.3 0.41.3
OSV npm next-auth >= 5.0.0-beta.0, < 5.0.0-beta.32 5.0.0-beta.32
OSV npm next-auth >= 4.0.6, < 4.24.15 4.24.15

References

History

  • 25 Nov 2026 21:04 UTC · NVD: first stored (published 12 Aug 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 23 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.