/

CVE-2026-105211

Severity:

HIGH RISK

(8.1)

Authentication Bypass (CWE-200) in ZITADEL Login V2

CVE-2026-105211

Deferred

Vulnerability type

Category:

Authentication Bypass

CWE:

CWE-200

Impact:

Account Takeover and Multi-Factor Authentication Bypass

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A vulnerability in ZITADEL Login V2 can expose OTP codes through server-action responses when the returnCode delivery type is used. An unauthenticated attacker who knows a victim's login name may obtain the victim's email and SMS OTP codes, establish an MFA-authenticated session, and potentially take over administrator accounts.

Affected context

The issue occurs in ZITADEL deployments using Login V2 where users have OTP-Email or OTP-SMS enrolled and the returnCode delivery type is available. Risk is higher when server-action responses expose authentication codes to an unauthenticated requester and when privileged accounts rely on these OTP methods for multi-factor authentication.

Exploit preconditions

  • Attack surface: ZITADEL Login V2 authentication flow
  • Required access: No authenticated access is required, but the attacker must know the target user's login name
  • Trigger point: OTP enrollment or verification flows using the returnCode delivery type
  • Why exploitation is possible: Server-action responses may disclose OTP codes before the user is authenticated, allowing the attacker to satisfy the OTP step and obtain an MFA-authenticated session

Why this happens

The vulnerability results from exposing authentication secrets in responses that are reachable before the requester has been authenticated. Returning OTP codes through a server-action response weakens the intended confidentiality of the second factor and permits an unauthenticated party with limited account information to complete authentication. This maps to CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, with the exposed information being authentication credentials that can enable account access.

Potential impact

  • An attacker may bypass the intended MFA protection
  • User accounts could be taken over
  • Administrator accounts could be compromised
  • Attackers could gain access to protected application data and functions
  • Compromised accounts could be used for persistence, impersonation, or further attacks

General mitigation guidance

Mitigation generally focuses on ensuring that OTP values remain confidential throughout authentication and are never returned to unauthenticated clients.

Common defensive patterns include:

  • Avoiding response fields that disclose OTPs or other authentication secrets
  • Binding OTP verification to the intended session, device, and transaction context
  • Requiring authenticated or strongly bound channels for sensitive server actions
  • Limiting OTP delivery options to secure, policy-approved mechanisms
  • Applying least privilege to administrative accounts and separating high-risk administrative authentication from weaker factors
  • Monitoring and rate-limiting login-name discovery, OTP requests, and verification attempts

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis and API review rules that flag secrets included in pre-authentication responses
  • Code review checks for OTP, recovery-code, and password-reset values returned by server actions
  • Integration tests that verify unauthenticated responses contain no authentication credentials
  • Policy enforcement requiring sensitive authentication data to remain server-side or use cryptographically bound delivery flows
  • Monitoring for unusual OTP requests, repeated login-name targeting, and successful sessions preceded by anomalous authentication activity

Automated security review tools may help identify response schemas and code paths that expose sensitive values.

Sources

SourceLink
github.comgithub.com/zitadel/zitadel/security/advisories/GHSA-3gwm-5wx8-4gm6
vulncheck.comvulncheck.com/advisories/zitadel-before-4.17.1-authentication-bypass-via-login-v2-otp-returncode

Frequently asked

questions

Yes. The described attack can be initiated remotely through the Login V2 authentication flow without prior authentication, subject to the relevant OTP and delivery configuration.

The attacker generally needs to know the victim's login name. They do not need an existing authenticated session if the affected server-action responses disclose the OTP codes.

Ensure OTP codes are never exposed in unauthenticated responses, and bind OTP issuance and verification to an authenticated or otherwise strongly validated transaction context.

Treat OTPs and recovery credentials as secrets, test every pre-authentication response for sensitive data exposure, enforce secure MFA delivery policies, and monitor for abnormal authentication and OTP activity.

Find out what's already
exploitable in your codebase.