Nodemailer versions before 8.0.5 have an SMTP command injection vulnerability in the transport name option used in EHLO/HELO commands. The vulnerability arises because the name parameter is concatenated directly into SMTP commands without sanitizing carriage return and line feed characters. This allows attackers to inject arbitrary SMTP commands, potentially enabling email spoofing and phishing attacks. The vulnerability has a medium severity with a CVSS score of 4.9. No patch or official fix information is provided in the available data.