Improper Encoding or Escaping of Output in PHPMailer - #VU173512
Published: December 4, 2026
Vulnerability details
The vulnerability allows a remote attacker to spoof email address headers and cause copies of messages to be delivered to unauthorized recipients.
The vulnerability exists due to improper escaping in PHPMailer's encodeHeader() function when formatting display names in SMTPUTF8 mode. A remote attacker can supply a crafted display name to inject addresses into an existing header, adding delivery recipients with the mail, sendmail, or qmail transport or spoofing the header without changing delivery recipients with the smtp transport.