phpmailer/phpmailer vulnerabilities
PHPMailer is a full-featured email creation and transfer class for PHP
- Registry
- Composer
- Latest
- 7.2.0
- License
- LGPL-2.1-only
14 known advisories
The latest version, 7.2.0, is not affected by any of them. Projects on older versions may be.
composer require phpmailer/phpmailer:^7.2.0Is your project on an affected phpmailer/phpmailer?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Security advisories for phpmailer/phpmailer
PHPMailer Local file inclusion
- Affected
- <5.2.0
- Fixed in
- 5.2.0
PHPMailer Shell command injection
- Affected
- <1.7.4
- Fixed in
- 1.7.4
PHPMailer vulnerable to email header injection
- Affected
- <2.2.1
- Fixed in
- 2.2.1
PHPMailer susceptible to arbitrary code execution
- Affected
- <5.2.10
- Fixed in
- 5.2.10
PHPMailer untrusted code may be run from an overridden address validator
- Affected
- <6.5.0
- Fixed in
- 6.5.0
Remote Code Execution vulnerability in PHPMailer 6.4.1 running on Windows
- Affected
- <6.5.0
- Fixed in
- 6.5.0
Object injection in PHPMailer/PHPMailer
- Affected
- >=6.1.8 <6.4.1
- Fixed in
- 6.4.1
Insufficient output escaping of attachment names in PHPMailer
- Affected
- <6.1.6
- Fixed in
- 6.1.6
SMTP Injection in PHPMailer
- Affected
- >=5.0.0 <5.2.14
- Fixed in
- 5.2.14
Remote code execution in PHPMailer
- Affected
- >=5.0.0 <5.2.18
- Fixed in
- 5.2.18
Remote code execution in PHPMailer
- Affected
- >=5.0.0 <5.2.20
- Fixed in
- 5.2.20
Cross-site scripting in PHPMailer
- Affected
- >=5.0.0 <5.2.24
- Fixed in
- 5.2.24
Local file disclosure in PHPMailer
- Affected
- >=5.0.0 <5.2.22
- Fixed in
- 5.2.22
Phar object injection in PHPMailer
- Affected
- >=5.0.0 <5.2.27 · >=6.0.0 <6.0.6
- Fixed in
- 5.2.27, 6.0.6
Is your phpmailer/phpmailer version vulnerable?
- phpmailer/phpmailer 7.2No known advisories in 7.2.0
- phpmailer/phpmailer 7.1No known advisories in 7.1.1
- phpmailer/phpmailer 7.0No known advisories in 7.0.2
- phpmailer/phpmailer 6.12No known advisories in 6.12.0
- phpmailer/phpmailer 6.11No known advisories in 6.11.1
- phpmailer/phpmailer 6.10No known advisories in 6.10.0
- phpmailer/phpmailer 6.9No known advisories in 6.9.3
- phpmailer/phpmailer 6.8No known advisories in 6.8.1
- phpmailer/phpmailer 6.7No known advisories in 6.7.1
- phpmailer/phpmailer 5.23 advisories in 5.2.28
Which of your client projects still run an old phpmailer/phpmailer?
NPMscan reads the composer.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.
Other Composer packages
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the Composer registry.