Description
Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.471, the TrustProxies middleware trusts all proxies ($proxies = '*'), accepting X-Forwarded-Host from any source. The TrustHosts middleware, intended to prevent host header attacks, has a circular caching dependency that prevents it from ever validating hosts. When a password reset is requested, the ResetPassword notification generates the reset URL using url(route(..., false)), which derives the host from the (spoofable) request. An unauthenticated attacker can trigger a password reset email containing a link pointing to an attacker-controlled domain, enabling token theft and account takeover. This issue is fixed in version 4.0.0-beta.471.
Published: 2026-07-07
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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 a circular caching dependency prevents the TrustHosts middleware from validating hosts. 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. Capturing the returned token allows the attacker to complete the reset, gaining full control of the victim’s account. The weaknesses align with CWE‑346 (Untrusted Content Serving) and CWE‑640 (Trusting of an Untrusted Delegated Proxy).

Affected Systems

Any deployment of Coolify by coollabsio before version 4.0.0-beta.471 is susceptible, as the vulnerable code resides in the web application’s trust‑proxy handling and password‑reset logic.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, and the EPSS score of less than 1 % combined with no listing in the CISA KEV catalog suggests that exploitation has not yet been observed. The exploit can be carried out remotely via a simple HTTP request that includes a forged X-Forwarded-Host header; no authentication is required to trigger the password‑reset flow. If successful, the attacker obtains an token that permits account takeover.

Generated by OpenCVE AI on August 1, 2026 at 17:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Coolify to version 4.0.0‑beta.471 or later, where proxy trust is restricted and the host‑validation bug is fixed.
  • If an immediate upgrade is not possible, reconfigure the TrustProxies setting to accept only known proxy IP addresses or disable it entirely, and enable the TrustHosts middleware so that the host header is validated against the expected domain.
  • Consider disabling or strictly validating the X-Forwarded-Host header entirely to prevent spoofing of the host value used in password‑reset URLs.

Generated by OpenCVE AI on August 1, 2026 at 17:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 07 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 07 Jul 2026 05:00:00 +0000

Type Values Removed Values Added
First Time appeared Coollabsio
Coollabsio coolify
Vendors & Products Coollabsio
Coollabsio coolify

Tue, 07 Jul 2026 03:30:00 +0000

Type Values Removed Values Added
Description Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.471, the TrustProxies middleware trusts all proxies ($proxies = '*'), accepting X-Forwarded-Host from any source. The TrustHosts middleware, intended to prevent host header attacks, has a circular caching dependency that prevents it from ever validating hosts. When a password reset is requested, the ResetPassword notification generates the reset URL using url(route(..., false)), which derives the host from the (spoofable) request. An unauthenticated attacker can trigger a password reset email containing a link pointing to an attacker-controlled domain, enabling token theft and account takeover. This issue is fixed in version 4.0.0-beta.471.
Title Coolify: Password reset link poisoning via X-Forwarded-Host header spoofing
Weaknesses CWE-346
CWE-640
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N'}


Subscriptions

Coollabsio Coolify
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-07T13:36:25.549Z

Reserved: 2026-03-26T15:57:52.323Z

Link: CVE-2026-34198

cve-icon Vulnrichment

Updated: 2026-07-07T13:36:20.642Z

cve-icon NVD

Status : Deferred

Published: 2026-07-07T04:17:50.847

Modified: 2026-07-07T14:16:30.377

Link: CVE-2026-34198

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T18:00:12Z

Weaknesses
  • CWE-346

    Origin Validation Error

  • CWE-640

    Weak Password Recovery Mechanism for Forgotten Password