{"id":"CVE-2025-67495","aliases":["CVE-2025-67495","GHSA-v959-qxv6-6f8p","GO-2025-4213"],"related":[],"kind":"vulnerability","state":"published","title":"ZITADEL Vulnerable to Account Takeover via DOM-Based XSS in Zitadel V2 Login","summary":"ZITADEL is an open-source identity infrastructure tool. Versions 4.0.0-rc.1 through 4.7.0 are vulnerable to DOM-Based XSS through the Zitadel V2 logout endpoint. The /logout endpoint insecurely routes to a value that is supplied in the post_logout_redirect GET parameter. As a result, unauthenticated remote attacker can execute malicious JS code on Zitadel users’ browsers. To carry out an attack, multiple user sessions need to be active in the same browser, however, account takeover is mitigated  when using Multi-Factor Authentication (MFA) or Passwordless authentication. This issue is fixed in version 4.7.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"ZITADEL is an open-source identity infrastructure tool. Versions 4.0.0-rc.1 through 4.7.0 are vulnerable to DOM-Based XSS through the Zitadel V2 logout endpoint. The /logout endpoint insecurely routes to a value that is supplied in the post_logout_redirect GET parameter. As a result, unauthenticated remote attacker can execute malicious JS code on Zitadel users’ browsers. To carry out an attack, multiple user sessions need to be active in the same browser, however, account takeover is mitigated  when using Multi-Factor Authentication (MFA) or Passwordless authentication. This issue is fixed in version 4.7.1.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA potential vulnerability exists in ZITADEL's logout endpoint in login V2. This endpoint accepts serval parameters including a `post_logout_redirect`. When this parameter is specified, users will be redirected to the site that is provided via this parameter.\nZITADEL's login UI did not ensure that this parameter contained an allowed value and even executed passed scripts.\n\n### Impact\n\nZitadel is vulnerable to a DOM-Based XSS vulnerability. More specifically, the /logout endpoint insecurely routed to value that is supplied in the post_logout_redirect GET parameter. As a result, malicious JS code could be executed on Zitadel users’ browsers, in the Zitadel V2 Login domain.\n\nAn unauthenticated remote attacker can exploit this DOM-based XSS vulnerability, and thus, execute malicious JavaScript code on behalf of Zitadel users. By doing so, such an attacker could reset the password of their victims, and take over their accounts.\n\nNote that for this to work, multiple user sessions need to be active in the same browser. Additionally, it's important to note that an account takeover is mitigated for accounts that have Multi-Factor Authentication (MFA) or Passwordless authentication enabled.\n\n### Affected Versions\n\nSystems using the login UI (v2) and running one of the following versions are affected:\n- **v4.x**: `4.0.0-rc.1` through `4.7.0`\n\n### Patches\n\nThe vulnerability has been addressed in the latest release. The patch resolves the issue by ensuring the information was passed for the ZITADEL API using a JSON Web Token (JWT).\nIf you're running your own login UI, we recommend switching over to the new `logout_token` parameter, which contains all information previously passed via specific query parameters. The contained JWT's signature needs to be verified with the instance OAuth2/OIDC public keys (jwks_uri).\n\nBefore you upgrade, ensure that:\n- the `ZITADEL_API_URL` is set and is pointing to your instance, resp. system in multi-instance deployments.\n- the HTTP `host` (or a `x-forwarded-host`) is passed in your reverse proxy to the login UI.\n- a `x-zitadel-instance-host` (or `x-zitadel-forward-host`) is set in your reverse for multi-instance deployments. If you're running a single instance solution, you don't need to take any actions.\n\nPatched versions:\n- 4.x: Upgrade to >=[4.7.1](https://github.com/zitadel/zitadel/releases/tag/v4.7.1)\n\n### Workarounds\n\nThe recommended solution is to update ZITADEL to a patched version.\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 Vulnerable to Account Takeover via DOM-Based XSS in Zitadel V2 Login 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 v4.0.0-rc.1 before v4.7.1.","format":"markdown","source":"go"},{"lang":"es","text":"ZITADEL es una herramienta de infraestructura de identidad de código abierto. Las versiones 4.0.0-rc.1 hasta la 4.7.0 son vulnerables a XSS basado en DOM a través del endpoint de cierre de sesión V2 de Zitadel. El endpoint /logout enruta de forma insegura a un valor que se suministra en el parámetro GET post_logout_redirect. Como resultado, un atacante remoto no autenticado puede ejecutar código JS malicioso en los navegadores de los usuarios de Zitadel. Para llevar a cabo un ataque, múltiples sesiones de usuario deben estar activas en el mismo navegador, sin embargo, la toma de control de la cuenta se mitiga al usar autenticación multifactor (MFA) o autenticación sin contraseña. Este problema se corrige en la versión 4.7.1.","source":"nvd"}],"published":"2025-12-08T22:20:07.000Z","modified":"2026-10-14T21:10:00.183Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","score":8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","score":8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","score":8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.80.0-v2.20.0.20251208091519-4c879b47334e","status":"affected"},{"version":">= 1.83.4, <= 1.87.5","status":"affected"},{"version":">= 4.0.0-rc.1, < 4.7.1","status":"affected"}],"vendor":"zitadel","product":"zitadel","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.80.0-v2.20.0.20251208091519-4c879b47334e"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.83.4","status":"affected","lastAffected":"1.87.5"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0-rc.1","status":"affected","fixed":"4.7.1"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.80.0-v2.20.0.20251208091519-4c879b47334e"}],"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":"1.80.0-v2.20.0.20251208091519-4c879b47334e"},{"type":"semver","introduced":"1.83.4","status":"affected"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"go"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"4.7.1"}],"vendor":"zitadel","product":"zitadel","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/zitadel/zitadel/security/advisories/GHSA-v959-qxv6-6f8p","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/zitadel/zitadel/commit/4c879b47334e01d4fcab921ac1b44eda39acdb96","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67495","tags":["advisory"],"sources":["ghsa","go"]},{"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-12-10T16:13:47.888Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-67495","url":"https://www.cve.org/CVERecord?id=CVE-2025-67495","licence":"CVE Terms of Use","modified":"2025-12-10T16:50:23.393Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v959-qxv6-6f8p","url":"https://github.com/advisories/GHSA-v959-qxv6-6f8p","licence":"CC-BY-4.0","modified":"2025-12-15T19:55:55.625Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4213","url":"https://pkg.go.dev/vuln/GO-2025-4213","licence":"CC-BY-4.0","modified":"2025-12-15T19:55:55.625Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-67495","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67495","licence":"Public domain","modified":"2026-10-14T21:10:00.183Z"}],"updatedAt":"2026-11-25T22:59:09.121Z","epss":{"score":0.00319,"percentile":0.26886,"date":"2026-12-01T12:00:22.000Z"}}