Live threats

All CVEs / Phpmailer Project

CVE-2017-11503Phpmailer Project Phpmailer

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
2.4%
probability of exploitation in 30 days · percentile 85
Auth required
No
Published
Jul 20, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

PHPMailer 5.2.23 has XSS in the "From Email Address" and "To Email Address" fields of code_generator.php.

Original NVD text.

What to do

  1. Apply the vendor's security update for Phpmailer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist phpmailer/phpmailer ≥ 5.0.0 < 5.2.24 5.2.24 composer require "phpmailer/phpmailer:^5.2.24"

Per OSV / GitHub Advisories (GHSA-58mj-pw57-4vm2). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
phpmailer_projectphpmailer5.2.23

Official sources

References

Links published by the sources. Open them with care.