Vulnerability · Published Jul 7, 2026 · Assigned by GitHub_M
CVE-2026-34198Coolify: Password reset link poisoning via X-Forwarded-Host header spoofing
Medium 5.3
In plain English
A medium-severity security flaw in coolify from coollabsio. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 6% of all known vulnerabilities).
Official 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.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| coollabsio | coolify | < 4.0.0-beta.471 |
Weakness: CWE-640, CWE-346 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
References
- https://github.com/coollabsio/coolify/security/advisories/GHSA-cgj8-7m5q-x5gv x_refsource_CONFIRM
- https://github.com/coollabsio/coolify/pull/9193 x_refsource_MISC
- https://github.com/coollabsio/coolify/commit/98569e4edbfc316877c9e0d27ea89fab3c49e3bd x_refsource_MISC
- https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.471 x_refsource_MISC