Improper Encoding or Escaping of Output in PHPMailer - #VU173510
Published: December 4, 2026
Vulnerability details
The vulnerability allows a remote attacker to bypass email attachment filters that rely on filename extensions.
The vulnerability exists due to improper escaping of backslashes in PHPMailer's quotedString() function when formatting untrusted attachment names for MIME headers. A remote attacker can supply a malformed attachment name that introduces a second filename parameter in the Content-Type or Content-Disposition header to bypass extension-based filtering.