ZITADEL's local-login switch is only a policy if every password path checks it
ZITADEL's local-login switch is only a policy if every password path checks it ZITADEL 4.0.0 through 4.20.2 can accept a password through Login V2 or the Session API even when the user's organization has disabled local
ZITADEL's local-login switch is only a policy if every password path checks it
ZITADEL 4.0.0 through 4.20.2 can accept a password through Login V2 or the Session API even when the user's organization has disabled local authentication. CVE-2026-140413 affects only the password path, and the fixed release is 4.20.3.
The policy bypass
Organizations disable local authentication when they want users to sign in through an external identity provider. That provider may enforce multi-factor authentication, conditional access, device controls, or immediate account removal. ZITADEL still verifies the supplied password, but an affected password path does not reliably apply the organization's login policy.
An attacker who knows a user's password can obtain a valid session and bypass the external identity provider controls the organization relies on. If an offboarded user remains active in ZITADEL with a password, the account may continue to sign in after removal at the identity provider. The advisory says Login V1 and users without local passwords are not affected.
Upgrade and revoke
Upgrade to 4.20.3 or later. After the update, password checks for organizations with local authentication disabled should fail with FAILED_PRECONDITION. Verify that behavior through Login V2 and every supported Session API version.
Review password changes, session creation, and failed password attempts during the exposed period. Identify users in organizations that require an external identity provider but still have a local password. Remove unnecessary passwords, revoke active sessions, and review application tokens created from those sessions.
There is no configuration that fully closes the gap on an unpatched version according to the advisory. Network restrictions and stronger monitoring can reduce exposure while the upgrade is completed, but they do not repair the policy check.
Verify the identity boundary
Custom login interfaces that call the Session API need the same policy enforcement as the hosted login. Test an organization with local authentication disabled, a user with a local password, and an application owned by another organization that allows passwords. The expected result is a denial in every path.
References
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.