Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-73418: CWE-20: Improper Input Validation in nextauthjs next-auth

0
High
VulnerabilityCVE-2026-73418cvecve-2026-73418cwe-20cwe-248
Published: 08/12/2026 (08/12/2026, 20:21:11 UTC)
Source: CVE Database V5
Vendor/Project: nextauthjs
Product: next-auth

Description

NextAuth.js versions prior to @auth/core 0.41.3, next-auth 4.24.15, and 5.0.0-beta.32 contain a vulnerability in the getToken() helper that causes an unhandled exception when processing malformed Authorization: Bearer headers. This occurs due to improper input validation and URL decoding of bearer tokens, leading to decodeURIComponent() throwing an exception. The flaw can cause a denial of service by crashing request handlers that authenticate requests, without exposing sensitive data or bypassing authentication. The issue is fixed in the specified patched versions.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

@auth/core
pkg:npm/@auth/core
Affected versions
<0.41.3
next-auth
pkg:npm/next-auth
Affected versions
<4.24.15=5.0.0-beta.32

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 20:42:20 UTC

Technical Analysis

NextAuth.js, an authentication library for Next.js, has an input validation vulnerability (CWE-20) in the getToken() helper function exported by next-auth/jwt and @auth/core/jwt modules. When no session cookie is present, getToken() URL-decodes the bearer token from the Authorization header. Malformed percent-encoding in the token causes decodeURIComponent() to throw an uncaught exception instead of treating the token as invalid. Because getToken() is commonly used in API routes, middleware, and server-side handlers, this can cause a denial of service by crashing these processes on a single unauthenticated request. The vulnerability does not expose tokens, sessions, or data, nor does it bypass authentication. It is fixed in @auth/core 0.41.3, next-auth 4.24.15, and 5.0.0-beta.32.

Potential Impact

An attacker can cause a denial of service by sending a single unauthenticated request with a malformed Authorization: Bearer header, triggering an unhandled exception in server-side authentication code. This disrupts service availability but does not compromise confidentiality or integrity of tokens or sessions, nor does it allow authentication bypass.

Mitigation Recommendations

This vulnerability is fixed in @auth/core version 0.41.3, next-auth version 4.24.15, and 5.0.0-beta.32. Users should upgrade to these or later versions to remediate the issue. No other mitigation is required as the vulnerability is addressed by the official fix.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-08-12T14:32:11.795Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a7cd702bf8831d5391e9f12

Added to database: 08/12/2026, 20:26:42 UTC

Last enriched: 08/12/2026, 20:42:20 UTC

Last updated: 08/13/2026, 01:33:15 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses