Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.3
CVE-2026-119417: CakePHP email sending can be hijacked via header injection
CVE-2026-119417 · published 5 days ago
Summary
Certain versions of CakePHP (up to 5.4.3) let attackers add a single line‑break character to custom email headers, which can create extra headers like Bcc and change where messages go. This can let malicious users redirect or copy outgoing email. Update to the latest patched release of CakePHP or apply a fix that fully sanitises header values before sending mail.
What to do
- Update cakephp cakephp to version 4.5.12.
- Update cakephp cakephp to version 4.6.5.
- Update cakephp cakephp to version 5.1.9.
- Update cakephp cakephp to version 5.2.14.
- Update cakephp cakephp to version 5.3.7.
- Update cakephp cakephp/cakephp to version 4.5.12.
- Update cakephp cakephp/cakephp to version 4.6.5.
- Update cakephp cakephp/cakephp to version 5.1.9.
- Update cakephp cakephp/cakephp to version 5.2.14.
- Update cakephp cakephp/cakephp to version 5.3.7.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| composer | cakephp | cakephp |
>= 4.5.0, < 4.5.12 >= 4.6.0, < 4.6.5 >= 5.0.0, < 5.1.8 >= 5.2.0, < 5.2.14 >= 5.3.0, < 5.3.7 Fix: upgrade to 4.5.12
|
| Packagist | cakephp | cakephp/cakephp |
>= 4.5.0, < 4.5.12 >= 4.6.0, < 4.6.5 >= 5.0.0, < 5.1.9 >= 5.2.0, < 5.2.14 >= 5.3.0, < 5.3.7 Fix: upgrade to 4.5.12
|
| – | cakephp | cakephp | >= 4.5.0, < 4.5.12 |
| Debian:11 | debian | cakephp | All versions |
Original advisory text
CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport
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.
References
- https://security-tracker.debian.org/tracker/CVE-2026-77634 Vendor Advisory
- https://github.com/cakephp/cakephp Product
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77634... Vendor Advisory
- https://github.com/advisories/GHSA-2qh5-382h-3jpc
- https://abraxaslabs.tech/research/cakephp-smtp-crlf Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-77634 Vendor Advisory
- https://github.com/cakephp/cakephp/commit/08188962bcd99a95da1e49f62e786f2d688f1e... URL
- https://github.com/cakephp/cakephp/commit/2afe42b02d8ddc5d442bca5e8bb61910a72764... URL
- https://github.com/cakephp/cakephp/commit/3e09dae6cbdc983754fa3a8e6aae74da102a3e... URL
- https://github.com/cakephp/cakephp/commit/b67b622457362b075bb37e625a82af73a0b3c9... URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-1194... Vendor Advisory
- https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91... Third Party Advisory
- https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91... Third Party Advisory
- https://github.com/cakephp/cakephp/commit/2b9326ca3f17b2e940c6c9f50d821e9929c00f... Patch
- https://github.com/cakephp/cakephp/commit/3b997318539c48a423b77651c61c9f229cbf9e... Patch
- https://github.com/cakephp/cakephp/commit/773587406a29eedc2e0031e12683b08e112cc5... Patch
- https://github.com/cakephp/cakephp/commit/e5936b286cc389b1497fd9b675a2133ba9ac55... Patch
- https://github.com/cakephp/cakephp/pull/19695 Patch
- https://github.com/cakephp/cakephp/security/advisories/GHSA-2qh5-382h-3jpc Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-119417 Vendor Advisory
- https://www.vulncheck.com/advisories/cakephp-through-5.4.3-email-header-injectio... Vendor Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
7.3
High
Type
CWE-93Improper Neutralization of CRLF Sequences ('CRLF Injection')
Timeline
Published30 Oct 2026
Updated4 Nov 2026
First seen24 Aug 2026
Sources
CVE-2026-77634 · OSV
GHSA-2qh5-382h-3jpc · GHSA
DEBIAN-CVE-2026-77634 · OSV
CVE-2026-77634 · NVD
CVE-2026-77634 · MITRE
GHSA-2qh5-382h-3jpc · OSV
CVE-2026-119417 · OSV
Track software like this
Free during beta