{"id":"DHI-i6pb-isln-t3jc-bg4f","summary":"### Summary","details":"### Summary\r\n\r\nZITADEL’s hosted **Login V2** UI allowed an attacker who knows a user’s first factor — typically the password — to add a new authenticator to that user’s account without completing the second factor the user had already enrolled. A newly registered passkey satisfies multi-factor authentication on its own, so the attacker could then sign in with it and was never asked for the victim’s **TOTP**, **OTP-SMS**, **OTP-Email** or **U2F** factor.\r\n\r\nLogin V2 accepted authenticator enrollment as soon as the session had a verified first factor, without checking whether the second factor already enrolled on the account had been verified in that session.\r\n\r\n### Impact\r\n\r\nAn attacker who knows a user’s password (or can sign in as the user at a linked external identity provider) can:\r\n\r\n- **Bypass the user’s enrolled second factor** (TOTP, OTP-SMS, OTP-Email or U2F) by adding an authenticator of their own — a passkey, or another second factor they then choose at sign-in — and sign in to applications as that user.\r\n- **Keep access after the password has been changed**, for example through an attacker-controlled passkey, which needs neither the password nor the victim’s second factor.\r\n- **Obtain tokens that report multi-factor authentication** — after a sign-in with the attacker’s passkey, the ID token’s `amr` claim contains `mfa`, misleading relying parties that use it for step-up decisions.\r\n\r\nThe setup pages could be opened directly by their URL (for example `/ui/v2/login/passkey/set`) while the login was waiting for the second factor. Neither **Force MFA** nor disallowing passkeys in the login policy prevented this.\r\n\r\nThis affects applications that authenticate users through ZITADEL’s hosted **Login V2** UI (OIDC/SAML).\r\n\r\nThe attacker must already hold the user’s first factor; the issue does **not** reveal or bypass the password itself. Users without an enrolled second factor are not additionally exposed, as their first factor alone already grants access. **Login V1** is not affected: it only allows enrolling a second factor on its MFA setup step, which is never offered to a user who already has one.\r\n\r\n**Scope note:** This issue affects the hosted **Login V2** UI only, for all organizations of an instance that use it; it does not cross instances. It is the authenticated counterpart to GHSA-45f2-5q3r-xgg6, which allowed enrollment from a session that had not verified any factor. Custom login UIs built on the Session and User APIs make this enrollment decision themselves and should likewise require the user’s enrolled second factor to be verified before registering a new authenticator.\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.4` (including RC versions)\r\n\r\n### Patches\r\n\r\nThe vulnerability has been addressed in the latest releases. Login V2 now only allows adding an authenticator — a passkey, TOTP, OTP-SMS, OTP-Email, U2F or a link to an external identity — when the session has verified a second factor already enrolled on the account, or was authenticated with a passkey. Users without a second factor can still set one up after their first factor, as required by **Force MFA**. In addition, the setup pages now only accept authenticator types allowed by the organization’s login policy.\r\n\r\n* **4.x**: Upgrade to $\\ge$ [4.20.5](https://github.com/zitadel/zitadel/releases/tag/v4.20.5)\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; enabling **Force MFA** or disallowing passkeys in the login policy does **not** mitigate it.\r\n\r\nAfter upgrading, administrators may want to review authenticators (passkeys, second factors and identity provider links) recently added to accounts and remove any the user does not recognize.\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 Lucas Dodgson from InfoGuard Labs ([@lucasdodgson](https://github.com/lucasdodgson)), Mario Schlipf ([@marioschlipf](https://github.com/marioschlipf)) and a security researcher who asked not to be named for independently finding and reporting the vulnerability.\r\n","modified":"2026-12-01T00:45:29.121148628Z","published":"2026-11-19T13:19:46Z","upstream":["GHSA-qqv8-37gw-ww2q"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-i6pb-isln-t3jc-bg4f"},{"type":"ADVISORY","url":"https://github.com/zitadel/zitadel/security/advisories/GHSA-qqv8-37gw-ww2q"}],"affected":[{"package":{"name":"zitadel-4-dev","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/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"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json","owner_kind":"HSP"}},{"package":{"name":"zitadel-4-dev","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/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"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json","owner_kind":"HSP"}},{"package":{"name":"zitadel-4-fips-dev","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/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"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json"}},{"package":{"name":"zitadel-4-fips-dev","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/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"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json"}},{"package":{"name":"zitadel-4-fips-license","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/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"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json"}},{"package":{"name":"zitadel-4-fips-license","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/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"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json","owner_kind":"HSP"}},{"package":{"name":"zitadel-4-fips","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/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"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json"}},{"package":{"name":"zitadel-4-fips","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/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"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json","owner_kind":"HSP"}},{"package":{"name":"zitadel-4-license","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/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"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json","owner_kind":"HSP"}},{"package":{"name":"zitadel-4-license","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/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"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json"}},{"package":{"name":"zitadel-4","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/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"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json"}},{"package":{"name":"zitadel-4","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/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"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json"}},{"package":{"name":"zitadel-4-dev","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/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"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json"}},{"package":{"name":"zitadel-4-fips-dev","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/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"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json","owner_kind":"HSP"}},{"package":{"name":"zitadel-4-fips-license","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/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"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json"}},{"package":{"name":"zitadel-4-fips","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/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"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json","owner_kind":"HSP"}},{"package":{"name":"zitadel-4-license","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/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"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json"}},{"package":{"name":"zitadel-4","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/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"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-i6pb-isln-t3jc-bg4f.json","owner_kind":"HSP"}}],"schema_version":"1.9.2"}