Loading...
Skip to main content

CVE-2025-48936 — Vulnerability in github.com/zitadel/zitadel/v2 —...

HIGH

ZITADEL Allows Account Takeover via Malicious X-Forwarded-Proto Header Injection

Published May 28, 2025Updated April 1, 2026Source: osv

Summary

### 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](https://github.com/zitadel/zitadel/releases/tag/v3.2.2) 2.71.x versions are fixed on >=[2.71.11](https://github.com/zitadel/zitadel/releases/tag/v2.71.11) 2.x versions are fixed on >=[2.70.12](https://github.com/zitadel/zitadel/releases/tag/v2.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 [security@zitadel.com](mailto:security@zitadel.com) ### Credits Thanks to Amit Laish – GE Vernova for finding and reporting the vulnerability.

Advisory Timeline

  • First published May 28, 2025 (502 days ago).
  • Last revised April 1, 2026 — 308 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/zitadel/zitadel/v2 to 2.71.11 or later
go get github.com/zitadel/zitadel/v2@v2.71.11
Go
Update github.com/zitadel/zitadel/v2 to 2.70.12 or later
go get github.com/zitadel/zitadel/v2@v2.70.12
Go
Update github.com/zitadel/zitadel/v2 to 3.2.2 or later
go get github.com/zitadel/zitadel/v2@v3.2.2
Go
Update github.com/zitadel/zitadel to 0.0.0-20250528081227-c097887bc5f6 or later
go get github.com/zitadel/zitadel@v0.0.0-20250528081227-c097887bc5f6

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 1 ecosystem: go (2).

PackageEcosystemAffectedFixed In
github.com/zitadel/zitadel/v2
go
All versions2.71.11
github.com/zitadel/zitadel/v2
go
All versions2.70.12
github.com/zitadel/zitadel/v2
go
All versionsRange-based data available
github.com/zitadel/zitadel/v2
go
All versions3.2.2
github.com/zitadel/zitadel
go
All versions0.0.0-20250528081227-c097887bc5f6

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2025-48936?
ZITADEL Allows Account Takeover via Malicious X-Forwarded-Proto Header Injection This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2025-48936?
CVE-2025-48936 affects github.com/zitadel/zitadel/v2 and github.com/zitadel/zitadel. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-48936 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-93m4-mfpg-c3xf
GO-2025-3721

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies