All vulnerabilities

Packagist

CVE-2026-119417

CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport

Severity
Medium 6.3
Published
30 Oct 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
4.6.6, 5.2.16, 5.3.8, 5.4.4
Exploit chance
0.5% in the next 30 daysHigher than 39% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
CRLF injection (CWE-93)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Change some data
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Sources
CVE Program

Description

CakePHP 4.5.12, 4.6.5, 5.1.8 through 5.1.10, 5.2.14 through 5.2.15, 5.3.7, and 5.4.0 through 5.4.3 contain an email header injection vulnerability because SmtpTransport and MailTransport strip only CRLF pairs from header values, an incomplete fix for CVE-2026-77634. Attackers controlling custom headers set via Message::setHeaders() or Message::addHeaders() can insert a bare CR or LF to inject headers like Bcc, redirecting or altering outgoing mail.

From the CVE Program.

Affected software

SoftwareAffected versions
cakephp/cakephpPackagist · osv:Packagist:cakephp/cakephp
  • From 4.5.12 up to 4.5.12
  • From 4.6.5 before 4.6.6
  • From 5.1.8 up to 5.1.10
  • From 5.2.14 before 5.2.16
  • From 5.3.7 before 5.3.8
  • From 5.4.0 before 5.4.4

About cakephp/cakephp

Monthly downloads (Packagist)
634,186Packagist, 24 Nov 2026
Total downloads (Packagist)
21,919,114Packagist, 24 Nov 2026

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-119417