All vulnerabilities

Servers and applications

CVE-2026-34198

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

Severity
Medium 5.3
Published
2 Jul 2026
Last changed
2 Jul 2026
Added to UpHeron
22 Oct 2026
Fixed in
4.0.0-beta.471
Exploit chance
0.2% in the next 30 daysHigher than 6% of CVEs. EPSS by FIRST, 19 Nov 2026
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
Attacker can
Change data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Also known as
GHSA-cgj8-7m5q-x5gv
Sources
Project advisories (GitHub)

Description

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.

The TrustProxies middleware trusts X-Forwarded-* headers from any IP address:

This is in the global middleware stack, running on every request:

The TrustHosts middleware is intended to restrict accepted hostnames, but a caching dependency prevents it from ever activating:

The circular dependency:

From coollabsio/coolify's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
CoolifyServers and applications · github:coollabsio/coolify
  • Every version before 4.0.0-beta.471

About Coolify

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

From its GitHub repository.
Docker Hub pulls
4,970,195Docker Hub, 15 Nov 2026
GitHub stars
66,095GitHub, 15 Nov 2026
Forks
5,989GitHub, 15 Nov 2026
Latest release
v4.7.5GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
License
Apache-2.0GitHub
First published on GitHub
25 Jan 2021GitHub

References