Cross-site scripting in PHPMailer

Published: 2017-06-25 | Updated: 2017-08-02
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2017-11503
Exploitation vector Network
Public exploit N/A
Vulnerable software
Web applications / Other software


Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Cross-site scripting


Risk: Low


CVE-ID: CVE-2017-11503

CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Exploit availability: No


The disclosed vulnerability allows a remote unauthenticated attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient validation of user-supplied data passed via specially crafted parameter to 'code_generator.phps' example script. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in victim’s browser in security context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Update to version 5.2.24.

Vulnerable software versions

PHPMailer: 5.2 - 5.2.23

CPE2.3 External links

Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?