ZITADEL versions prior to 4.16.0 contain a bug in the role revocation process for User Grants on Granted Projects when multiple roles are deleted simultaneously. This bug can cause some user permissions to be missed during cleanup, potentially allowing users to retain elevated access that should have been removed. The issue does not affect direct project roles or global organization roles. The vulnerability has been fixed in version 4.16.0 with an update that includes an automatic database migration to correct any leftover permissions. No configuration workarounds exist; upgrading is the recommended remediation.
A vulnerability in ZITADEL's OAuth2 Token Exchange endpoint allows an authenticated user or client to escalate privileges by exchanging a low-privilege token for a token with elevated permissions in a different application. This occurs due to missing verification of token ownership and scope restrictions during the token exchange process. The flaw affects ZITADEL versions 3.0.0 through 3.4.12 and 4.0.0 through 4.15.2. The issue has been fixed in versions 4.15.3 and later. Mitigations include upgrading to a patched version, disabling the Token Exchange feature flag, or removing the token exchange grant type from applications.
### Summary
A flaw in the external identity provider handler allows unauthorized account linking to occur under specific administrative configurations. When auto-linking by email is enabled, ZITADEL checks that the local user's email is verified, but does not explicitly cross-check whether the incoming external identity provider (IdP) also verified that email address upstream.
### Impact
When a user logs in via an external identity provider, the system can automatically link them to an existing local account if their email addresses match. However, because the system fails to check if the external provider actually verified ownership of that email, a security risk is introduced if a loose or public provider is connected.
If an administrator enables email auto-linking for an external identity provider that allows anyone to sign up with an unverified email address, an attacker can exploit this behavior. By registering an account on that permissive provider using a victim's email address and logging in, the system will automatically link the attacker's federated identity to the victim's legitimate local account. This allows the attacker to log into the victim's account without requiring any interaction or confirmation from the victim.
This issue represents a configuration-dependent anomaly rather than an unconditioned attack vector. Because the scenario relies entirely on an explicit administrative choice to trust a permissive external directory and link accounts automatically based purely on email strings, the practical operational risk is classified as **Medium**.
### Affected Versions
Systems running one of the following versions are affected:
* **4.x:** `4.0.0` through `4.15.2` (including RC versions)
* **3.x:** `3.0.0` through `3.4.12` (including RC versions)
### Patches
The vulnerability has been addressed in the latest releases. The patch resolves the issue by requiring that the external identity provider's email verification status is explicitly validated before allowing any automatic linking logic to proceed.
* **4.x**: Upgrade to $\ge$ [4.15.3](https://github.com/zitadel/zitadel/releases/tag/v4.15.3)
* **3.x**: Upgrade to $\ge$ [4.15.3](https://github.com/zitadel/zitadel/releases/tag/v4.15.3)
### Workarounds
If an immediate upgrade is not possible, implement one of the following mitigations:
* Disable auto-linking by email entirely by setting the option to `AUTO_LINKING_OPTION_UNSPECIFIED` on corresponding identity providers.
* Audit external IdP configurations and restrict email auto-linking strictly to trusted enterprise identity directories (e.g., corporate Okta or Azure AD) where email verification is strictly enforced and managed by corporate policy.
### Questions
If you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com)
### Credits
Thanks to [Android-Login-Analysis](https://github.com/Android-Login-Analysis) and [Alejandro Yadlin](https://github.com/ayadlin) for reporting this vulnerability.
### Summary
A token lifecycle validation vulnerability was discovered in ZITADEL's external JWT Identity Provider (IdP) implementation
Specifically, within the validation pipeline, if an incoming JWT omits the `exp` claim entirely, the expiration block is silently skipped rather than rejected. The token is treated as valid forever.
Per the OIDC Core 1.0 specification, identity token validation pipelines must strictly handle and enforce session expiration. ZITADEL's silent acceptance of tokens missing these temporal constraints compromises session integrity.
### Impact
An attacker in possession of a token lacking an `exp` claim holds a permanent credential with no automatic expiration or revocation window.
### Affected Versions
Systems running one of the following versions are affected:
* **4.x**: `4.0.0` through `4.15.1` (including RC versions)
* **3.x**: `3.0.0` through `3.4.11` (including RC versions)
### Patches
The vulnerability has been addressed in the latest releases. ZITADEL now explicitly rejects tokens that lack an `exp` claim.
* **4.x**: Upgrade to $\ge$ [4.15.2](https://github.com/zitadel/zitadel/releases/tag/v4.15.2)
* **3.x**: Upgrade to $\ge$ [3.4.12](https://github.com/zitadel/zitadel/releases/tag/v3.4.12)
### Workarounds
The recommended solution is to update ZITADEL to a patched version.
If an immediate upgrade is not feasible, ensure at the upstream Identity Provider level that an external IdP explicitly includes the `exp` claim in all signed JWTs.
### Publication Note
This issue was originally disclosed as part of a unified security bulletin published under [GHSA-wxg7-w2v3-w38g](https://github.com/zitadel/zitadel/security/advisories/GHSA-wxg7-w2v3-w38g). To satisfy CVE Numbering Authority regulations regarding independently fixable logic flaws, the missing token expiration validation (`exp`) has been moved into this separate tracking entry so a distinct CVE ID can be correctly mapped to it.
### Questions
If there are any questions or comments about this advisory, send an email to [security@zitadel.com](mailto:security@zitadel.com)
### Credits
ZITADEL thanks [Android-Login-Analysis](https://github.com/Android-Login-Analysis), Jason Zhou and [Pedro Giglioti](https://github.com/Punisher100) for reporting this vulnerability.
A vulnerability in Zitadel's user self-management API allowed users to mark their email and phone as verified without completing the actual verification process. This was due to improper permission checks that enabled users to retrieve verification codes for email and phone numbers they do not control. The issue affects Zitadel versions 4.0.0 through 4.15.0, 3.0.0 through 3.4.10, and 2.43.0 through 2.71.19. The vulnerability has been fixed in versions 4.15.1 and later, 3.4.11 and later, and 3.4.11 and later for the respective branches. Users are advised to upgrade to these patched versions to mitigate the risk. If upgrading is not possible, a workaround exists to prevent returning verification codes to the user.
ZITADEL's external JWT Identity Provider implementation has a vulnerability where tokens missing the 'iat' (issued at) claim bypass the token freshness check, allowing reuse of arbitrarily old tokens. This flaw affects versions 3.0.0 through 3.4.11 and 4.0.0 through 4.15.1. The issue is fixed in versions 3.4.12 and 4.15.2, which reject tokens lacking the 'iat' claim. Without the 'iat' claim, the maximum age freshness validation is skipped, compromising session integrity.
Zitadel OAuth2/OIDC implementations in versions 3.0.0 through 3.4.11 and 4.0.0 through 4.15.1 omit client_id binding during authorization code exchange and refresh token flows, violating RFC 6749 Section 4.1.3. This allows an attacker who intercepts authorization codes or refresh tokens to use them with a different client identity, potentially gaining unauthorized access. Exploitation requires prior compromise or token theft in the application environment. PKCE mitigates some risks for authorization code injection but not refresh token misuse. The issue is fixed in versions 3.4.12 and 4.15.2 and later.
ZITADEL versions 4.0.0-rc.1 through 4.7.0 contain a DOM-based Cross-Site Scripting (XSS) vulnerability in the logout endpoint of the login V2 UI. The vulnerability arises because the post_logout_redirect parameter is not properly validated and allows execution of malicious JavaScript. An unauthenticated attacker can exploit this to execute scripts in the context of Zitadel users, potentially resetting passwords and taking over accounts. Accounts with Multi-Factor Authentication (MFA) or Passwordless authentication are protected against account takeover. The issue is fixed in version 4.7.1 by introducing a signed JWT-based logout_token parameter.
ZITADEL's Login UI (V2) versions from 4.0.0-rc.1 through 4.7.0 contain an unauthenticated Server-Side Request Forgery (SSRF) vulnerability. This flaw allows remote attackers to manipulate the x-zitadel-forward-host header to make the server send HTTP requests to arbitrary domains, including internal network addresses, and return the responses to the attacker. The vulnerability enables data exfiltration from internal services and bypasses IP-based or network segmentation controls. The issue has been fixed in version 4.7.1 by validating forwarded headers against trusted domains and no longer using them to route API traffic. Users are advised to upgrade to the patched version or configure a fronting proxy to remove or sanitize the vulnerable header.
ZITADEL contains a vulnerability in its federation process that allows an attacker to bypass organization-specific security settings and auto-link an external identity from a deactivated or disallowed identity provider (IdP) to an existing internal user account. This flaw can lead to a full account takeover unless multi-factor authentication (MFA) is enabled on the targeted account. The issue affects multiple versions across v2.x, v3.x, and v4.x releases and has been fixed in later versions.
ZITADEL's Organization V2Beta API contains Insecure Direct Object Reference (IDOR) vulnerabilities that allow authenticated administrators of one organization to access and modify data of other organizations within the same instance. The vulnerability affects organization-level data such as name, domains, and metadata but does not impact users, projects, or applications. Versions from 4.0.0-rc.1 up to 4.6.2 are affected. The issue is fixed in version 4.6.3 and later. Mitigation includes upgrading to the patched version or disabling the vulnerable API endpoints via reverse proxy or WAF.
A vulnerability in Zitadel's token verification allowed sessions to be marked as authenticated after only one factor was verified, bypassing the intended second authentication factor. This affects Zitadel versions 4.0.0 to 4.5.0, 3.0.0 to 3.4.2, and several 2.x versions up to but not including 2.71.18. The flaw weakens multifactor authentication by permitting attackers to bypass password verification and authenticate using only the TOTP code. The issue has been fixed in Zitadel versions 4.6.0, 3.4.3, and 2.71.18 and later. Users are advised to upgrade to these patched versions to mitigate the risk.
Zitadel versions 2.0.0 to 2.71.17, 3.0.0 to 3.4.2, and 4.0.0 to 4.4.0 are vulnerable to brute-force attacks on OTP, TOTP, and passwords. The vulnerability allows attackers to impersonate users by repeatedly attempting authentication factors. Although Zitadel supports a lockout mechanism to prevent brute-force attacks, it is not enabled by default and can cause denial of service if activated. The lockout policy was also not fully implemented in newer resource-based APIs. The issue has been fixed in versions 2.71.18, 3.4.3, and 4.6.0 by enforcing lockout policies and introducing a delay mechanism to slow down repeated failed attempts.