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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nodemailer | nodemailer | 3.0.0 – < 10.4.1 | 10.4.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-nodemailer | No fix yet | — |
| Ubuntu 26.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 24.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 22.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 20.04 LTS | node-nodemailer | No fix yet | — |
References
- GitHub Security Advisory (GHSA-3q53-mvfw-q9v8) vendor-advisory
- https://github.com/nodemailer/nodemailer/commit/c2b9c41bb81b2294ebadd294ad15ff035a17d0a5 patch
- nodemailer v10.4.1 Release Notes release-notes
- https://github.com/nodemailer/nodemailer/blob/3b5cf1eec32c81f287870c8a1c9c09640062cfd5/src/addressparser/index.ts#L330-L345 technical-description
- VulnCheck Advisory: Nodemailer 3.0.0 before 10.4.1 Recipient Allow-List Bypass via addressparser third-party-advisory