CVE-2022-39284

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-39284
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-39284.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-39284
Aliases
Published
2022-10-06T00:00:00Z
Modified
2025-10-22T18:30:10.305596Z
Severity
  • 2.6 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N CVSS Calculator
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.

Database specific
{
    "cwe_ids": [
        "CWE-665"
    ]
}
References

Affected packages

Git / github.com/codeigniter4/codeigniter4

Affected ranges

Type
GIT
Repo
https://github.com/codeigniter4/codeigniter4
Events

Affected versions

4.*

4.0.0
4.0.2

v4.*

v4.0.1
v4.0.3
v4.0.4
v4.0.5
v4.1.0
v4.1.1
v4.1.2
v4.1.3
v4.1.4
v4.1.5
v4.1.6
v4.1.7
v4.1.8
v4.1.9
v4.2.0
v4.2.1
v4.2.2
v4.2.3
v4.2.4
v4.2.5
v4.2.6