CVE-2025-61597: Phpmailer Hardcoded Smtpsecure Ssl

Hardcoding the SMTPSecure property to 'ssl' forces the use of a potentially deprecated SSL protocol instead of allowing modern dynamic options like STARTTLS ('tls'). This can expose communications to interception if the environment requires a different protocol configuration.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0PHP
greprules fetch cve-2025-61597-phpmailer-hardcoded-smtpsecure-ssl --engine opengrep

Description

Hardcoding the SMTPSecure property to 'ssl' forces the use of a potentially deprecated SSL protocol instead of allowing modern dynamic options like STARTTLS ('tls'). This can expose communications to interception if the environment requires a different protocol configuration.