ZITADEL’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.
Login 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.
An attacker who knows a user’s password (or can sign in as the user at a linked external identity provider) can:
amr claim contains mfa, misleading relying parties that use it for step-up decisions.The 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.
This affects applications that authenticate users through ZITADEL’s hosted Login V2 UI (OIDC/SAML).
The 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.
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.
Systems running one of the following versions are affected:
4.0.0 through 4.20.4 (including RC versions)The 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.
The 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.
After 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.
If you have any questions or comments about this advisory, please email us at security@zitadel.com
Thanks to Lucas Dodgson from InfoGuard Labs (@lucasdodgson), Mario Schlipf (@marioschlipf) and a security researcher who asked not to be named for independently finding and reporting the vulnerability.