CVE-2017-11503
MEDIUM 6.1CVSS 3.0Cross-site scripting in PHPMailer
PHPMailer 5.2.23 has XSS in the "From Email Address" and "To Email Address" fields of code_generator.php.
- Published
- 20 Jul 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-58mj-pw57-4vm2
- Sources
- NVDJSONOSV GHSA-58mj-pw57-4vm2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | phpmailer_project | phpmailercpe:2.3:a:phpmailer_project:phpmailer:5.2.23:*:*:*:*:*:*:* |
= 5.2.23 | |
| OSV | Packagist | phpmailer/phpmailer | >= 5.0.0, < 5.2.24 | 5.2.24 |
References
- http://www.securityfocus.com/bid/99293/ · Third Party Advisory, VDB Entry, WEB
- http://www.securitytracker.com/id/1039026 · Third Party Advisory, VDB Entry, WEB
- https://cxsecurity.com/issue/WLB-2017060181 · Exploit, Third Party Advisory, WEB
- https://packetstormsecurity.com/files/143138/phpmailer-xss.txt · Exploit, Third Party Advisory, VDB Entry, WEB
- https://github.com/PHPMailer/PHPMailer · Product
- https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.24 · Patch, Release Notes, Third Party Advisory, WEB
- https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-58mj-pw57-4vm2 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-11503 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2017-11503.yaml · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 20 Jul 2017)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 5 Mar 2020)