Advisory

GHSA-2qh5-382h-3jpc

Also known as: CVE-2026-119417, CVE-2026-77634

Summary

CakePHP: SmtpTransport vulnerable to CRLF header injection

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-09-08 20:56 UTC
Modified
2026-10-31 02:55 UTC

Affected packages and fixes

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 4.5.0, fixed 4.5.12 (ecosystem)

Fixed versions

4.5.12

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 4.6.0, fixed 4.6.5 (ecosystem)

Fixed versions

4.6.5

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.1.9 (ecosystem)

Fixed versions

5.1.9

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 5.2.0, fixed 5.2.14 (ecosystem)

Fixed versions

5.2.14

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 5.3.0, fixed 5.3.7 (ecosystem)

Fixed versions

5.3.7

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences