{"id":"CVE-2025-48936","aliases":["CVE-2025-48936","GHSA-93m4-mfpg-c3xf","GO-2025-3721"],"related":[],"kind":"vulnerability","state":"published","title":"ZITADEL Allows Account Takeover via Malicious X-Forwarded-Proto Header Injection","summary":"Zitadel is open-source identity infrastructure software. Prior to versions 2.70.12, 2.71.10, and 3.2.2, a potential vulnerability exists in the 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. This specific attack vector is mitigated for accounts that have Multi-Factor Authentication (MFA) or Passwordless authentication enabled. This issue has been patched in versions 2.70.12, 2.71.10, and 3.2.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Zitadel is open-source identity infrastructure software. Prior to versions 2.70.12, 2.71.10, and 3.2.2, a potential vulnerability exists in the 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. This specific attack vector is mitigated for accounts that have Multi-Factor Authentication (MFA) or Passwordless authentication enabled. This issue has been patched in versions 2.70.12, 2.71.10, and 3.2.2.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"ZITADEL Allows Account Takeover via Malicious X-Forwarded-Proto Header Injection in github.com/zitadel/zitadel.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/zitadel/zitadel from v2.38.3 before v2.70.12, from v2.71.0 before v2.71.11, from v3.0.0-rc1 before v3.2.2.","format":"markdown","source":"go"},{"lang":"es","text":"Zitadel es un software de infraestructura de identidad de código abierto. En versiones anteriores a las 2.70.12, 2.71.10 y 3.2.2, existía una posible vulnerabilidad en el mecanismo de restablecimiento de contraseña. ZITADEL utiliza el encabezado \"Forwarded\" o \"X-Forwarded-Host\" de las solicitudes entrantes para construir la URL del enlace de confirmación de restablecimiento de contraseña. Este enlace, que contiene un código secreto, se envía por correo electrónico al usuario. Si un atacante manipula estos encabezados (por ejemplo, mediante la inyección de un encabezado de host), podría generar un enlace de restablecimiento de contraseña que apunta a un dominio malicioso controlado por el atacante. Si el usuario hace clic en este enlace manipulado en el correo electrónico, el atacante puede capturar el código secreto de restablecimiento incrustado en la URL. Este código capturado podría utilizarse para restablecer la contraseña del usuario y obtener acceso no autorizado a su cuenta. Este vector de ataque específico se mitiga en cuentas con autenticación multifactor (MFA) o autenticación sin contraseña habilitada. Este problema se ha solucionado en las versiones 2.70.12, 2.71.10 y 3.2.2.","source":"nvd"}],"published":"2025-05-28T17:36:55.000Z","modified":"2026-06-17T09:30:30.837Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-77","CWE-601"],"affected":[{"ranges":[{"version":"< 2.70.12","status":"affected"},{"version":">= 2.71.0, <= 2.71.10","status":"affected"},{"version":">= 3.0.0-rc1, < 3.2.2","status":"affected"}],"vendor":"zitadel","product":"zitadel","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20250528081227-c097887bc5f6"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.38.3","status":"affected","fixed":"2.70.12"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel/v2","purl":"pkg:golang/github.com/zitadel/zitadel/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0-rc1","status":"affected","fixed":"3.2.2"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel/v2","purl":"pkg:golang/github.com/zitadel/zitadel/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.71.0","status":"affected","fixed":"2.71.11"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel/v2","purl":"pkg:golang/github.com/zitadel/zitadel/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel/v2","purl":"pkg:golang/github.com/zitadel/zitadel/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20250528081227-c097887bc5f6"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"go"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.70.12"},{"status":"affected","introduced":"2.71.0","fixed":"2.71.11"},{"status":"affected","introduced":"3.0.0","fixed":"3.2.2"}],"vendor":"zitadel","product":"zitadel","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/zitadel/zitadel/security/advisories/GHSA-93m4-mfpg-c3xf","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/zitadel/zitadel/commit/c097887bc5f680e12c998580fb56d98a15758f53","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48936","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/zitadel/zitadel","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-05-30T13:06:39.523Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-48936","url":"https://www.cve.org/CVERecord?id=CVE-2025-48936","licence":"CVE Terms of Use","modified":"2025-05-30T13:06:54.297Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-93m4-mfpg-c3xf","url":"https://github.com/advisories/GHSA-93m4-mfpg-c3xf","licence":"CC-BY-4.0","modified":"2026-04-01T17:33:34.727Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3721","url":"https://pkg.go.dev/vuln/GO-2025-3721","licence":"CC-BY-4.0","modified":"2025-05-31T04:29:09.501Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-48936","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48936","licence":"Public domain","modified":"2026-06-17T09:30:30.837Z"}],"updatedAt":"2026-11-25T22:58:58.586Z","epss":{"score":0.00418,"percentile":0.38087,"date":"2026-12-01T12:00:22.000Z"}}