Skip to main content

NextAuth.js CVE-2026-73420

CRITICAL
Incorrect Behavior Order: Validate Before Canonicalize (CWE-180)
2026-08-13 security-advisories@github.com GHSA-7rqj-j65f-68wh
9.1
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Learn victim's email address
  2. Delivery
    Craft identifier with U+FF20 homoglyph '@'
  3. Exploit
    Submit to magic-link sign-in endpoint
  4. Install
    Bypass single-'@' normalizer validation
  5. C2
    Downstream mailer normalizes and misroutes link
  6. Execute
    Attacker receives and clicks magic link
  7. Impact
    Authenticated as victim (account takeover)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Leading special element handling
Exploitation Conditions

Exploitation requires that the target application enables the NextAuth.js email/magic-link (passwordless) provider AND relies on the built-in defaultNormalizer (no custom normalizeIdentifier) AND uses a sendVerificationRequest mail library or delivery service that applies Unicode NFKC/NFKD normalization to recipient addresses (typical of SMTPUTF8/internationalized-email senders). The attacker must know the victim's real email address and crafts an identifier embedding a Unicode homoglyph of '@' (e.g. U+FF20 FULLWIDTH COMMERCIAL AT) that survives the single-'@' check but splits into two recipients after normalization. No authentication and no victim interaction are needed (PR:N/UI:N). Limiting factors: deployments using a custom normalizer, a mailer that rejects or canonicalizes non-ASCII addresses before validation, or an ASCII-only mail path are not exploitable - this non-default-dependent chain is why the CVSS 4.0 vector carries AT:P.

Impact

This is a genuine high-priority issue for affected deployments rather than an inflated high-CVSS score: the CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N, VC:H/VI:H) reflects remote, unauthenticated, zero-interaction account takeover, tempered by AT:P - an Attack Requirement - because exploitation depends on the downstream sender applying Unicode normalization. There is no CISA KEV listing and no EPSS score provided, and no public exploit is identified at time of analysis, so real-world exploitation is not confirmed; however, the mechanism is fully documented in a public GHSA advisory and commit diff, lowering the barrier to weaponization. The signals are largely consistent: high technical impact but a real precondition (built-in normalizer plus a normalizing mailer) that not every deployment meets, meaning any operator running the email provider with a default normalizer and an SMTPUTF8-capable delivery service should treat this as urgent, while shops using a custom normalizeIdentifier or ASCII-only mail paths face little exposure. Missing data to note explicitly: no EPSS or KEV input was supplied, so likelihood must be inferred from the vector and public disclosure rather than measured.

Exploit ScenarioDerived

An attacker who knows victim@victim.company.com submits 'attacker@evil.com@victim.company.com' (using the fullwidth U+FF20 homoglyph) to the magic-link sign-in endpoint; the normalizer sees one ASCII '@' and accepts it, but the SMTPUTF8-capable mailer normalizes the string and delivers the passwordless link to attacker@evil.com. The attacker clicks the link and is authenticated as the victim with no victim interaction. No public exploit code is identified at time of analysis, though the public GHSA regression test demonstrates the exact malicious input.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 13, 2026

Account takeover in NextAuth.js / Auth.js email (magic-link) sign-in lets a remote unauthenticated attacker who knows a victim's address hijack the passwordless login. The built-in defaultNormalizer checks for a single ASCII '@' before applying Unicode NFKC normalization, so a homoglyph such as U+FF20 (FULLWIDTH COMMERCIAL AT) passes validation but canonicalizes to a second '@' in a downstream SMTPUTF8/internationalized mailer, misrouting the sign-in link to an attacker mailbox. No public exploit is identified at time of analysis, but a regression test and full commit-level detail are public, and vendor-released patches exist (@auth/core 0.41.3, next-auth 4.24.15 and 5.0.0-beta.32).

RemediationAI

Vendor-released patch: upgrade @auth/core to 0.41.3, next-auth (v4) to 4.24.15, or next-auth (v5) to 5.0.0-beta.32, per release notes at https://github.com/nextauthjs/next-auth/releases/tag/@auth/core@0.41.3, .../next-auth@4.24.15 and .../next-auth@5.0.0-beta.32; the fix (commits 19d2feb24359fa8c79418907fc68d9ec8152ca94 and a63eee12a1a20cb35209e44195b097868517b9a0) normalizes before validation and needs no application code changes. If you cannot upgrade immediately, supply a custom normalizeIdentifier on the email provider that calls identifier.normalize("NFKC") (then lower-cases and trims) before validating and rejects any address not containing exactly one '@' after normalization - this fully closes the homoglyph path with no functional downside for legitimate users. Alternatively, reject any address whose local part or domain contains non-ASCII characters, which is simple and robust but breaks internationalized (IDN/SMTPUTF8) email addresses, so only use it if your user base does not need them. Full details in GHSA-7rqj-j65f-68wh.

Affected Packages

npm @auth/core fix: 0.41.3
npm next-auth fix: 4.24.15, 5.0.0-beta.32

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the JavaScript authentication library NextAuth.js (npm next-auth) and its underlying @auth/core package, used to add auth to Next.js applications. The defect is in the email/magic-link provider's defaultNormalizer within the sign-in route (packages/next-auth/src/core/routes/signin.ts). The root cause is CWE-180 (Incorrect Behavior Order: Validate Before Canonicalize): the code called identifier.trim() and enforced a single-'@' rule before any Unicode normalization, then normalization happened later in a different layer. Unicode NFKC/NFKD compatibility mapping folds visually or semantically equivalent code points onto ASCII - U+FF20 FULLWIDTH COMMERCIAL AT maps to U+0040 '@'. Mail libraries and SMTPUTF8-capable delivery services routinely normalize recipient addresses, so a string like 'attacker@evil.com@victim.company.com' presents one '@' to the validator but two to the mailer, which parses it into multiple recipients. The fix inserts identifier.normalize("NFKC") before validation so the smuggled separator is collapsed and rejected up front.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 9.1 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.4 HIGH

Remote unauthenticated with no user interaction (AV:N/PR:N/UI:N), but AC:H because success depends on a downstream mailer applying Unicode normalization; account takeover gives C:H/I:H, no availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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 defaultNormalizer used by the email and magic-link sign-in flow validates an address before applying Unicode normalization. An address can contain a Unicode character such as U+FF20 FULLWIDTH COMMERCIAL AT that is not ASCII at-sign but canonicalizes to an ASCII at-sign under NFKC or NFKD normalization. The address passes the normalizer's single-at-sign check, but a downstream sendVerificationRequest mail library or delivery service that normalizes the address can then see two at-sign separators and deliver the passwordless sign-in link to an attacker-controlled recipient. Applications are affected when the email provider uses the built-in normalizer rather than a custom normalizeIdentifier and the downstream sender applies Unicode normalization. An attacker who knows a victim's email address can request the misrouted magic link and sign in as the victim without victim interaction. This issue is fixed in @auth/core 0.41.3 and next-auth 4.24.15 and 5.0.0-beta.32.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 7 npm packages depend on next-auth (6 direct, 1 indirect)

Ecosystem-wide dependent count for version 4.10.3.

Executive ViewAI

Why It Matters

NextAuth.js and Auth.js email authentication contains a critical vulnerability enabling unauthorized account access through email-based sign-in systems. Attackers can bypass authentication and gain full access to user accounts at organizations using these libraries for passwordless login. This risk extends to any internal or customer-facing system relying on these libraries for authentication.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 58% exploitable
Prevalence
High
one of the most widely used auth libraries in the Next.js ecosystem
Threat Intel
1
1 sources
Social Media
3
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy