Technical impact
Nodemailer versions 3.0.0 through 10.1.3 contain a flaw in the address parsing logic where nested RFC 5322 comments can end prematurely, allowing an attacker to hide an address within the comment. When the parsing routine encounters the first closing parenthesis, it interprets the comment as the end of the address, effectively redirecting the mail handling to the hidden address. This bypasses address guards such as recipient allow lists and validation layers, enabling a remote attacker to cause mail to be delivered to unintended recipients or to appear as though the email was sent from a spoofed address.
Affected Systems
The vulnerability affects the Nodemailer library distributed under the nodemailer:nodemailer vendor name. All releases from version 3.0.0 up to and excluding 10.1.4 are impacted. The library is commonly used in Node.js applications that construct or parse email messages, so any application that relies on these library versions is a potential target.
Risk and Exploitability
The flaw has a CVSS score of 8.3, indicating high severity. The EPSS score is not available, but the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Because the exploit requires only that a malicious email address string be supplied to the address parser, an attacker can target any mail server or application that accepts externally supplied addresses. Attacks can be executed remotely without authentication, and there is no requirement for privileged code execution, making the attack surface broad. The impact includes malicious redirection of email delivery and potential email spoofing for phishing or fraud campaigns.