GHSA-2qh5-382h-3jpc

    Dashboard / Vulnerabilities / GHSA-2qh5-382h-3jpc

    GHSA-2qh5-382h-3jpc

    Published: 8 Sept 2026Last Modified: 8 Sept 2026

    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.

    Affected packages

    Package

    Name: cakephp/cakephp

    Purl: pkg:composer/cakephp/cakephp

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 4.5.0
    Fixed -4.5.12

    Affected versions

    4.5.0
    4.5.1
    4.5.10
    4.5.11
    4.5.2
    4.5.3
    4.5.4
    4.5.5
    4.5.6
    4.5.7
    4.5.8
    4.5.9

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High