GitHub Advisoryadvisory · Packagist

GHSA-7wmf-pw8j-mc78 CodeIgniter: Spoofable forwarded HTTPS headers in IncomingRequest::isSecure()

MEDIUM Published 2026-08-07 Modified 2026-08-07 Official page ↗
Aliases
CVE-2026-63220
Ecosystem
Packagist
Packages
codeigniter4/framework
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Weaknesses
CWE-348
Reviewed
2026-08-07

Affected packages

• Packagist codeigniter4/framework: < 4.7.4 → fixed in 4.7.4

Description

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.

Related

Alias · CVE (1)

  • CVE-2026-63220 CodeIgniter is a PHP full-stack web framework. vulnerability

Weakness · CWE (1)

  • CWE-348 Use of Less Trusted Source weakness

References