{"items":[{"id":"NVI-00007156","kind":"vulnerability","title":"Codeigniter4's Secure or HttpOnly flag set in Config\\Cookie is not reflected in Cookies issued","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-745p-r637-7vvp","CVE-2022-39284"],"plain_summary":"OSV carries this publisher advisory for codeigniter4/framework. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 4.2.7 for codeigniter4/framework. Confirm the publisher’s latest guidance.","source_ids":["sr-d11d3741ecef1152e6a0f378500984c9"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-12af65556bfb8b26124da73eb2b26a06"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-06-17T04:58:04.160Z","value":"2.6 LOW (3.1)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-12af65556bfb8b26124da73eb2b26a06"},{"kind":"CVSS","as_of":"2026-06-17T04:58:04.160Z","value":"4.3 MEDIUM (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-12af65556bfb8b26124da73eb2b26a06"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-d11d3741ecef1152e6a0f378500984c9","url":"https://github.com/advisories/GHSA-745p-r637-7vvp","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-745p-r637-7vvp","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.944Z"},{"id":"sr-12af65556bfb8b26124da73eb2b26a06","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39284","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2022-39284","publisher":"NIST National Vulnerability Database","observed_at":"2026-10-31T23:14:33.801Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-d11d3741ecef1152e6a0f378500984c9"],"technology":"codeigniter4/framework","known_exclusions":[],"conditions_summary":"### Impact\nSetting `$secure` or `$httponly` value to `true` in `Config\\Cookie` is not reflected in `set_cookie()` or `Response::setCookie()`.\n\n> **Note**\n> This vulnerability does not affect session cookies.\n\nThe following code does not issue a cookie with the secure flag even if you set `$secure = true` in `Config\\Cookie`.\n\n```php\nhelper('cookie');\n\n$cookie = [\n    'name'  => $name,\n    'value' => $value,\n];\nset_cookie($cookie);\n// or\n$this->response->setCookie($cookie);\n```\n\n### Patches\nUpgrade to v4.2.7 or later.\n\n### Workarounds\n1. Specify the options explicitly.\n   ```php\n   helper('cookie');\n\n   $cookie = [\n       'name'     => $name,\n       'value'    => $value,\n       'secure'   => true,\n       'httponly' => true,\n   ];\n   set_cookie($cookie);\n   // or\n   $this->response->setCookie($cookie);\n   ```\n2. Use Cookie object.\n   ```php\n   use CodeIgniter\\Cookie\\Cookie;\n\n   helper('cookie');\n\n   $cookie = new Cookie($name, $value);\n   set_cookie($cookie);\n   // or\n   $this->response->setCookie($cookie);\n   ```\n\n### References\n- https://codeigniter4.github.io/userguide/helpers/cookie_helper.html#set_cookie\n- https://codeigniter4.github.io/userguide/outgoing/response.html#CodeIgnite","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 4.2.7"]}],"null_published_at":"2026-11-01T01:04:01.260Z","source_updated_at":"2024-02-16T08:04:07.612Z","source_disclosed_at":"2022-10-06T20:01:41.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Source facts changed; compare the preserved prior revision.","null_first_observed_at":"2026-10-31T21:41:59.944Z"},{"id":"NVI-00007156","kind":"vulnerability","title":"Codeigniter4's Secure or HttpOnly flag set in Config\\Cookie is not reflected in Cookies issued","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-745p-r637-7vvp","CVE-2022-39284"],"plain_summary":"OSV carries this publisher advisory for codeigniter4/framework. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 4.2.7 for codeigniter4/framework. Confirm the publisher’s latest guidance.","source_ids":["sr-d11d3741ecef1152e6a0f378500984c9"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-d11d3741ecef1152e6a0f378500984c9","url":"https://github.com/advisories/GHSA-745p-r637-7vvp","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-745p-r637-7vvp","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.944Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-d11d3741ecef1152e6a0f378500984c9"],"technology":"codeigniter4/framework","known_exclusions":[],"conditions_summary":"### Impact\nSetting `$secure` or `$httponly` value to `true` in `Config\\Cookie` is not reflected in `set_cookie()` or `Response::setCookie()`.\n\n> **Note**\n> This vulnerability does not affect session cookies.\n\nThe following code does not issue a cookie with the secure flag even if you set `$secure = true` in `Config\\Cookie`.\n\n```php\nhelper('cookie');\n\n$cookie = [\n    'name'  => $name,\n    'value' => $value,\n];\nset_cookie($cookie);\n// or\n$this->response->setCookie($cookie);\n```\n\n### Patches\nUpgrade to v4.2.7 or later.\n\n### Workarounds\n1. Specify the options explicitly.\n   ```php\n   helper('cookie');\n\n   $cookie = [\n       'name'     => $name,\n       'value'    => $value,\n       'secure'   => true,\n       'httponly' => true,\n   ];\n   set_cookie($cookie);\n   // or\n   $this->response->setCookie($cookie);\n   ```\n2. Use Cookie object.\n   ```php\n   use CodeIgniter\\Cookie\\Cookie;\n\n   helper('cookie');\n\n   $cookie = new Cookie($name, $value);\n   set_cookie($cookie);\n   // or\n   $this->response->setCookie($cookie);\n   ```\n\n### References\n- https://codeigniter4.github.io/userguide/helpers/cookie_helper.html#set_cookie\n- https://codeigniter4.github.io/userguide/outgoing/response.html#CodeIgnite","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 4.2.7"]}],"null_published_at":"2026-10-31T22:13:14.314Z","source_updated_at":"2024-02-16T08:04:07.612Z","source_disclosed_at":"2022-10-06T20:01:41.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:41:59.944Z"}],"next_cursor":null,"snapshot_revision":"40769"}