{"id":"CVE-2024-28855","aliases":["CVE-2024-28855","GHSA-hfrg-4jwr-jfpj","GO-2024-2655"],"related":[],"kind":"vulnerability","state":"published","title":"ZITADEL vulnerable to improper HTML sanitization","summary":"ZITADEL, open source authentication management software, uses Go templates to render the login UI. Due to a improper use of the `text/template` instead of the `html/template` package, the Login UI did not sanitize input parameters prior to versions 2.47.3, 2.46.1, 2.45.1, 2.44.3, 2.43.9, 2.42.15, and 2.41.15. An attacker could create a malicious link, where he injected code which would be rendered as part of the login screen. While it was possible to inject HTML including JavaScript, the execution of such scripts would be prevented by the Content Security Policy. Versions 2.47.3, 2.46.1, 2.45.1, 2.44.3, 2.43.9, 2.42.15, and 2.41.15 contain a patch for this issue. No known workarounds are available.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"ZITADEL, open source authentication management software, uses Go templates to render the login UI. Due to a improper use of the `text/template` instead of the `html/template` package, the Login UI did not sanitize input parameters prior to versions 2.47.3, 2.46.1, 2.45.1, 2.44.3, 2.43.9, 2.42.15, and 2.41.15. An attacker could create a malicious link, where he injected code which would be rendered as part of the login screen. While it was possible to inject HTML including JavaScript, the execution of such scripts would be prevented by the Content Security Policy. Versions 2.47.3, 2.46.1, 2.45.1, 2.44.3, 2.43.9, 2.42.15, and 2.41.15 contain a patch for this issue. No known workarounds are available.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nZITADEL uses Go templates to render the login UI.\n\nDue to a improper use of the `text/template` instead of the `html/template` package, the Login UI did not sanitize input parameters. An attacker could create a malicious link, where he injected code which would be rendered as part of the login screen.\nWhile it was possible to inject HTML including javascript, the execution of such scripts would be prevented by the Content Security Policy.\n\n### Patches\n\n2.x versions are fixed on >= [2.47.3](https://github.com/zitadel/zitadel/releases/tag/v2.47.3)\n2.46.x versions are fixed on >= [2.46.1](https://github.com/zitadel/zitadel/releases/tag/v2.46.1)\n2.45.x versions are fixed on >= [2.45.1](https://github.com/zitadel/zitadel/releases/tag/v2.45.1)\n2.44.x versions are fixed on >= [2.44.3](https://github.com/zitadel/zitadel/releases/tag/v2.44.3)\n2.43.x versions are fixed on >= [2.43.9](https://github.com/zitadel/zitadel/releases/tag/v2.43.9)\n2.42.x versions are fixed on >= [2.42.15](https://github.com/zitadel/zitadel/releases/tag/v2.42.15)\n2.41.x versions are fixed on >= [2.41.15](https://github.com/zitadel/zitadel/releases/tag/v2.41.15)\n\nZITADEL recommends upgrading to the latest versions available in due course.\n\n### Workarounds\n\nThere is no workaround since a patch is already available.\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 Daniel Philipp - owt and Thomas Wickham - synopsis for reporting this.","format":"markdown","source":"ghsa"},{"lang":"en","text":"The Login UI did not sanitize input parameters. An attacker could create a malicious link, where injected code would be rendered as part of the login screen.","format":"markdown","source":"go"},{"lang":"es","text":"ZITADEL, software de gestión de autenticación de código abierto, utiliza plantillas Go para representar la interfaz de usuario de inicio de sesión. Debido a un uso inadecuado del paquete `text/template` en lugar del paquete `html/template`, la interfaz de usuario de inicio de sesión no sanitizó los parámetros de entrada antes de las versiones 2.47.3, 2.46.1, 2.45.1, 2.44.3, 2.43. .9, 2.42.15 y 2.41.15. Un atacante podría crear un enlace malicioso, donde inyectaría un código que se mostraría como parte de la pantalla de inicio de sesión. Si bien era posible inyectar HTML, incluido JavaScript, la Política de seguridad de contenido impediría la ejecución de dichos scripts. Las versiones 2.47.3, 2.46.1, 2.45.1, 2.44.3, 2.43.9, 2.42.15 y 2.41.15 contienen un parche para este problema. No hay workarounds conocidos disponibles.","source":"nvd"}],"published":"2024-03-18T20:34:00.000Z","modified":"2026-09-10T03:50:10.567Z","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:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-20","CWE-79"],"affected":[{"ranges":[{"version":"< 2.41.15","status":"affected"},{"version":">= 2.42.0, < 2.42.15","status":"affected"},{"version":">= 2.43.0, < 2.43.9","status":"affected"},{"version":">= 2.44.0, < 2.44.3","status":"affected"},{"version":"= 2.45.0","status":"affected"},{"version":"= 2.46.0","status":"affected"},{"version":">= 2.47.0, < 2.47.4","status":"affected"}],"vendor":"zitadel","product":"zitadel","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"2.41.15","status":"affected"},{"type":"custom","introduced":"2.42.0","fixed":"2.42.15","status":"affected"},{"type":"custom","introduced":"2.43.0","fixed":"2.43.9","status":"affected"},{"type":"custom","introduced":"2.44.0","fixed":"2.44.3","status":"affected"},{"type":"custom","introduced":"2.47.0","fixed":"2.47.4","status":"affected"}],"vendor":"zitadel","product":"zitadel","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"2.45.0","status":"affected"}],"vendor":"zitadel","product":"zitadel","cpe":"cpe:2.3:a:zitadel:zitadel:2.45.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"2.46.0","status":"affected"}],"vendor":"zitadel","product":"zitadel","cpe":"cpe:2.3:a:zitadel:zitadel:2.46.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.80.1","status":"affected","fixed":"2.41.15"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.42.0","status":"affected","fixed":"2.42.15"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.43.0","status":"affected","fixed":"2.43.9"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.44.0","status":"affected","fixed":"2.44.3"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.45.0","status":"affected","fixed":"2.45.1"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.46.0","status":"affected","fixed":"2.46.1"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.47.0","status":"affected","fixed":"2.47.4"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20240311065202-07ec2efa9dc6"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0","status":"affected","fixed":"1.80.0-v2.20.0.20240311065202-07ec2efa9dc6"}],"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.20240312162750-5908b97e7c22"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"go"},{"ranges":[{"status":"affected","fixed":"2.41.15"},{"status":"affected","introduced":"2.42.0","fixed":"2.42.15"},{"status":"affected","introduced":"2.43.0","fixed":"2.43.9"},{"status":"affected","introduced":"2.44.0","fixed":"2.44.3"},{"status":"affected","introduced":"2.47.0","fixed":"2.47.4"},{"status":"affected","version":"2.45.0"},{"status":"affected","version":"2.45.0"},{"status":"affected","version":"2.46.0"},{"status":"affected","version":"2.46.0"},{"status":"affected","version":"2.46.0"}],"vendor":"zitadel","product":"zitadel","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/zitadel/zitadel/security/advisories/GHSA-hfrg-4jwr-jfpj","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.41.15","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.42.15","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.43.9","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.44.3","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.45.1","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.46.1","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.47.3","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28855","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/zitadel/zitadel/commit/07ec2efa9dc62f7a6c3a58c112b2879d24bc3e3c","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/zitadel/zitadel","tags":["package"],"sources":["ghsa"]}],"credits":["Daniel Philipp (OWT) and Thomas Wickham (Synopsis)"],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-03-19T15:00:40.963Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-28855","url":"https://www.cve.org/CVERecord?id=CVE-2024-28855","licence":"CVE Terms of Use","modified":"2024-08-13T14:19:08.789Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hfrg-4jwr-jfpj","url":"https://github.com/advisories/GHSA-hfrg-4jwr-jfpj","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:10.567Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2655","url":"https://pkg.go.dev/vuln/GO-2024-2655","licence":"CC-BY-4.0","modified":"2024-07-09T19:33:56.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-28855","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28855","licence":"Public domain","modified":"2026-06-17T07:21:53.947Z"}],"updatedAt":"2026-11-25T22:58:37.692Z","epss":{"score":0.00779,"percentile":0.57081,"date":"2026-12-01T12:00:22.000Z"}}