Nodemailer's domain allowlist must run after IDN normalization
Email address validation is easy to get wrong when two libraries use different Unicode rules. CVE-2026-137514 describes that problem in Nodemailer 9.1.0 through releases before 10.4.1.
Nodemailer's _normalizeAddress lowercased the recipient domain with JavaScript toLowerCase() before UTS-46 conversion. That order produced different results for U+1E9E, capital sharp S, and word-final U+03A3, Greek capital sigma. A validator could approve one domain spelling while Nodemailer delivered to another ASCII form.
The advisory describes an information-disclosure path: an unprivileged user submits an address that passes an application allowlist, then an invite or shared link reaches an attacker-controlled domain. The recipient domain is the security boundary, not an ordinary display label.
This bug matters wherever an application tries to restrict mail to a company domain, partner list or verified tenant. A string comparison can look correct in a unit test and still fail when Punycode conversion happens later. DNS ownership does not fix the mismatch because delivery follows the normalized domain, not the validator's interpretation.
Upgrade to Nodemailer 10.4.1 or later. Applications should normalize the address with the same UTS-46 implementation and options before allowlist checks and before passing it to the mail transport. Store the canonical ASCII domain alongside the displayed address.
Do not use a lowercased suffix match as the final policy. Compare labels, handle internationalized domain names deliberately, and reject ambiguous mixed-script forms unless the business requires them. Test U+1E9E, final sigma, full-width characters and domains that map to different Unicode normalization forms.
Operational checks should include mailbox domains that changed after normalization, mail sent from invite or sharing workflows, and allowlist decisions made at different application layers. Restrict outbound mail through a gateway when application code is inconsistent, and log the normalized recipient domain without storing message bodies.
The fixed release resolves the library mismatch. The wider lesson is to make the allowlist consume a canonical address rather than a partially normalized one. Any application that performs its own domain check before Nodemailer should share the exact normalization contract.
