CRLF injection in PHPMailer - #VU173509
Published: December 4, 2026
Vulnerability details
The vulnerability allows a remote user to inject or duplicate MIME part headers and potentially cause an attachment to be rendered as inline HTML.
The vulnerability exists due to improper neutralization of CRLF sequences in PHPMailer's attachAll() method when it writes the MIME type supplied through addAttachment() or addStringAttachment() into the Content-Type header. A remote user can influence the MIME type that the application passes to PHPMailer to alter how a recipient's mail client interprets the attachment.