CVE-2026-77634: Cakephp Smtp Transport Header Injection

Calling `getHeadersString()` without a sanitization callback allows CRLF sequences in custom email headers to cause email header injection. Provide a sanitizer callback as the third argument to strip `\r\n` characters.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-77634-cakephp-smtp-transport-header-injection --engine opengrep

Description

Calling `getHeadersString()` without a sanitization callback allows CRLF sequences in custom email headers to cause email header injection. Provide a sanitizer callback as the third argument to strip `\r\n` characters.