CVE-2025-48936: Github.com/zitadel/zitadel ZITADEL Allows Account Takeover Vulnerability

HIGH
Advisory Identifier: GHSA-93m4-mfpg-c3xf
CVSS 8.1
CWE-601
Published
Advisory Summary

CVE-2025-48936 is a HIGH (CVSS 8.1) zitadel allows account takeover vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Github.com/zitadel/zitadel libraries in the Go ecosystem. The issue involves zitadel allows account takeover via malicious x-forwarded-proto header injection. Remediation is available by upgrading affected packages to version 0.0.0-20250528081227-c097887bc5f6, 2.70.12, 3.2.2, 2.71.11.

CVE-2025-48936 at a Glance

CVE Identifier CVE-2025-48936
GHSA Identifier GHSA-93m4-mfpg-c3xf
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Github.com/zitadel/zitadel
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-48936

To remediate this vulnerability, upgrade all affected Github.com/zitadel/zitadel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/zitadel/zitadel fixed: 0.0.0-20250528081227-c097887bc5f6
Upgrade github.com/zitadel/zitadel to 0.0.0-20250528081227-c097887bc5f6
github.com/zitadel/zitadel/v2 fixed: 2.70.12
Upgrade github.com/zitadel/zitadel/v2 to 2.70.12
github.com/zitadel/zitadel/v2 fixed: 3.2.2
Upgrade github.com/zitadel/zitadel/v2 to 3.2.2
github.com/zitadel/zitadel/v2 fixed: 2.71.11
Upgrade github.com/zitadel/zitadel/v2 to 2.71.11
github.com/zitadel/zitadel/v2 fixed: Latest secure release
Upgrade github.com/zitadel/zitadel/v2 to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/zitadel/zitadel

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-48936, inspect your project dependencies for Github.com/zitadel/zitadel:

inspect dependencies for github.com/zitadel/zitadel

Analyze the terminal output to locate any version of Github.com/zitadel/zitadel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20250528081227-c097887bc5f6), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Github.com/zitadel/zitadel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2025-48936 Affected Github.com/zitadel/zitadel Versions

5 component(s)
Fixed Versions:
0.0.0-20250528081227-c097887bc5f62.70.123.2.22.71.11
Product / Package Ecosystem Affected Versions Fixed Version
github.com/zitadel/zitadel
Go
< 0.0.0-20250528081227-c097887bc5f6
0.0.0-20250528081227-c097887bc5f6
github.com/zitadel/zitadel/v2
Go
≥ 2.38.3
< 2.70.12
2.70.12
github.com/zitadel/zitadel/v2
Go
≥ 3.0.0-rc1
< 3.2.2
3.2.2
github.com/zitadel/zitadel/v2
Go
≥ 2.71.0
< 2.71.11
2.71.11
github.com/zitadel/zitadel/v2
Go

References

Frequently Asked Questions

What is CVE-2025-48936?
CVE-2025-48936 is a security vulnerability in Github.com/zitadel/zitadel involving ZITADEL Allows Account Takeover via Malicious X-Forwarded-Proto Header Injection under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Github.com/zitadel/zitadel versions are affected?
Affected versions include releases prior to 0.0.0-20250528081227-c097887bc5f6, 2.70.12, 3.2.2, 2.71.11 across affected packages: github.com/zitadel/zitadel, github.com/zitadel/zitadel/v2.
What version fixes CVE-2025-48936?
Upgrading to 0.0.0-20250528081227-c097887bc5f6, 2.70.12, 3.2.2, 2.71.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/zitadel/zitadel affected?
Yes, github.com/zitadel/zitadel is affected in releases prior to 0.0.0-20250528081227-c097887bc5f6. Upgrade your dependency to 0.0.0-20250528081227-c097887bc5f6 or later.
Is github.com/zitadel/zitadel/v2 affected?
Yes, github.com/zitadel/zitadel/v2 is affected in releases prior to 2.70.12, 3.2.2, 2.71.11, Latest secure release. Upgrade your dependency to 2.70.12, 3.2.2, 2.71.11, Latest secure release or later.
What is the CVSS score of CVE-2025-48936?
CVE-2025-48936 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2025-48936?
CVE-2025-48936 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check Go dependencies for CVE-2025-48936?
Run the dependency tree command: 'inspect dependencies for github.com/zitadel/zitadel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-93m4-mfpg-c3xf",
  "modified" : "2025-05-30T15:26:11Z",
  "published" : "2025-05-28T17:36:55Z",
  "aliases" : [ "CVE-2025-48936" ],
  "summary" : "ZITADEL Allows Account Takeover via Malicious X-Forwarded-Proto Header Injection",
  "details" : "### Impact\n\nA 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.\n\nIf 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.\n\nIt's important to note that this specific attack vector is mitigated for accounts that have Multi-Factor Authentication (MFA) or Passwordless authentication enabled.\n\n### Patches\n\nPatched version ensure proper validation of the headers and do not allow downgrading from https to http.\n\n3.x versions are fixed on >=[3.2.2](https://github.com/zitadel/zitadel/releases/tag/v3.2.2)\n2.71.x versions are fixed on >=[2.71.11](https://github.com/zitadel/zitadel/releases/tag/v2.71.11)\n2.x versions are fixed on >=[2.70.12](https://github.com/zitadel/zitadel/releases/tag/v2.70.12)\n\n### Workarounds\n\nThe recommended solution is to update ZITADEL to a patched version.\n\nA ZITADEL fronting proxy can be configured to delete all Forwarded and X-Forwarded-Host header values before sending requests to ZITADEL self-hosted environments.\n\n### Questions\n\nIf you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com)\n\n### Credits\n\nThanks to Amit Laish – GE Vernova for finding and reporting the vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20250528081227-c097887bc5f6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.38.3"
      }, {
        "fixed" : "2.70.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0-rc1"
      }, {
        "fixed" : "3.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.71.0"
      }, {
        "fixed" : "2.71.11"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.71.10"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 2.38.2-0.20240919104753-94d1eb767837"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/security/advisories/GHSA-93m4-mfpg-c3xf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48936"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/c097887bc5f680e12c998580fb56d98a15758f53"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zitadel/zitadel"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-28T17:36:55Z",
    "nvd_published_at" : "2025-05-30T07:15:24Z"
  }
}