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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.06% (percentile 64, 2026-11-26)
- **CWE:** CWE-20
- **Aliases:** GHSA-hfrg-4jwr-jfpj, GO-2024-2655
- **Published:** 2024-03-18T20:34:00.000Z
- **Modified:** 2026-09-10T03:50:10.567Z

## Who should check

- Projects that depend on Go package github.com/zitadel/zitadel (\>= 1.80.1, \< 2.41.15)
- Anyone running zitadel \< 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

## 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.

## Affected and fixed versions

- Go `github.com/zitadel/zitadel`: affected \>= 1.80.1, \< 2.41.15; fixed 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 (osv)
- zitadel: \< 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 (cvelist)

## Mitigation

- Upgrade github.com/zitadel/zitadel to one of 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 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-28855. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-28855.md
Affected: github.com/zitadel/zitadel >= 1.80.1, < 2.41.15
Fixed in: 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

Steps:
1. Search this machine and project for github.com/zitadel/zitadel (Go), zitadel: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-28855 being exploited?

There is no confirmed exploitation: CVE-2024-28855 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.06% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-28855?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-28855?

github.com/zitadel/zitadel \>= 1.80.1, \< 2.41.15.

### Is there a fix for CVE-2024-28855?

Yes. Fixed in 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. Upgrade github.com/zitadel/zitadel to one of 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 (or later in the same release line).

### How do I check if I'm affected by CVE-2024-28855?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zitadel/zitadel/security/advisories/GHSA-hfrg-4jwr-jfpj>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-28855>
- patch: <https://github.com/zitadel/zitadel/commit/07ec2efa9dc62f7a6c3a58c112b2879d24bc3e3c>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.41.15>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.42.15>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.43.9>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.44.3>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.45.1>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.46.1>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.47.3>
- other: <https://github.com/zitadel/zitadel>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-28855>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hfrg-4jwr-jfpj> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2655> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-28855> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-28855>
