CVE-2026-63220: CodeIgniter: Spoofable forwarded HTTPS headers in IncomingRequest::isSecure()

Published Jul 31, 2026
·
Updated

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(), forcehttps(), 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.

Other sources

CodeIgniter is a PHP full-stack web framework. In versions prior to 4.7.4, IncomingRequest::isSecure() trusted the X-Forwarded-Proto and Front-End-Https headers from any incoming request, allowing an attacker could spoof these headers and cause the application to incorrectly treat an HTTP request as secure. This may have impacted applications that rely on isSecure(), forcehttps(), 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. This issue has been fixed in version 4.7.4.

— MITRE

CodeIgniter: Spoofable forwarded HTTPS headers in IncomingRequest::isSecure()

— Packagist

Affected Software

3 affected componentsFixes available
CodeIgniter Codeigniter<4.7.4
composer/codeigniter4/framework<4.7.4
4.7.4
composer/codeigniter4/framework<4.7.4
4.7.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/codeigniter4/framework to a version that resolves this vulnerability.

    Fixed in 4.7.4
  2. Upgrade

    Upgrade CodeIgniter to a version that resolves this vulnerability.

    Fixed in 4.7.4
  3. Configuration

    Configure the reverse proxy/load balancer to strip or overwrite any incoming client-supplied `X-Forwarded-Proto` and `Front-End-Https` headers before the request reaches CodeIgniter.

    Reverse proxy/load balancer Strip/overwrite client-supplied headers = X-Forwarded-Proto and Front-End-Https should be stripped or overwritten before forwarding
  4. Compensating control

    If you cannot upgrade immediately, enforce HTTP-to-HTTPS redirects outside CodeIgniter (e.g., Apache `.htaccess`/virtual host rules, nginx server blocks, Caddy site config, or load balancer redirect rules).

Event History

Jul 31, 2026
CVE Published
via MITRE·03:50 AM
Data Sourced
via MITRE·03:50 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 AM
DescriptionSeverityWeakness
Aug 7, 2026
Advisory Published
via GitHub·06:21 PM
Data Sourced
via GitHub·06:21 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·06:21 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-63220?

CVE-2026-63220 has a medium severity rating of 4.8.

2

How do I fix CVE-2026-63220?

To fix CVE-2026-63220, update CodeIgniter to version 4.7.4 or later.

3

What is the risk associated with CVE-2026-63220?

The risk associated with CVE-2026-63220 is that attackers can spoof forwarded HTTPS headers.

4

What versions of CodeIgniter are affected by CVE-2026-63220?

CodeIgniter versions prior to 4.7.4 are affected by CVE-2026-63220.

5

What is the nature of the vulnerability in CVE-2026-63220?

CVE-2026-63220 allows the application to incorrectly treat HTTP requests as secure due to trusted spoofed headers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203