{"id":"CVE-2026-144969","aliases":["DHI-vvym-ubuu-zmoo-chj4","EUVD-2026-144244","GHSA-8cr2-7rvm-hxq5","GHSA-wxg2-6952-5933"],"status":"published","title":"ZITADEL 4.0.0 before 4.20.8 Account Takeover via Login V2 IdP Host Header","description":"ZITADEL 4.0.0 before 4.20.8 contains an account takeover vulnerability in Login V2 that allows unauthenticated attackers to hijack external IdP sign-ins by spoofing public host headers. Attackers send victims an IdP authorization link built with a spoofed x-forwarded-host header, capturing the intent ID and token to obtain sessions as victims, including administrators.","severity":{"version":"4.0","score":8.6,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high","assessor":"cna","from":"cve","others":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high","assessor":"cna","from":"cve"},{"version":"4.0","score":8.6,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","from":"ghsa"}]},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-601"],"published":"2026-12-02T14:26:41Z","modified":"2026-12-04T16:00:22Z","affected":[{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"zitadel-4-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"zitadel-4-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"zitadel-4-fips-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"zitadel-4-fips-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"zitadel-4-fips-license","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"zitadel-4-fips-license","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"zitadel-4-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"zitadel-4-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"zitadel-4-license","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"zitadel-4-license","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"zitadel-4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"zitadel-4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"zitadel-4-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-0"}]}],"versions":["4.20.3-0","4.20.4-0","4.20.5-0","4.20.6-0","4.20.7-0","4.20.8-0","4.21.0-0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"zitadel-4-fips-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-0"}]}],"versions":["4.20.3-0","4.20.4-0","4.20.5-0","4.20.6-0","4.20.7-0","4.20.8-0","4.21.0-0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"zitadel-4-fips-license","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-0"}]}],"versions":["4.20.3-0","4.20.4-0","4.20.5-0","4.20.6-0","4.20.7-0","4.20.8-0","4.21.0-0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"zitadel-4-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-0"}]}],"versions":["4.20.3-0","4.20.4-0","4.20.5-0","4.20.6-0","4.20.7-0","4.20.8-0","4.21.0-0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"zitadel-4-license","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-0"}]}],"versions":["4.20.3-0","4.20.4-0","4.20.5-0","4.20.6-0","4.20.7-0","4.20.8-0","4.21.0-0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"zitadel-4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-0"}]}],"versions":["4.20.3-0","4.20.4-0","4.20.5-0","4.20.6-0","4.20.7-0","4.20.8-0","4.21.0-0"]}],"products":[{"vendor":"zitadel","product":"zitadel"}],"references":[{"url":"https://github.com/zitadel/zitadel/security/advisories/GHSA-8cr2-7rvm-hxq5","tags":["vendor-advisory","advisory"]},{"url":"https://github.com/zitadel/zitadel/commit/a51161a4b84ee8d1522c6ea334504148cf9fd93d","tags":["patch","fix"]},{"url":"https://github.com/zitadel/zitadel/commit/847de13b11f45e609ff6fd6da77461ba5d0fd48a","tags":["patch","fix"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v4.20.8","tags":["release-notes","advisory"]},{"url":"https://github.com/zitadel/zitadel/blob/v4.20.7/apps/login/src/lib/actions/idp.ts#L86-L97","tags":["technical-description","article"]},{"url":"https://github.com/zitadel/zitadel/blob/v4.20.7/apps/login/src/lib/server/zitadel.ts#L938-L950","tags":["technical-description","article"]},{"url":"https://www.vulncheck.com/advisories/zitadel-4.0.0-before-4.20.8-account-takeover-via-login-v2-idp-host-header","tags":["third-party-advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144969","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-wxg2-6952-5933"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144969.json","tags":["advisory"]},{"url":"https://github.com/zitadel/zitadel","tags":["package"]},{"url":"https://scout.docker.com/v/DHI-vvym-ubuu-zmoo-chj4","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-144969","title":"ZITADEL 4.0.0 before 4.20.8 Account Takeover via Login V2 IdP Host Header","description":"ZITADEL 4.0.0 before 4.20.8 contains an account takeover vulnerability in Login V2 that allows unauthenticated attackers to hijack external IdP sign-ins by spoofing public host headers. Attackers send victims an IdP authorization link built with a spoofed x-forwarded-host header, capturing the intent ID and token to obtain sessions as victims, including administrators.","status":"published","published":"2026-12-04T14:42:03.33Z","modified":"2026-12-04T14:42:03.33Z","cvss":[{"version":"4.0","score":8.6,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high","assessor":"cna"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-601"],"updated_at":"2026-12-04T14:47:28.052579Z"}],"euvd":[{"id":"EUVD-2026-144244","description":"ZITADEL 4.0.0 before 4.20.8 contains an account takeover vulnerability in Login V2 that allows unauthenticated attackers to hijack external IdP sign-ins by spoofing public host headers. Attackers send victims an IdP authorization link built with a spoofed x-forwarded-host header, capturing the intent ID and token to obtain sessions as victims, including administrators.","status":"published","published":"2026-12-04T14:42:03Z","modified":"2026-12-04T14:42:03Z","cvss":[{"version":"4.0","score":8.6,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"}],"updated_at":"2026-12-04T18:41:50.028147Z"}],"ghsa":[{"id":"GHSA-wxg2-6952-5933","title":"ZITADEL 4.0.0 before 4.20.8 contains an account takeover vulnerability in Login V2 that allows...","description":"ZITADEL 4.0.0 before 4.20.8 contains an account takeover vulnerability in Login V2 that allows unauthenticated attackers to hijack external IdP sign-ins by spoofing public host headers. Attackers send victims an IdP authorization link built with a spoofed x-forwarded-host header, capturing the intent ID and token to obtain sessions as victims, including administrators.","status":"published","published":"2026-12-04T15:31:44Z","modified":"2026-12-04T15:31:52Z","cvss":[{"version":"4.0","score":8.6,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-601"],"updated_at":"2026-12-04T15:57:12.612089Z"}],"nvd":[{"id":"CVE-2026-144969","description":"ZITADEL 4.0.0 before 4.20.8 contains an account takeover vulnerability in Login V2 that allows unauthenticated attackers to hijack external IdP sign-ins by spoofing public host headers. Attackers send victims an IdP authorization link built with a spoofed x-forwarded-host header, capturing the intent ID and token to obtain sessions as victims, including administrators.","status":"published","published":"2026-12-04T15:17:37.28Z","modified":"2026-12-04T15:17:37.45Z","cvss":[{"version":"4.0","score":8.6,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high","assessor":"primary"}],"cwes":["CWE-601"],"updated_at":"2026-12-04T15:25:18.511352Z"}],"osv":[{"id":"CVE-2026-144969","title":"ZITADEL 4.0.0 before 4.20.8 Account Takeover via Login V2 IdP Host Header","description":"ZITADEL 4.0.0 before 4.20.8 contains an account takeover vulnerability in Login V2 that allows unauthenticated attackers to hijack external IdP sign-ins by spoofing public host headers. Attackers send victims an IdP authorization link built with a spoofed x-forwarded-host header, capturing the intent ID and token to obtain sessions as victims, including administrators.","status":"published","published":"2026-12-04T14:42:03.33Z","modified":"2026-12-04T16:00:22.206252484Z","cvss":[{"version":"4.0","score":8.6,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-601"],"updated_at":"2026-12-04T16:17:16.923443Z"},{"id":"DHI-vvym-ubuu-zmoo-chj4","upstream":["GHSA-8cr2-7rvm-hxq5"],"title":"### Summary","description":"### Summary\r\n\r\nZITADEL’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.\r\n\r\nLogin 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.\r\n\r\n### Impact\r\n\r\nAn 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:\r\n\r\n- **Take over the victim’s account** — complete the login as any user who has that identity provider linked, including administrators, and sign in to applications as that user.\r\n- **Receive the result of the identity provider sign-in** — the intent ID, the intent token and the victim’s user ID are sent to the attacker’s host by the victim’s browser.\r\n\r\nThis affects applications that authenticate users through ZITADEL’s hosted **Login V2** UI (OIDC/SAML) on instances that offer sign-in with an external identity provider.\r\n\r\nThe attack requires user interaction: the victim must sign in at the identity provider through the attacker’s link, which points to the real identity provider. It also requires that client-supplied host headers reach the login unchanged; deployments whose reverse proxy overwrites these headers on every request are not exposed. The issue does **not** reveal passwords or the victim’s credentials at the identity provider. Instances without an external identity provider are not affected, as the flow cannot be started. **Login V1** is not affected: it builds this address on the server from the instance’s validated domain.\r\n\r\n**Scope note:** This affects the **Login V2** UI only. Exposure is instance-wide — any user with a linked external identity provider can be targeted, across organizations, but not across instances. It is the identity provider counterpart to [GHSA-mchc-246r-6m76](https://github.com/zitadel/zitadel/security/advisories/GHSA-mchc-246r-6m76) and [GHSA-qvxq-53gh-64f6](https://github.com/zitadel/zitadel/security/advisories/GHSA-qvxq-53gh-64f6), which closed the same host header trust for links sent by email; the identity provider flow was not covered by those fixes.\r\n\r\n### Affected Versions\r\n\r\nSystems running one of the following versions are affected:\r\n\r\n* **4.x:** `4.0.0` through `4.20.7` (including RC versions)\r\n\r\n### Patches\r\n\r\nThe vulnerability has been addressed in the latest releases. Login V2 now only starts an identity provider sign-in when the address the browser returns to points to the public host of the request, and that host is the instance’s own domain or one of its trusted domains.\r\n\r\nThis check relies on ZITADEL receiving the `x-zitadel-public-host` header from the login unchanged. Deployments that remove or replace this specific header through the login’s `CUSTOM_REQUEST_HEADERS` setting, or that changed `PublicHostHeaders` (`ZITADEL_PUBLICHOSTHEADERS`), are **not** covered by this check. They must run the login behind a reverse proxy that overwrites or strips `x-zitadel-public-host`, `x-zitadel-forward-host` and `x-forwarded-host` on every request, regardless of what the client sent, and the login must not be reachable around that proxy. Using `CUSTOM_REQUEST_HEADERS` for other headers, such as `Host`, does not affect the check.\r\n\r\n* **4.x**: Upgrade to $\\ge$ [4.20.8](https://github.com/zitadel/zitadel/releases/tag/v4.20.8)\r\n\r\n### Workarounds\r\n\r\nThe recommended solution is to upgrade to a patched version. There is no configuration that fully closes this gap on unpatched versions.\r\n\r\nAs 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.\r\n\r\n### Questions\r\n\r\nIf you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com)\r\n\r\n### Credits\r\n\r\nThanks to:\r\n  - Zachariah Mithani from AploSec ([@zachariah-mithani](https://github.com/zachariah-mithani)) \r\n  - Michael Stochl from ICT Ironbyte ([@Sainttheonly](https://github.com/Sainttheonly)) \r\n\r\nfor finding and reporting the vulnerability.\r\n","status":"published","published":"2026-12-02T14:26:41Z","modified":"2026-12-02T14:30:28.142793533Z","updated_at":"2026-12-02T14:44:02.567125Z"}]}}
