# CVE-2022-39284: Codeigniter4's Secure or HttpOnly flag set in Config\Cookie is not reflected in Cookies issued

Source: https://junglewise.ai/threats/cve-2022-39284-codeigniter4-s-secure-or-httponly-flag-set-in-config-cookie-is  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-10-06  
License: CC BY 4.0 with a link back

CVE-2022-39284 · Severity: low · CVSS 3.1 · Published 2022-10-06

Codeigniter4's Secure or HttpOnly flag set in Config\Cookie is not reflected in Cookies issued

Technologies: [codeigniter4/framework (Packagist)](https://junglewise.ai/threats/technologies/codeigniter4-framework). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2022-39284 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-39284 being exploited in the wild.

**How severe is CVE-2022-39284?** Low severity, with a CVSS score of 3.1, published 6 October 2022.

**Which products and versions are affected?** codeigniter4/framework (Packagist) ECOSYSTEM:introduced=0,fixed=4.2.7.

**Is there a fix for CVE-2022-39284?** Yes. codeigniter4/framework (Packagist): upgrade to 4.2.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-39284?** Check whether you run codeigniter4/framework (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- codeigniter4/framework (Packagist): upgrade to 4.2.7 or later

  ```sh
  composer require codeigniter4/framework:^4.2.7
  ```


## Affected products

- codeigniter4/framework (Packagist) ECOSYSTEM:introduced=0,fixed=4.2.7

## Identifiers

- CVE-2022-39284
- GHSA-745p-r637-7vvp

## Related threats

- [CodeIgniter CodeIgniter4 unrestricted file upload in is_image and mime_in rules](https://junglewise.ai/threats/cve-2026-63223-codeigniter-codeigniter4-unrestricted-file-upload-in-is-image-and)
- [CodeIgniter Path Traversal in UploadedFile move method](https://junglewise.ai/threats/cve-2026-63222-codeigniter-path-traversal-in-uploadedfile-move-method)
- [CodeIgniter SQL injection in Query Builder deleteBatch](https://junglewise.ai/threats/cve-2026-63221-codeigniter-sql-injection-in-query-builder-deletebatch)
- [CodeIgniter CodeIgniter4 header spoofing in IncomingRequest::isSecure](https://junglewise.ai/threats/cve-2026-63220-codeigniter-codeigniter4-header-spoofing-in-incomingrequest)
- [CodeIgniter CodeIgniter4 file upload validation bypass in ext_in rule](https://junglewise.ai/threats/cve-2026-48062-codeigniter-codeigniter4-file-upload-validation-bypass-in-ext-in)
