Nodemailer recipient domain restriction bypass in address parser
nodemailer
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| nodemailer nodemailer |
| No fix yet |
Original description
Nodemailer 3.0.0 before 10.4.1 contains an address parsing flaw in addressparser that truncates domains at folding whitespace or comments before a dot, allowing attackers to bypass recipient domain restrictions. Attackers can submit crafted to, cc, bcc or replyTo addresses that pass RFC 5322 domain checks but deliver mail to an attacker-chosen address under the application's sender identity.
From the CVE record · VulnCheck
References
- github.com/nodemailer/nodemailer/security/advisories/GHSA-3q53-mvfw-q9v8Exploit
- github.com/nodemailer/nodemailer/commit/c2b9c41bb81b2294ebadd294ad15ff035a17d0a5Patch
- github.com/nodemailer/nodemailer/releases/tag/v10.4.1
- github.com/nodemailer/nodemailer/blob/3b5cf1eec32c81f287870c8a1c9c09640062cfd5/src/addressparser/index.ts#L330-L345
- vulncheck.com/advisories/nodemailer-3.0.0-before-10.4.1-recipient-allow-list-bypass-via-addressparser
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125755.json
- nvd.nist.gov/vuln/detail/CVE-2026-125755