<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>@Auth/Core (&gt;= 0.1.0, &lt; 0.41.3) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/@auth/core--0.1.0--0.41.3/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 23 Jul 2026 14:42:37 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/@auth/core--0.1.0--0.41.3/feed.xml" rel="self" type="application/rss+xml"/><item><title>Auth.js Email Normalizer Vulnerability Allows Homoglyph Bypass Leading to Account Takeover</title><link>https://feed.craftedsignal.io/briefs/2026-07-authjs-homoglyph-bypass/</link><pubDate>Thu, 23 Jul 2026 14:42:37 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-authjs-homoglyph-bypass/</guid><description>A critical vulnerability in Auth.js libraries (next-auth and @auth/core) affects the email/magic-link sign-in flow, allowing an attacker to craft an email address with a homoglyph character that bypasses validation before Unicode normalization, leading to magic links being misrouted to attacker-controlled mailboxes and enabling account takeover without victim interaction.</description><content:encoded><![CDATA[<p>A critical vulnerability exists in Auth.js, specifically affecting <code>next-auth</code> versions <code>&gt;= 4.0.0, &lt; 4.24.14</code>, <code>&gt;= 4.10.3, &lt; 4.24.15</code>, <code>&gt;= 5.0.0-beta.1, &lt;= 5.0.0-beta.31</code> and <code>@auth/core</code> versions <code>&gt;= 0.1.0, &lt; 0.41.3</code>, when using the default email/magic-link sign-in provider. The flaw stems from the email normalizer validating an address <em>before</em> applying Unicode normalization (NFKC/NFKD). This allows an attacker to craft an email address containing a Unicode character that is not an ASCII <code>@</code> (U+0040) but canonicalizes to one after normalization. This bypasses the normalizer's single-<code>@</code> check, causing a downstream mail library that performs Unicode normalization to interpret the address with two <code>@</code> separators. Consequently, the passwordless sign-in link is misrouted to an attacker-controlled mailbox, enabling account takeover without requiring any victim interaction.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker identifies a target's email address and crafts a malicious version by inserting a Unicode homoglyph character that resembles '@' (e.g., <code>victim_email[U+XXXX]attacker.com</code>).</li>
<li>The attacker submits this crafted email address to the vulnerable Auth.js application's magic-link sign-in flow.</li>
<li>The application's default <code>normalizeIdentifier</code> function validates the address, incorrectly perceiving only one '@' symbol because validation occurs prior to Unicode normalization.</li>
<li>The application proceeds to send the magic-link email, with the crafted address passed to a downstream mail library or service.</li>
<li>The mail library or service, which performs Unicode normalization (e.g., NFKC) for internationalized email, processes the recipient address.</li>
<li>During normalization, the homoglyph character in the crafted email canonicalizes to a second '@' symbol (e.g., <code>victim_email@attacker.com</code>), causing the mail service to misroute the magic link.</li>
<li>The magic link is delivered to the attacker-controlled mailbox, enabling the attacker to authenticate and gain unauthorized access to the victim's account.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The primary impact of this vulnerability is account takeover. An attacker who knows a victim's email address can exploit this flaw to request a magic link that is subsequently delivered to an attacker-controlled mailbox. The attacker can then use this link to sign in as the victim, gaining full access to their account. No victim interaction is required for the link to be misrouted, as the attacker initiates and directly receives the authentication link. This can lead to unauthorized access to personal data, financial information, or sensitive corporate resources, depending on the scope and permissions of the compromised account.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade <code>next-auth</code> to a patched version (currently pending, refer to GHSA-7rqj-j65f-68wh for updates) immediately.</li>
<li>Upgrade <code>@auth/core</code> to a patched version (currently pending, refer to GHSA-7rqj-j65f-68wh for updates) immediately.</li>
<li>If immediate upgrade is not possible, implement a custom <code>normalizeIdentifier</code> on the email provider that calls <code>identifier.normalize(&quot;NFKC&quot;)</code> <em>before</em> any validation, and ensures only one '@' remains after normalization, as detailed in the GHSA advisory.</li>
<li>Alternatively, as a workaround, reject any email addresses containing non-ASCII characters if your user base does not require internationalized email addresses.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>account-takeover</category><category>authentication-bypass</category><category>web-vulnerability</category><category>magic-link</category><category>unicode-normalization</category></item></channel></rss>