Repository navigation
Releases
Releases · zitadel/zitadel
v4.21.0
4.21.0 (2026-12-01)
Bug Fixes
- eventstore: don't lock projection tables when the indices already exist (#13201) (fed43b8), closes #12350 #12350
- login: make text actions such as "Reset Password" recognisable as clickable (#13169) (09bc53d), closes #13080 #12848
Features
- console: show the restrictions of the active email provider (#12896) (125e662), closes #12842 #12882 #12882 #13087
- notification: limit the emails sent through matching SMTP providers (#12882) (51daca7), closes #12843 #12843 #12896 #13087
- notification: operator rules for SMTP providers (#12842) (1cecee0), closes #12843 #12882 #12896 #13087
- notification: state the email provider on the sent events (#12843) (366444a), closes #12882 #13087 #12842
- notification: suppress emails to reserved recipient domains (#13087) (1b27b75), closes #12882 #12842 #12843 #12882 #12896 #12843 #12896
v4.20.8
4.20.8 (2026-12-01)
Bug Fixes
- api: require user.write to return a password reset code (fed1cd4)
- login: only start IdP flows that return to a trusted public host (a51161a)
- saml: stop serving the SAML attribute authority (b09dcc6)
- restrict project memberships to project roles (a23e238)
- scope user grant writes to the caller's organization (58bc058)
- stop a user ID from being used in two organizations (e590967)
Behaviour Changes
This release contains security fixes that tighten existing checks. Check the following if you use the affected features:
- Password reset with a returned code:
RequestPasswordResetwithreturn_codenow requires theuser.writepermission on the user. A user can no longer request a code to be returned with their own token. The Login V2 and custom login UIs that call the API with a login client (IAM_LOGIN_CLIENT) are not affected. If your application sends its own password reset emails, call the API with a service user that hasuser.write. - External identity providers in a self-hosted Login V2: before an external identity provider flow starts, the login now checks that its success and failure URLs point to the public host of the request, and the API checks that host against the instance's domains and trusted domains. If your login runs on a domain that is not an instance domain, add it as a trusted domain of the instance. Make sure a proxy forwards the
x-zitadel-public-hostheader to the API unchanged. - SAML attribute queries: ZITADEL no longer answers SAML attribute queries (attribute authority). Such requests are answered with
Unimplemented. Single sign-on with SAML is not affected; service providers receive the attributes in the assertion.
v4.20.7
4.20.7 (2026-11-30)
Bug Fixes
- eventstore: dual-write projection cursors for rolling upgrades (#12913) (54b9c4e), closes #12877 #12703 #12703 #12753 #12703 #12877 #12703 #12721 #12753 #10480 #10560 #10710
- login: report why a session cannot be resolved and offer a restart (#13080) (5915f15), closes #12968 #12968 #12656 #12995 #13037
- login: run one passkey ceremony at a time (#13168) (47b8dfe), closes #12759 #12759 #12762 #13080 #12495
- login: wait for the page update before leaving after a server action (#13166) (2957e4f), closes #12745 #13157
Performance Improvements
v4.20.6
4.20.6 (2026-11-25)
Bug Fixes
- eventstore: recover from panics in projection handlers (#13079) (d645bd1), closes #13057 #11713 #13066 #13057
- login: save registration language in new user profiles (#13113) (556c24d), closes #12950 #12657 #12950
- telemetry: record tarpit delays as span and log (#13114) (b735db5)
Performance Improvements
v4.20.5
v4.20.4
4.20.4 (2026-11-17)
Bug Fixes
- login: add a resend countdown to the OTP SMS page and stop duplicate codes (#13009) (8f22f0f)
- login: support Safari and iOS older than 16.4 again (#13074) (384bb9e), closes #11629
- login: use GitHub Enterprise Server template in login v1 (#13100) (e627c7c), closes #13086
- use PKCE by default for Google, GitHub, GitLab and Azure AD IdPs (#13086) (9c1c141)
Performance Improvements
v4.20.3
⚠️ Upgrade notes
- Custom login UIs: completing or failing an OIDC or SAML request (
CreateCallback,CreateResponse) now requires thesession.linkpermission, whatever headers are sent. The hosted Login V2 and custom login UIs whose service user has theIAM_LOGIN_CLIENTrole are not affected. If yours uses another user, for example anIAM_OWNERpersonal access token, grant itIAM_LOGIN_CLIENTbefore upgrading. - Local authentication disabled: password checks through the Session API now follow the login policy of the user's organization, like Login V1. Users of an organization that disables username/password login can no longer sign in or change their password with a password. Send them to their identity provider.
- Public host header: the
x-zitadel-public-hostheader must be a single plain host with an optional port. Other values are now rejected instead of ignored. - Notification links: if the host that triggered a notification is not valid, its links use the instance's primary domain. This includes notifications queued before the upgrade.
- Login V1 authorization codes: codes issued but not yet redeemed before the upgrade are rejected once. Affected users sign in again.
- Login V2:
- External IdP sign-ins must be completed in the browser that started them. Sign-ins in progress during the upgrade have to be restarted.
- Adding OTP email or SMS as a second factor now needs a confirmation click.
- New texts were added. Custom login texts show the default for them until customized.
- Custom builds: internal modules moved to
src/lib/server/andsrc/lib/actions/, and the build fails on Server Actions missing fromchecks/server-actions.allowlist.json.
Error changes
No existing error IDs, message keys or gRPC codes were changed or removed. The following calls can now return errors where they previously succeeded:
| Call | Condition | Error |
|---|---|---|
CreateCallback, CreateResponse (OIDC/SAML) |
caller lacks session.link |
PERMISSION_DENIED |
| Session API password check | organization disables username/password login | FAILED_PRECONDITION, Errors.Org.LoginPolicy.UsernamePasswordNotAllowed |
| Session API password check | organization's login policy can't be read | FAILED_PRECONDITION, Errors.Org.LoginPolicy.NotFound |
| Session API password check | session has no user organization | FAILED_PRECONDITION, Errors.User.UserIDMissing (new, COMMAND-Vz4tb) |
/oauth/v2/token (code issued through Login V1) |
user not authenticated, or a different user than at issuance | invalid_grant |
| any request | invalid x-zitadel-public-host header |
HTTP 400, invalid public host (new, HTTP-Rk7pX) |
4.20.3 (2026-11-13)
Bug Fixes
- login: bind external IdP sign-in to the browser that started it (4fc0ea6)
- login: never complete OIDC/SAML requests with an invalid session (de24098)
- login: require confirmation before adding OTP via email or SMS (f96bbb3)
- login: restrict server actions and derive session data on the server (d3175e6)
- login: restrict the IdP error page back link to login paths (77a320e)
- login: retry gRPC calls that fail to connect with unavailable (#13063) (ade3702), closes #13064
- oidc: bind Login V1 authorization codes to the authenticated user (b977f69)
- session: enforce the local authentication policy on password checks (b95ebee)
- validate public host headers before building links (8ce0ac5)
v4.20.2
4.20.2 (2026-11-09)
Bug Fixes
- build: retry proto plugin download on transient GitHub errors (#13060) (16add2c), closes #13057
- cache: expire redis index keys and invalidate past missing keys (#13021) (d23ae5c)
- login: treat a rejected session cookie token as no session (#13037) (dce17d5), closes #12423 #13004 #13004 #12209 #12558
- notification: skip password-change mail when policy is missing (#13057) (03170a6)
v4.20.1
4.20.1 (2026-11-03)
Bug Fixes
- apply log level and masking to OTEL log export (#12997) (64b3915), closes #12045 #12996 #12045 #12996
- drop user search trigger on session creation (#13027) (709968c), closes #9635 #6537
- login: keep the sessions cookie within the browser size limit (#12995) (4930911), closes #12968 #12656 #12735 #12520
- login: replace deepmerge in i18n message merging (#13013) (7c6ca4b), closes #13012
- made email addresses case insensitive (#12571) (13c9bca), closes #12025
- skip nil job insert results in debug logging (#12996) (c9af97c), closes #12045
v4.20.0
4.20.0 (2026-10-22)
⚠️ Upgrade notes
- Go 1.26: ZITADEL is now built with Go 1.26.10. Outbound TLS connections (SMTP, external IdPs, Actions and webhook targets, HTTP SMS providers) no longer accept certificate chains through the compromised eMudhra intermediate CAs (#12969); affected endpoints need a new certificate, the check can't be disabled. Go 1.26 also rejects URLs with invalid colons in the host and offers post-quantum hybrid key exchanges in TLS by default. If a configured URL or outbound connection stops working,
GODEBUG=urlstrictcolons=0orGODEBUG=tlssecpmlkem=0restores the previous behavior. - Login V2: the device code check is now signed with
ZITADEL_SESSION_COOKIE_SECRET, like the other login proofs. Users in the middle of a device authorization during the upgrade have to enter the user code again.
Bug Fixes
- console: derive environment.json api from the requested origin (#12893) (e01ccc9), closes #12009 #12195
- deps: build with Go 1.26.10 and golang.org/x/net v0.60.0 (#12932) (3fe639d), closes #12969 #12969