Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. phpmailer/phpmailer
  4. ›
  5. CVE-2017-11503

CVE-2017-11503: XSS vulnerability in code example

July 20, 2017 (updated May 3, 2019)

The code_generator.phps example does not filter user input prior to output. This file is distributed with a .phps extension, so it it not normally executable unless it is explicitly renamed, so it is safe by default. There’s also an undisclosed potential XSS vulnerability in the default exception handler (unused by default).

References

  • github.com/PHPMailer/PHPMailer/commit/dbbc1397c41de56aa3a57c8188d19a345dea5c63
  • github.com/PHPMailer/PHPMailer/releases/tag/v5.2.24

Code Behaviors & Features

Detect and mitigate CVE-2017-11503 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.0.0 before 5.2.24, all versions starting from 6.0.0alpha0 up to 6.0.0rc5

Fixed versions

  • v5.2.24

Solution

Upgrade to version v5.2.24 or above.

Impact 6.1 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/phpmailer/phpmailer/CVE-2017-11503.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:43 +0000.