CVE-2026-142635: Laravel: IP Spoofing via Host Header in TrustProxies Middleware Forge/Vapor Auto-Detection
Laravel is a web application framework. Prior to 13.43.0 and 12.73.0, On applications with no trusted proxies configured, Laravel could treat a request as coming through a trusted Forge or Vapor proxy based on a header the visitor controls. An attacker could use this to fake their IP address and make an insecure request look like HTTPS. This can let an attacker get around IP-based rate limits, such as login throttling, and IP allowlists. Only applications that haven't configured trusted proxies, and whose web server accepts any hostname, are affected. - Fixed in [#62484]( This issue is fixed in versions 13.43.0 and 12.73.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 13.43.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 12.73.0
Event History
Frequently Asked Questions
Which deployments are affected?
Affected deployments are Laravel applications running before 13.43.0 or 12.73.0 that have no trusted proxies configured and are served by a web server that accepts any hostname. Applications that do not meet both configuration conditions are not described as affected.
What does an attacker need to exploit this issue?
The attacker needs network access to send requests to the application and the ability to supply the relevant visitor-controlled header. No authentication or user interaction is required according to the provided vector.
What protections can be bypassed?
An attacker may spoof their apparent source IP address and make an insecure request appear to use HTTPS. This can bypass IP-based login throttling, other IP rate limits, and IP allowlists.
What should be done if upgrading cannot happen immediately?
Configure trusted proxies explicitly and ensure the web server does not accept arbitrary hostnames. These are the configuration conditions identified as necessary for exposure.
Which versions contain the fix?
The issue is fixed in Laravel 13.43.0 and 12.73.0.