{"id":"CVE-2026-34198","state":"PUBLISHED","title":"Coolify: Password reset link poisoning via X-Forwarded-Host header spoofing","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.","publishedAt":"2026-07-07T03:01:19.285Z","updatedAt":"2026-07-07T13:36:25.549Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["coollabsio coolify"],"affected":[{"vendor":"coollabsio","product":"coolify","versions":[{"version":"< 4.0.0-beta.471","status":"affected"}]}],"references":["https://github.com/coollabsio/coolify/security/advisories/GHSA-cgj8-7m5q-x5gv","https://github.com/coollabsio/coolify/pull/9193","https://github.com/coollabsio/coolify/commit/98569e4edbfc316877c9e0d27ea89fab3c49e3bd","https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.471"],"weaknesses":["CWE-640","CWE-346"],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/34xxx/CVE-2026-34198.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-34198","state":"PUBLISHED","datePublished":"2026-07-07T03:01:19.285Z","dateUpdated":"2026-07-07T13:36:25.549Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-03-26T15:57:52.323Z"},"containers":{"cna":{"title":"Coolify: Password reset link poisoning via X-Forwarded-Host header spoofing","descriptions":[{"lang":"en","value":"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":[{"vendor":"coollabsio","product":"coolify","versions":[{"version":"< 4.0.0-beta.471","status":"affected"}]}],"references":[{"url":"https://github.com/coollabsio/coolify/security/advisories/GHSA-cgj8-7m5q-x5gv","name":"https://github.com/coollabsio/coolify/security/advisories/GHSA-cgj8-7m5q-x5gv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/coollabsio/coolify/pull/9193","name":"https://github.com/coollabsio/coolify/pull/9193","tags":["x_refsource_MISC"]},{"url":"https://github.com/coollabsio/coolify/commit/98569e4edbfc316877c9e0d27ea89fab3c49e3bd","name":"https://github.com/coollabsio/coolify/commit/98569e4edbfc316877c9e0d27ea89fab3c49e3bd","tags":["x_refsource_MISC"]},{"url":"https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.471","name":"https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.471","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-640","lang":"en","description":"CWE-640: Weak Password Recovery Mechanism for Forgotten Password","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-346","lang":"en","description":"CWE-346: Origin Validation Error","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-07T03:01:19.285Z"},"source":{"advisory":"GHSA-cgj8-7m5q-x5gv","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/coollabsio/coolify/security/advisories/GHSA-cgj8-7m5q-x5gv","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-07T13:36:00.420701Z","id":"CVE-2026-34198","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-07T13:36:25.549Z"}}]}}}