CVE-2025-48936: ZITADEL Allows Account Takeover via Malicious X-Forwarded-Proto Header Injection
Impact A potential vulnerability exists in ZITADEL's password reset mechanism. ZITADEL utilizes the Forwarded or X-Forwarded-Host header from incoming requests to construct the URL for the password reset confirmation link. This link, containing a secret code, is then emailed to the user.
Published May 28, 2025 · Updated May 30, 2025
Affected packages
github.com/zitadel/zitadel
- Ecosystem
- Go
- Affected
- < 0.0.0-20250528081227-c097887bc5f6
- Fixed in
- 0.0.0-20250528081227-c097887bc5f6
- Check
go list -m github.com/zitadel/zitadel
github.com/zitadel/zitadel/v2
- Ecosystem
- Go
- Affected
- >= 2.38.3, < 2.70.12
- Fixed in
- 2.70.12
- Check
go list -m github.com/zitadel/zitadel/v2
github.com/zitadel/zitadel/v2
- Ecosystem
- Go
- Affected
- >= 3.0.0-rc1, < 3.2.2
- Fixed in
- 3.2.2
- Check
go list -m github.com/zitadel/zitadel/v2
github.com/zitadel/zitadel/v2
- Ecosystem
- Go
- Affected
- >= 2.71.0, <= 2.71.10
- Fixed in
- 2.71.11
- Check
go list -m github.com/zitadel/zitadel/v2
github.com/zitadel/zitadel/v2
- Ecosystem
- Go
- Affected
- < 2.38.2-0.20240919104753-94d1eb767837
- Fixed in
- No patched version yet
- Check
go list -m github.com/zitadel/zitadel/v2
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
A potential vulnerability exists in ZITADEL's password reset mechanism. ZITADEL utilizes the Forwarded or X-Forwarded-Host header from incoming requests to construct the URL for the password reset confirmation link. This link, containing a secret code, is then emailed to the user.
If an attacker can manipulate these headers (e.g., via host header injection), they could cause ZITADEL to generate a password reset link pointing to a malicious domain controlled by the attacker. If the user clicks this manipulated link in the email, the secret reset code embedded in the URL can be captured by the attacker. This captured code could then be used to reset the user's password and gain unauthorized access to their account.
It's important to note that this specific attack vector is mitigated for accounts that have Multi-Factor Authentication (MFA) or Passwordless authentication enabled.
Patches
Patched version ensure proper validation of the headers and do not allow downgrading from https to http.
3.x versions are fixed on >=3.2.2 2.71.x versions are fixed on >=2.71.11 2.x versions are fixed on >=2.70.12
Workarounds
The recommended solution is to update ZITADEL to a patched version.
A ZITADEL fronting proxy can be configured to delete all Forwarded and X-Forwarded-Host header values before sending requests to ZITADEL self-hosted environments.
Questions
If you have any questions or comments about this advisory, please email us at [[email protected]](mailto:[email protected])
Credits
Thanks to Amit Laish – GE Vernova for finding and reporting the vulnerability.
Credited to amit-laish, livio-a, eliobischof.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-85056
ZITADEL: MFA bypass via session reuse in Login V2
high8.2Sep 24, 2026CVE-2026-85057
ZITADEL: Actions V1 sandbox escape: host file read via require()
high8.7Sep 24, 2026CVE-2026-56668
ZITADEL: Unauthorized Token Privilege Escalation in OAuth2 Token Exchange
high8.1Sep 14, 2026CVE-2026-76081
ZITADEL: Improper Role Revocation on Granted Projects during Multiple Role Deletions
medium5.5Sep 14, 2026CVE-2026-56665
ZITADEL: Missing Token Expiration (`exp`) Validation in JWT IdP Provider
medium4.2Sep 11, 2026CVE-2026-56666
ZITADEL: Auto-linking by email: IdP-side email verification is not checked
medium4.8Sep 11, 2026
