All vulnerabilities

Servers and applications

GHSA-8cr2-7rvm-hxq5

Account takeover via host header in the identity provider flow of Login V2

Severity
High 8.1
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
4.20.8
Weakness
Open redirect (CWE-601)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Sources
Project advisories (GitHub)

Description

ZITADEL’s hosted Login V2 UI allowed an unauthenticated attacker to have a victim’s sign-in at an external identity provider returned to a host of the attacker’s choosing, together with the one-time values that complete that sign-in. If the victim signed in at the identity provider through a link prepared by the attacker, the attacker could finish the login in their own browser and obtain a session as the victim.

Login V2 built the address the browser returns to after an identity provider sign-in from the public host request headers (x-zitadel-public-host, x-zitadel-forward-host, x-forwarded-host), without verifying that host against the instance’s trusted domains as is done for links sent by email.

An attacker who can send requests to the login and gets a victim to complete a sign-in at an external identity provider through a link the attacker prepared can:

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

Workarounds

The recommended solution is to upgrade to a patched version. There is no configuration that fully closes this gap on unpatched versions.

As a partial mitigation, a ZITADEL fronting proxy can be configured to strip or overwrite the x-zitadel-public-host header (along with x-zitadel-forward-host and x-forwarded-host) on all inbound requests, so that the public host cannot be set by a client.

Workarounds as given by zitadel/zitadel's security advisory.

Affected software

SoftwareAffected versions
ZITADELServers and applications · github:zitadel/zitadel
  • From 4.0.0 before 4.20.8

About ZITADEL

ZITADEL - Identity infrastructure, simplified for you.

From its GitHub repository.
GitHub stars
15,672GitHub, 29 Nov 2026
Forks
1,447GitHub, 29 Nov 2026
Latest release
v4.20.6GitHub, 29 Nov 2026
Released
25 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
16 Mar 2020GitHub

References