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.

Update to the latest version:composer require phpmailer/phpmailer:^7.2.0

Is your project on an affected phpmailer/phpmailer?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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

  • MediumCVE-2006-5734GHSA-8jc3-5p29-qgjx2 Feb 2024

    PHPMailer Local file inclusion

    Affected
    <5.2.0
    Fixed in
    5.2.0
  • HighCVE-2007-3215GHSA-6h78-85v2-mmch2 Feb 2024

    PHPMailer Shell command injection

    Affected
    <1.7.4
    Fixed in
    1.7.4
  • HighCVE-2012-0796GHSA-398j-f7m7-795j6 Oct 2022

    PHPMailer vulnerable to email header injection

    Affected
    <2.2.1
    Fixed in
    2.2.1
  • HighCVE-2008-5619GHSA-v5c9-mmw9-829q14 May 2022

    PHPMailer susceptible to arbitrary code execution

    Affected
    <5.2.10
    Fixed in
    5.2.10
  • HighCVE-2021-3603GHSA-77mr-wc79-m8j322 Jun 2021

    PHPMailer untrusted code may be run from an overridden address validator

    Affected
    <6.5.0
    Fixed in
    6.5.0
  • HighCVE-2021-34551GHSA-7q44-r25x-wm4q22 Jun 2021

    Remote Code Execution vulnerability in PHPMailer 6.4.1 running on Windows

    Affected
    <6.5.0
    Fixed in
    6.5.0
  • CriticalCVE-2020-36326GHSA-m298-fh5c-jc664 May 2021

    Object injection in PHPMailer/PHPMailer

    Affected
    >=6.1.8 <6.4.1
    Fixed in
    6.4.1
  • HighCVE-2020-13625GHSA-f7hx-fqxw-rvvj27 May 2020

    Insufficient output escaping of attachment names in PHPMailer

    Affected
    <6.1.6
    Fixed in
    6.1.6
  • LowCVE-2015-8476GHSA-738m-f33v-qc2r5 Mar 2020

    SMTP Injection in PHPMailer

    Affected
    >=5.0.0 <5.2.14
    Fixed in
    5.2.14
  • CriticalCVE-2016-10033GHSA-5f37-gxvh-23v65 Mar 2020

    Remote code execution in PHPMailer

    Affected
    >=5.0.0 <5.2.18
    Fixed in
    5.2.18
  • CriticalCVE-2016-10045GHSA-4pc3-96mx-wwc85 Mar 2020

    Remote code execution in PHPMailer

    Affected
    >=5.0.0 <5.2.20
    Fixed in
    5.2.20
  • MediumCVE-2017-11503GHSA-58mj-pw57-4vm25 Mar 2020

    Cross-site scripting in PHPMailer

    Affected
    >=5.0.0 <5.2.24
    Fixed in
    5.2.24
  • MediumCVE-2017-5223GHSA-4x5h-cr29-fhp65 Mar 2020

    Local file disclosure in PHPMailer

    Affected
    >=5.0.0 <5.2.22
    Fixed in
    5.2.22
  • HighCVE-2018-19296GHSA-7w4p-72j7-v7c25 Mar 2020

    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?

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.