CVE-2022-39284

    Dashboard / Vulnerabilities / CVE-2022-39284

    CVE-2022-39284

    Published: 6 Oct 2022Last Modified: 12 Aug 2026

    Summary: Secure or HttpOnly flag set in Config\Cookie is not reflected in Cookies issued in Codeigniter4

    Details: CodeIgniter is a PHP full-stack web framework. In versions prior to 4.2.7 setting `$secure` or `$httponly` value to `true` in `Config\Cookie` is not reflected in `set_cookie()` or `Response::setCookie()`. As a result cookie values are erroneously exposed to scripts. It should be noted that this vulnerability does not affect session cookies. Users are advised to upgrade to v4.2.7 or later. Users unable to upgrade are advised to manually construct their cookies either by setting the options in code or by constructing Cookie objects. Examples of each workaround are available in the linked GHSA.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Introduced- 47dbb16bb5e5784f45bf09a7380016f2d36f7c39

    Affected versions

    v4.2.6
    v4.2.5
    v4.2.4
    v4.2.3
    v4.2.2
    v4.2.1
    v4.2.0

    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
    CVE-2022-39284 | CVE-DB