# CVE-2026-119417: CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.47% (percentile 33, 2026-11-28)
- **CWE:** CWE-93
- **Aliases:** CVE-2026-77634, GHSA-2qh5-382h-3jpc
- **Published:** 2026-08-24T20:33:46.836Z
- **Modified:** 2026-11-20T15:17:38.760Z

## Who should check

- Projects that depend on Packagist package cakephp/cakephp (\>= 4.5.0, \< 4.5.12)
- Anyone running cakephp \>= 4.5.12, \<= 4.5.12; \>= 4.6.5, \< 4.6.6; \>= 5.1.8, \<= 5.1.10; \>= 5.2.14, \< 5.2.16; \>= 5.3.7, \< 5.3.8; \>= 5.4.0, \< 5.4.4

## 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.

## Affected and fixed versions

- Packagist `cakephp/cakephp`: affected \>= 4.5.0, \< 4.5.12; fixed 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7 (osv)
- cakephp: \>= 4.5.12, \<= 4.5.12; \>= 4.6.5, \< 4.6.6; \>= 5.1.8, \<= 5.1.10; \>= 5.2.14, \< 5.2.16; \>= 5.3.7, \< 5.3.8; \>= 5.4.0, \< 5.4.4 (cvelist)

## Mitigation

- Upgrade cakephp/cakephp to one of 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-119417. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-119417.md
Affected: cakephp/cakephp >= 4.5.0, < 4.5.12
Fixed in: 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7

Steps:
1. Search this machine and project for cakephp/cakephp (Packagist), cakephp: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-119417 being exploited?

There is no confirmed exploitation: CVE-2026-119417 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.47% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-119417?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-119417?

cakephp/cakephp \>= 4.5.0, \< 4.5.12.

### Is there a fix for CVE-2026-119417?

Yes. Fixed in 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7. Upgrade cakephp/cakephp to one of 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-119417?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/cakephp/cakephp/security/advisories/GHSA-2qh5-382h-3jpc>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-77634>
- patch: <https://github.com/cakephp/cakephp/commit/2b9326ca3f17b2e940c6c9f50d821e9929c00f39>
- patch: <https://github.com/cakephp/cakephp/commit/773587406a29eedc2e0031e12683b08e112cc538>
- patch: <https://github.com/cakephp/cakephp/commit/3b997318539c48a423b77651c61c9f229cbf9e33>
- patch: <https://github.com/cakephp/cakephp/commit/e5936b286cc389b1497fd9b675a2133ba9ac557d>
- patch: <https://github.com/cakephp/cakephp/pull/19695>
- patch: <https://github.com/cakephp/cakephp/commit/08188962bcd99a95da1e49f62e786f2d688f1e41>
- patch: <https://github.com/cakephp/cakephp/commit/2afe42b02d8ddc5d442bca5e8bb61910a727646e>
- patch: <https://github.com/cakephp/cakephp/commit/3e09dae6cbdc983754fa3a8e6aae74da102a3ea1>
- patch: <https://github.com/cakephp/cakephp/commit/b67b622457362b075bb37e625a82af73a0b3c9c3>
- article: <https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/SmtpTransport.php#L574>
- article: <https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/MailTransport.php#L57>
- other: <https://abraxaslabs.tech/research/cakephp-smtp-crlf>
- other: <https://github.com/cakephp/cakephp>
- other: <https://www.vulncheck.com/advisories/cakephp-through-5.4.3-email-header-injection-via-bare-cr-lf-in-smtptransport-and-mailtransport>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-77634>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2qh5-382h-3jpc> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-119417> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-119417>
