Impact
The vulnerability is caused by the TrustProxies middleware automatically trusting all proxy requests and accepting an X-Forwarded-Host header from any source, while the TrustHosts middleware fails to validate hosts due to a circular caching dependency. When a user requests a password reset, the reset URL is constructed from the host value supplied by the request. An unauthenticated attacker can therefore send a forged X-Forwarded-Host header to generate a reset email that points to an attacker-controlled domain. The attacker can capture the token and complete the reset process, gaining full control of the victim’s account. This satisfies weaknesses classified as CWE-346 (Untrusted Content Serving) and CWE-640 (Trusting of an Untrusted Delegated Proxy).
Affected Systems
Any deployment of Coolify before version 4.0.0-beta.471 is affected. The vulnerable components reside within the Coolify platform provided by coollabsio.
Risk and Exploitability
The CVSS score of 5.3 indicates moderate severity. With an EPSS score less than 1 % and no listing in the CISA KEV catalog, there is no evidence of confirmed exploitation yet. The attack can be executed remotely via a standard HTTP request that includes a forged X-Forwarded-Host header; no authentication is required to trigger the password-reset flow.
OpenCVE Enrichment