GHSA-6hq4-74jm-4hj4
Summary ZITADEL’s User Service v2 API allowed a user to retrieve a password- reset code for their own account in…
- Scores
- UnknownNo source reports a CVSS or EPSS score yet.
- Exploitation
- UnknownNo source reports exploitation yet.
- Listed fix
- None listedNo source lists a fixed version in its version data.Check the description and references.
Overview
Summary
ZITADEL’s User Service v2 API allowed a user to retrieve a password-reset code for their own account in plaintext without holding the user.write permission. Because an access token issued to any application through a normal OIDC sign-in can carry the ZITADEL API audience, an application operator who obtains such a token — after a victim signs in to their application — could read the victim’s reset code directly from the API response and use it to set a new password for the victim’s account.
The flaw was in the password-reset endpoint’s authorization check: the “return the code in the response” mode was treated as self-service and skipped the user.write requirement, unlike the equivalent email- and phone-code endpoints, which already restrict in-band code return to privileged callers.
Impact
An attacker who operates an application registered in the same ZITADEL instance as the victim, and who obtains a victim access token bearing the ZITADEL API audience (urn:zitadel:iam:org:project:id:zitadel:aud) through a normal sign-in, can:
- Retrieve the victim’s password-reset code in plaintext from
POST /v2/users/{userId}/password_resetwhen calling it with{"returnCode":{}}, withoutuser.write. - Set a new password for the victim via
POST /v2/users/{userId}/passwordusing that code, with no knowledge of the current password and no access to the victim’s email. - Establish persistent account access — the replacement password remains valid after the short-lived access token expires, including on accounts that previously had no local password.
This affects applications that authenticate users through ZITADEL where the issued access token carries the ZITADEL API audience.
The issue does not grant any capability against other users: requests for a different user’s reset code, requests without the ZITADEL API audience, and unauthenticated requests are all rejected. It is strictly a self-scoped escalation — an operator who already receives a victim’s token turns it into a durable credential. Note that a token bearing the ZITADEL API audience can already register a passkey on the same account through self-service, which provides comparable persistence; this advisory concerns an additional, lower-friction path to it rather than an entirely new foothold.
Scope note: The flaw is in the User Service v2 API password-reset endpoint and applies instance-wide, including across organizations within the same instance (the victim and the attacker’s application may belong to different organizations). It does not cross instance boundaries. No sibling advisory is associated.
Affected Versions
Systems running one of the following versions are affected:
- 4.x:
4.0.0through4.20.7
Patches
The vulnerability has been addressed in the latest releases.
Returning a password-reset code in the API response now requires the user.write permission, also when users request the code for their own account; self-service resets that deliver the code by email are unchanged.
- 4.x: Upgrade to $\ge$ 4.20.8
Workarounds
The recommended solution is to upgrade to a patched version.
There is no configuration that fully closes this gap on unpatched versions.
Questions
If you have any questions or comments about this advisory, please email us at security@zitadel.com
Credits
Thanks to Lucas Dodgson from InfoGuard Labs (@lucasdodgson) for finding and reporting the vulnerability.
Affected
Packages 18
| Package | Affected | Fixed |
|---|---|---|
zitadel-4-devDocker Hardened Images:Alpine:3.23 | 4.20.3-r0 and later, plus listed versions 4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0 | None listed |
zitadel-4-devDocker Hardened Images:Alpine:3.24 | 4.20.3-r0 and later, plus listed versions 4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0 | None listed |
zitadel-4-fips-devDocker Hardened Images:Alpine:3.23 | 4.20.3-r0 and later, plus listed versions 4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0 | None listed |
zitadel-4-fips-devDocker Hardened Images:Alpine:3.24 | 4.20.3-r0 and later, plus listed versions 4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0 | None listed |
zitadel-4-fips-licenseDocker Hardened Images:Alpine:3.23 | 4.20.3-r0 and later, plus listed versions 4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0 | None listed |
zitadel-4-fips-licenseDocker Hardened Images:Alpine:3.24 | 4.20.3-r0 and later, plus listed versions 4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0 | None listed |
zitadel-4-fipsDocker Hardened Images:Alpine:3.23 | 4.20.3-r0 and later, plus listed versions 4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0 | None listed |
zitadel-4-fipsDocker Hardened Images:Alpine:3.24 | 4.20.3-r0 and later, plus listed versions 4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0 | None listed |
zitadel-4-licenseDocker Hardened Images:Alpine:3.23 | 4.20.3-r0 and later, plus listed versions 4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0 | None listed |
zitadel-4-licenseDocker Hardened Images:Alpine:3.24 | 4.20.3-r0 and later, plus listed versions 4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0 | None listed |
Show 8 more packagesShow less
| Package | Affected | Fixed |
|---|---|---|
zitadel-4Docker Hardened Images:Alpine:3.23 | 4.20.3-r0 and later, plus listed versions 4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0 | None listed |
zitadel-4Docker Hardened Images:Alpine:3.24 | 4.20.3-r0 and later, plus listed versions 4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0 | None listed |
zitadel-4-devDocker Hardened Images:Debian:13 | 4.20.3-0 and later, plus listed versions 4.20.4-04.20.5-04.20.6-04.20.7-04.20.8-04.21.0-0 | None listed |
zitadel-4-fips-devDocker Hardened Images:Debian:13 | 4.20.3-0 and later, plus listed versions 4.20.4-04.20.5-04.20.6-04.20.7-04.20.8-04.21.0-0 | None listed |
zitadel-4-fips-licenseDocker Hardened Images:Debian:13 | 4.20.3-0 and later, plus listed versions 4.20.4-04.20.5-04.20.6-04.20.7-04.20.8-04.21.0-0 | None listed |
zitadel-4-fipsDocker Hardened Images:Debian:13 | 4.20.3-0 and later, plus listed versions 4.20.4-04.20.5-04.20.6-04.20.7-04.20.8-04.21.0-0 | None listed |
zitadel-4-licenseDocker Hardened Images:Debian:13 | 4.20.3-0 and later, plus listed versions 4.20.4-04.20.5-04.20.6-04.20.7-04.20.8-04.21.0-0 | None listed |
zitadel-4Docker Hardened Images:Debian:13 | 4.20.3-0 and later, plus listed versions 4.20.4-04.20.5-04.20.6-04.20.7-04.20.8-04.21.0-0 | None listed |
Sources
OSVDHI-d52a-imhe-2rjy-dwbuNo score
### Summary
Summary
ZITADEL’s User Service v2 API allowed a user to retrieve a password-reset code for their own account in plaintext without holding the user.write permission. Because an access token issued to any application through a normal OIDC sign-in can carry the ZITADEL API audience, an application operator who obtains such a token — after a victim signs in to their application — could read the victim’s reset code directly from the API response and use it to set a new password for the victim’s account.
The flaw was in the password-reset endpoint’s authorization check: the “return the code in the response” mode was treated as self-service and skipped the user.write requirement, unlike the equivalent email- and phone-code endpoints, which already restrict in-band code return to privileged callers.
Impact
An attacker who operates an application registered in the same ZITADEL instance as the victim, and who obtains a victim access token bearing the ZITADEL API audience (urn:zitadel:iam:org:project:id:zitadel:aud) through a normal sign-in, can:
- Retrieve the victim’s password-reset code in plaintext from
POST /v2/users/{userId}/password_resetwhen calling it with{"returnCode":{}}, withoutuser.write. - Set a new password for the victim via
POST /v2/users/{userId}/passwordusing that code, with no knowledge of the current password and no access to the victim’s email. - Establish persistent account access — the replacement password remains valid after the short-lived access token expires, including on accounts that previously had no local password.
This affects applications that authenticate users through ZITADEL where the issued access token carries the ZITADEL API audience.
The issue does not grant any capability against other users: requests for a different user’s reset code, requests without the ZITADEL API audience, and unauthenticated requests are all rejected. It is strictly a self-scoped escalation — an operator who already receives a victim’s token turns it into a durable credential. Note that a token bearing the ZITADEL API audience can already register a passkey on the same account through self-service, which provides comparable persistence; this advisory concerns an additional, lower-friction path to it rather than an entirely new foothold.
Scope note: The flaw is in the User Service v2 API password-reset endpoint and applies instance-wide, including across organizations within the same instance (the victim and the attacker’s application may belong to different organizations). It does not cross instance boundaries. No sibling advisory is associated.
Affected Versions
Systems running one of the following versions are affected:
- 4.x:
4.0.0through4.20.7
Patches
The vulnerability has been addressed in the latest releases.
Returning a password-reset code in the API response now requires the user.write permission, also when users request the code for their own account; self-service resets that deliver the code by email are unchanged.
- 4.x: Upgrade to $\ge$ 4.20.8
Workarounds
The recommended solution is to upgrade to a patched version.
There is no configuration that fully closes this gap on unpatched versions.
Questions
If you have any questions or comments about this advisory, please email us at security@zitadel.com
Credits
Thanks to Lucas Dodgson from InfoGuard Labs (@lucasdodgson) for finding and reporting the vulnerability.
- Record
DHI-d52a-imhe-2rjy-dwbu- Updated
- 2026-12-02
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| First indexed | OSV |
Upstream dates may differ.