CVE-2017-11503 Cross-site scripting in PHPMailer
Cross-site scripting vulnerability in PHPMailer allows attackers to inject malicious scripts via email address fields in the code generator.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2017-11503?
CVE-2017-11503 is a medium-severity cross-site scripting vulnerability in n/a, published on 20 Jul 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
PHPMailer 5.2.23 has XSS in the "From Email Address" and "To Email Address" fields of code_generator.php.
Weakness: CWE-79
Which versions are affected by CVE-2017-11503?
2 open source packages ship an affected version, including phpmailer/phpmailer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
phpmailer/phpmailer Packagist | From 5.0.0 | 5.2.24 |
phpmailer/phpmailer Packagist | From 5.0.0 | 5.2.24 |
Products include Phpmailer Project Phpmailer.
How do I fix CVE-2017-11503?
Upgrade phpmailer/phpmailer to 5.2.24 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2017-11503 being exploited?
There is no known exploitation of CVE-2017-11503 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2017-11503, GHSA-58mj-pw57-4vm2, MGASA-2017-0257, UBUNTU-CVE-2017-11503, USN-5956-2.