Improper Encoding or Escaping of Output in PHPMailer - #VU173512

 

Improper Encoding or Escaping of Output in PHPMailer - #VU173512

Published: December 4, 2026


Vulnerability identifier: #VU173512
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-116
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

PHPMailer

Remediation

Install security update from vendor's website.

PHPMailer - update to 7.4.0

External References

Related Security Bulletins