Every CVESearch/Get API key

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…

Explain with AI
ChatGPTClaudeGoogle AI
Scores
Unknown
No source reports a CVSS or EPSS score yet.
Exploitation
Unknown
No source reports exploitation yet.
Listed fix
None listed
No 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_reset when calling it with {"returnCode":{}}, without user.write.
  • Set a new password for the victim via POST /v2/users/{userId}/password using 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.0 through 4.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.

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

Affected packages
PackageAffectedFixed
zitadel-4-dev
Docker 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-dev
Docker 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-dev
Docker 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-dev
Docker 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-license
Docker 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-license
Docker 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
Docker 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
Docker 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-license
Docker 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-license
Docker 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
Affected packages
PackageAffectedFixed
zitadel-4
Docker 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
Docker 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-dev
Docker 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-dev
Docker 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-license
Docker 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
Docker 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-license
Docker 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
Docker 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_reset when calling it with {"returnCode":{}}, without user.write.
  • Set a new password for the victim via POST /v2/users/{userId}/password using 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.0 through 4.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.

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

Changes recorded by Every CVE
DayChangedSources
First indexedOSV

Upstream dates may differ.

References

MoveEnter Open