CodeIgniter: Spoofable forwarded HTTPS headers in IncomingRequest::isSecure()
Published 7 Aug 2026 · Updated 7 Aug 2026
Affected package
- Affected
- <4.7.4
- Fixed in
- 4.7.4
composer require codeigniter4/framework:^4.7.4Details
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.
Is GHSA-7wmf-pw8j-mc78 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected codeigniter4/framework, and gives you the command that fixes it.
References
- Linkgithub.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-7wmf-pw8j-mc78
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-63220
- Linkgithub.com/codeigniter4/CodeIgniter4/commit/ecbf044666bed41d23f07518096d9843fe6c08b0
- Packagegithub.com/codeigniter4/CodeIgniter4
- Linkgithub.com/codeigniter4/CodeIgniter4/releases/tag/v4.7.4
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.