All vulnerabilities

Servers and applications

GHSA-6hq4-74jm-4hj4

Account takeover via password reset code returned without user.write

Severity
High 7.3
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
4.20.8
Weakness
Incorrect authorization (CWE-863)
Attack
Over the network · Needs a user account · Needs someone to click or open something
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Sources
Project advisories (GitHub)

Description

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.

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…

From zitadel/zitadel's security advisory. Shortened; the full text is there.

Workarounds

The recommended solution is to upgrade to a patched version.

There is no configuration that fully closes this gap on unpatched versions.

Workarounds as given by zitadel/zitadel's security advisory.

Affected software

SoftwareAffected versions
ZITADELServers and applications · github:zitadel/zitadel
  • From 4.0.0 before 4.20.8

About ZITADEL

ZITADEL - Identity infrastructure, simplified for you.

From its GitHub repository.
GitHub stars
15,672GitHub, 29 Nov 2026
Forks
1,447GitHub, 29 Nov 2026
Latest release
v4.20.6GitHub, 29 Nov 2026
Released
25 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
16 Mar 2020GitHub

References