{"id":"CVE-2024-28855","published":"2024-03-18T21:46:47Z","modified":"2024-08-13T14:19:08Z","title":"ZITADEL vulnerable to improper HTML sanitization","vendor":"zitadel","product":"zitadel","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00779,"percentile":0.56794,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/zitadel/zitadel/security/advisories/GHSA-hfrg-4jwr-jfpj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.41.15","tags":["x_refsource_MISC"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.42.15","tags":["x_refsource_MISC"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.43.9","tags":["x_refsource_MISC"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.44.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.45.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.46.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.47.3","tags":["x_refsource_MISC"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":11.36},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"zitadel","affectedVersions":[{"vendor":"zitadel","product":"zitadel","versions":["< 2.41.15",">= 2.42.0, < 2.42.15",">= 2.43.0, < 2.43.9",">= 2.44.0, < 2.44.3","= 2.45.0","= 2.46.0",">= 2.47.0, < 2.47.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-03-19T15:00:40.963408Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/zitadel/zitadel","vulnerableRanges":[">=1.80.1, <2.41.15",">=2.42.0, <2.42.15",">=2.43.0, <2.43.9",">=2.44.0, <2.44.3",">=2.45.0, <2.45.1",">=2.46.0, <2.46.1",">=2.47.0, <2.47.4","<0.0.0-20240311065202-07ec2efa9dc6",">=0.0.0, <1.80.0-v2.20.0.20240311065202-07ec2efa9dc6","<1.80.0-v2.20.0.20240312162750-5908b97e7c22"],"patched":["2.41.15","2.42.15","2.43.9","2.44.3","2.45.1","2.46.1","2.47.4","0.0.0-20240311065202-07ec2efa9dc6","1.80.0-v2.20.0.20240311065202-07ec2efa9dc6","1.80.0-v2.20.0.20240312162750-5908b97e7c22"],"from":["GHSA-hfrg-4jwr-jfpj","GO-2024-2655"],"provenance":"source"}],"summary":{"text":"ZITADEL, an open source authentication management platform, has an improper input sanitization flaw in its Login UI, which renders Go templates using the text/template package instead of html/template. An attacker can exploit this by crafting a malicious link that injects HTML, including JavaScript, into the login screen, requiring a victim to user interaction by following the link, though the Content Security Policy prevents the injected scripts from executing.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:50:06Z"},"euvd":{"id":"EUVD-2024-0935","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-47111","published":"2023-11-08","fixed":"2.40.5","kev":false},{"cve":"CVE-2023-49097","published":"2023-11-30","fixed":"2.41.6","kev":false,"link":{"from":"CVE-2023-49097","to":"CVE-2024-28855","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/zitadel/zitadel","fromFixed":"2.41.6","toFixed":"2.41.15","daysApart":109}]}},{"cve":"CVE-2024-28197","published":"2024-03-11","fixed":"2.45.1","kev":false},{"cve":"CVE-2024-28855","published":"2024-03-18","fixed":"2.47.4","kev":false},{"cve":"CVE-2024-29891","published":"2024-03-27","fixed":"2.48.3","kev":false,"link":{"from":"CVE-2024-28855","to":"CVE-2024-29891","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/zitadel/zitadel","fromFixed":"2.42.15","toFixed":"2.42.17","daysApart":9}]}},{"cve":"CVE-2024-29892","published":"2024-03-27","fixed":"2.48.3","kev":false,"link":{"from":"CVE-2024-28855","to":"CVE-2024-29892","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/zitadel/zitadel","fromFixed":"2.42.15","toFixed":"2.42.17","daysApart":9}]}},{"cve":"CVE-2024-32868","published":"2024-04-25","fixed":"2.50.0","kev":false},{"cve":"CVE-2024-41953","published":"2024-07-31","fixed":"2.58.1","kev":false,"link":{"from":"CVE-2024-28855","to":"CVE-2024-41953","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/zitadel/zitadel","fromFixed":"1.80.0-v2.20.0.20240312162750-5908b97e7c22","toFixed":"1.80.0-v2.20.0.20240731122110-189505c80fa6","daysApart":135},{"kind":"version-step","provenance":"source","package":"Go:github.com/zitadel/zitadel","fromFixed":"0.0.0-20240311065202-07ec2efa9dc6","toFixed":"0.0.0-20240731122110-189505c80fa6","daysApart":135}]}}],"package":"Go:github.com/zitadel/zitadel"}}