#VU125299 CRLF injection in nodemailer
Published: April 8, 2026
nodemailer
nodemailer
Description
The vulnerability allows a remote user to inject arbitrary SMTP commands.
The vulnerability exists due to improper neutralization of CRLF sequences in lib/smtp-connection/index.js when processing a custom envelope.size value in sendMail(). A remote user can supply a crafted envelope.size value containing CRLF characters to inject arbitrary SMTP commands.
This issue can silently add attacker-controlled recipients to outgoing emails. Exploitation requires the application to explicitly pass a custom envelope object with a size property to sendMail().