CVE-2026-63220: CodeIgniter Spoofable Forwarded HTTPS Headers Vulnerability

MODERATE
Advisory Identifier: GHSA-7wmf-pw8j-mc78
CVSS 4.8
CWE-348
Published
Advisory Summary

CVE-2026-63220 is a MODERATE (CVSS 4.8) spoofable forwarded https headers vulnerability (CWE-348: Use of Less Trusted Source) affecting CodeIgniter libraries in the Packagist ecosystem. The issue involves spoofable forwarded https headers in incomingrequest::issecure(). Remediation is available by upgrading affected packages to version 4.7.4.

CVE-2026-63220 at a Glance

CVE Identifier CVE-2026-63220
GHSA Identifier GHSA-7wmf-pw8j-mc78
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-348: Use of Less Trusted Source
Affected Product CodeIgniter
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-63220

To remediate this vulnerability, upgrade all affected CodeIgniter dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

codeigniter4/framework fixed: 4.7.4
Upgrade codeigniter4/framework to 4.7.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for codeigniter4/framework

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-63220, inspect your project dependencies for CodeIgniter:

inspect dependencies for codeigniter4/framework

Analyze the terminal output to locate any version of CodeIgniter in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.7.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-348: Use of Less Trusted Source, where the product has two different sources of the same data or information, but it uses the source that has less support for verification, is less trusted, or is less resistant to attack. In CodeIgniter, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact `IncomingRequest::isSecure()` trusted the `X-Forwarded-Proto` and `Front-End-Https` headers from any incoming request. In affected deployments, an attacker could spoof these headers and cause the application to incorrectly treat an HTTP request as secure. This may impact applications that rely on `isSecure()`, `force_https()`, `forceGlobalSecureRequests`, or similar logic to enforce HTTPS-only access or make security-sensitive decisions. Exploitability depends on deployment configuration. Applications are most exposed if the backend is reachable directly over HTTP, or if a reverse proxy/load balancer forwards client-supplied forwarding headers without stripping or overwriting them. ### Patches Upgrade to v4.7.4 or later. ### Workarounds Users who cannot upgrade immediately should enforce HTTP-to-HTTPS redirects outside CodeIgniter, for example with Apache `.htaccess`/virtual host rules, nginx server blocks, Caddy site config, or load balancer redirect rules. Users should also ensure that reverse proxies strip or overwrite client-supplied `X-Forwarded-Proto` and `Front-End-Https` headers before forwarding requests to the application.

CVE-2026-63220 Affected CodeIgniter Versions

1 component(s)
Fixed Versions:
4.7.4
Product / Package Ecosystem Affected Versions Fixed Version
codeigniter4/framework
Packagist
< 4.7.4
4.7.4

References

Frequently Asked Questions

What is CVE-2026-63220?
CVE-2026-63220 is a security vulnerability in CodeIgniter involving Spoofable forwarded HTTPS headers in IncomingRequest::isSecure() under CWE-348: Use of Less Trusted Source.
Which CodeIgniter versions are affected?
Affected versions include releases prior to 4.7.4 across affected packages: codeigniter4/framework.
What version fixes CVE-2026-63220?
Upgrading to 4.7.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is codeigniter4/framework affected?
Yes, codeigniter4/framework is affected in releases prior to 4.7.4. Upgrade your dependency to 4.7.4 or later.
What is the CVSS score of CVE-2026-63220?
CVE-2026-63220 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-63220?
CVE-2026-63220 is classified under CWE-348: Use of Less Trusted Source (The product has two different sources of the same data or information, but it uses the source that has less support for verification, is less trusted, or is less resistant to attack.).
How can I check Packagist dependencies for CVE-2026-63220?
Run the dependency tree command: 'inspect dependencies for codeigniter4/framework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7wmf-pw8j-mc78",
  "modified" : "2026-08-07T18:21:54Z",
  "published" : "2026-08-07T18:21:54Z",
  "aliases" : [ "CVE-2026-63220" ],
  "summary" : "CodeIgniter: Spoofable forwarded HTTPS headers in IncomingRequest::isSecure()",
  "details" : "### Impact\n`IncomingRequest::isSecure()` trusted the `X-Forwarded-Proto` and `Front-End-Https` headers from any incoming request. In affected deployments, an attacker could spoof these headers and cause the application to incorrectly treat an HTTP request as secure.\n\nThis may impact applications that rely on `isSecure()`, `force_https()`, `forceGlobalSecureRequests`, or similar logic to enforce HTTPS-only access or make security-sensitive decisions.\n\nExploitability depends on deployment configuration. Applications are most exposed if the backend is reachable directly over HTTP, or if a reverse proxy/load balancer forwards client-supplied forwarding headers without stripping or overwriting them.\n\n### Patches\nUpgrade to v4.7.4 or later.\n\n### Workarounds\nUsers who cannot upgrade immediately should enforce HTTP-to-HTTPS redirects outside CodeIgniter, for example with Apache `.htaccess`/virtual host rules, nginx server blocks, Caddy site config, or load balancer redirect rules.\n\nUsers should also ensure that reverse proxies strip or overwrite client-supplied `X-Forwarded-Proto` and `Front-End-Https` headers before forwarding requests to the application.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "codeigniter4/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.7.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-7wmf-pw8j-mc78"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-63220"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/codeigniter4/CodeIgniter4/commit/ecbf044666bed41d23f07518096d9843fe6c08b0"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/codeigniter4/CodeIgniter4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/codeigniter4/CodeIgniter4/releases/tag/v4.7.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-348" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-07T18:21:54Z",
    "nvd_published_at" : "2026-07-31T04:17:24Z"
  }
}