CakePHP: SmtpTransport vulnerable to CRLF header injection
CVE-2026-119417 · CVE-2026-77634 · GHSA-2qh5-382h-3jpc · published 8 Sept 2026
How serious is it
- Severity: high.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-119417?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
cakephp/cakephp(Packagist) >= 4.5.0, < 4.5.12cakephp/cakephp(Packagist) >= 4.6.0, < 4.6.5cakephp/cakephp(Packagist) >= 5.0.0, < 5.1.9cakephp/cakephp(Packagist) >= 5.2.0, < 5.2.14cakephp/cakephp(Packagist) >= 5.3.0, < 5.3.7
How to check
- Run
composer show cakephp/cakephpin your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- On >= 4.5.0, < 4.5.12: Upgrade
cakephp/cakephpto 4.5.12 or later, commit the lockfile and redeploy. - On >= 4.6.0, < 4.6.5: Upgrade
cakephp/cakephpto 4.6.5 or later, commit the lockfile and redeploy. - On >= 5.0.0, < 5.1.9: Upgrade
cakephp/cakephpto 5.1.9 or later, commit the lockfile and redeploy. - On >= 5.2.0, < 5.2.14: Upgrade
cakephp/cakephpto 5.2.14 or later, commit the lockfile and redeploy. - On >= 5.3.0, < 5.3.7: Upgrade
cakephp/cakephpto 5.3.7 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
### Impact
Custom mail headers added with `Message::setHeaders()` or `addHeaders()` do not have CRLF replaced allowing header injection if user controlled data is added to message headers without stripping CRLF bytes.
### Patches
5.3.7, 5.2.14, 5.1.9, 4.6.5, 4.5.12 contain fixes for this issue.
### Workarounds
You can strip CRLF bytes from email header values before setting header values.
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/cakephp/cakephp/security/advisories/GHSA-2qh5-382h-3jpc
- nvd.nist.gov/vuln/detail/CVE-2026-77634
- github.com/cakephp/cakephp/commit/08188962bcd99a95da1e49f62e786f2d688f1e41
- github.com/cakephp/cakephp/commit/2afe42b02d8ddc5d442bca5e8bb61910a727646e
- github.com/cakephp/cakephp/commit/3e09dae6cbdc983754fa3a8e6aae74da102a3ea1
- github.com/cakephp/cakephp/commit/b67b622457362b075bb37e625a82af73a0b3c9c3
- github.com/cakephp/cakephp
Merged from OSV. Last updated 1 Nov 2026. All vulnerabilities · RSS · JSON