{"id":"CVE-2024-28855","aliases":["GHSA-hfrg-4jwr-jfpj","GO-2024-2655"],"url":"https://o3.security/vulnerability/CVE-2024-28855","summary":"ZITADEL vulnerable to improper HTML sanitization","details":"### 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.","published":"2024-03-18T21:46:47.314Z","modified":"2026-08-12T03:51:44.575451976Z","cvss":{"score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.41.15"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.42.15"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.43.9"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.44.3"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.45.1"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.46.1"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.47.4"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"0.0.0-20240311065202-07ec2efa9dc6"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"1.80.0-v2.20.0.20240311065202-07ec2efa9dc6"}],"fix":{"url":"https://github.com/zitadel/zitadel/commit/07ec2efa9dc62f7a6c3a58c112b2879d24bc3e3c","label":"zitadel/zitadel@07ec2ef"},"references":[{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.41.15"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.42.15"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.43.9"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.44.3"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.45.1"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.46.1"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.47.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28855.json"},{"type":"ADVISORY","url":"https://github.com/zitadel/zitadel/security/advisories/GHSA-hfrg-4jwr-jfpj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28855"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/commit/07ec2efa9dc62f7a6c3a58c112b2879d24bc3e3c"},{"type":"PACKAGE","url":"https://github.com/zitadel/zitadel"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:44.575451976Z"}}