ZITADEL’s OIDC token exchange allowed a user holding only the end-user impersonation permission to impersonate administrators, including an instance owner (IAM_OWNER).
ZITADEL distinguishes two impersonation permissions: impersonation, granted by the IAM_END_USER_IMPERSONATOR and ORG_END_USER_IMPERSONATOR roles, is documented to allow impersonating end users only, while impersonating administrators additionally requires admin.impersonation, granted by the IAM_ADMIN_IMPERSONATOR and ORG_ADMIN_IMPERSONATOR roles. The token exchange only ever checked impersonation and never whether the impersonated user is an administrator, so admin.impersonation was not enforced.
An actor holding one of the *_END_USER_IMPERSONATOR roles can:
IAM_END_USER_IMPERSONATOR, the users of their organization for ORG_END_USER_IMPERSONATOR), including IAM_OWNER and ORG_OWNERImpersonated tokens are marked as such and are rejected by ZITADEL’s own APIs, so the issue does not grant access to the ZITADEL Console or the management APIs. Its impact is limited to what the impersonated administrator can do in applications that rely on the instance for authentication.
This affects instances where impersonation is enabled (the instance security setting Allow Impersonation, which is disabled by default, and the token exchange grant on at least one application) and where at least one user holds an *_END_USER_IMPERSONATOR role. Exploitation requires that role, so it is only reachable by users an administrator has already trusted to impersonate end users.
Scope note: A user counts as an administrator as soon as they hold any membership (instance, organization, project or project grant). The issue does not cross organizations for ORG_END_USER_IMPERSONATOR and does not cross instances.
Systems running one of the following versions are affected:
4.0.0 through 4.19.1 (including RC versions)3.0.0 through 3.4.15 (including RC versions)The vulnerability has been addressed in the latest releases. Impersonating a user who holds any membership now requires the admin.impersonation permission, which only the IAM_ADMIN_IMPERSONATOR and ORG_ADMIN_IMPERSONATOR roles grant; the *_END_USER_IMPERSONATOR roles can only impersonate users without memberships.
The 3.x release line reached end-of-life on 2026-08-31 and will not receive a fix for this vulnerability. Affected 3.x deployments must upgrade to a patched 4.x release.
The recommended solution is to upgrade to a patched version. On unpatched versions, the issue can be avoided by not granting the IAM_END_USER_IMPERSONATOR and ORG_END_USER_IMPERSONATOR roles, or by disabling impersonation in the instance security settings.
If you have any questions or comments about this advisory, please email us at security@zitadel.com
Thanks to Wojciech Piekutowski from Nedap for finding and reporting the vulnerability.