CVE-2026-34198
JSON

5.3medium

Coolify: Password reset link poisoning via X-Forwarded-Host header spoofing

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.17% (higher than 6% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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

Product or packageVersionsReported by
coollabsio coolify< 4.0.0-beta.471CVE List

Classification

CWE-346CWE-640

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Coolify es una herramienta de código abierto y autoalojable para gestionar servidores, aplicaciones y bases de datos. Antes de la versión 4.0.0-beta.471, el middleware TrustProxies confía en todos los proxies ($proxies = ’*’), aceptando X-Forwarded-Host de cualquier fuente. El middleware TrustHosts, destinado a prevenir ataques de encabezado de host, tiene una dependencia de caché circular que le impide validar hosts. Cuando se solicita un restablecimiento de contraseña, la notificación ResetPassword genera la URL de restablecimiento utilizando url(route(..., false)), que deriva el host de la solicitud (suplantable). Un atacante no autenticado puede activar un correo electrónico de restablecimiento de contraseña que contiene un enlace que apunta a un dominio controlado por el atacante, lo que permite el robo de tokens y la toma de control de la cuenta. Este problema se corrige en la versión 4.0.0-beta.471.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-34198 changed 2026-07-07CVE Terms of Use
NVDCVE-2026-34198 changed 2026-10-25Public domain