GHSA-7rqj-j65f-68whCritical▾ MidnightAuth.js: Email normalizer validates the address before Unicode normalization, allowing a homoglyph @ bypass
▾ Midnight zone — Critical, or high with PoC / in-the-wild
impact 52.3 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
The default email-address normalizer used by the email/magic-link sign-in flow validates the address before applying Unicode normalization. An address can contain a Unicode character that is not an ASCII @ (U+0040) but canonicalizes to one under NFKC/NFKD normalization (the normalization commonly applied by mail libraries and services for internationalized email). Such an address passes the normalizer's single-@ check, but a downstream mail library that normalizes the string then sees two @ separators and may deliver the passwordless sign-in link to a different recipient than intended. This is an instance of validating before canonicalizing.
You may be affected if all of the following hold:
next-auth >= 4.0.0, < 4.24.14, or @auth/core >= 0.1.0, < 0.41.3.normalizeIdentifier).sendVerificationRequest implementation uses a mail library or delivery service that applies Unicode normalization to recipient addresses (most internationalized-email/SMTPUTF8-capable senders do).You are not affected if you do not use the email provider, or if your normalizer/mailer rejects or canonicalizes non-ASCII addresses before they are validated.
The fix applies Unicode (NFKC) normalization before the address is validated, so homoglyph separators are collapsed and rejected up front. Upgrade to the first release containing this fix (pending; this advisory will be updated with the exact patched version before publication). No application code changes are required after upgrading.
If you cannot upgrade immediately:
normalizeIdentifier on the email provider that calls identifier.normalize("NFKC") (and lower-cases/trims) before any validation, and rejects addresses that do not contain exactly one @ after normalization.Reported by @kakashi-kx. Thank you for the responsible disclosure.
@auth/core >= 0.1.0, < 0.41.3next-auth >= 4.10.3, < 4.24.15next-auth >= 5.0.0-beta.1, <= 5.0.0-beta.31Upgrade to a patched release:
@auth/core 0.41.3next-auth 4.24.15next-auth 5.0.0-beta.32Connected by shared product, vendor, weakness, or advisory.
GHSA-x445-f3h2-j279Medium· 6.8Auth.js: OAuth state, nonce, and PKCE check cookies are not bound to the provider that created them
GHSA-xmf8-cvqr-rfgjHigh· 7.5Auth.js: getToken() throws an uncaught exception on malformed Bearer authorization headers
CVE-2026-73420NoneNextAuth.js provides authentication for Next.js
CVE-2026-7120Medium· 5.3@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths
CVE-2026-100674Medium· 4.3stoatchat before 0.15.5 fails to revalidate usernames after Unicode sanitization, allowing attackers to create usernames with forbidden characters by submitting Unicode letters that transform into rejected characters
CVE-2026-100547Medium· 5.5OpenClaw is a coding agent distributed as the npm package `openclaw`