CVE-2024-28855: Github.com/zitadel/zitadel Improper HTML Sanitization Vulnerability
HIGHCVE-2024-28855 is a HIGH (CVSS 8.1) improper html sanitization vulnerability (CWE-20: Improper Input Validation) affecting Github.com/zitadel/zitadel libraries in the Go ecosystem. The issue involves improper html sanitization in zitadel. Remediation is available by upgrading affected packages to version 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.
CVE-2024-28855 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N).
How to Fix CVE-2024-28855
To remediate this vulnerability, upgrade all affected Github.com/zitadel/zitadel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/zitadel/zitadel to 2.41.15
Upgrade github.com/zitadel/zitadel to 2.42.15
Upgrade github.com/zitadel/zitadel to 2.43.9
Upgrade github.com/zitadel/zitadel to 2.44.3
Upgrade github.com/zitadel/zitadel to 2.45.1
Upgrade github.com/zitadel/zitadel to 2.46.1
Upgrade github.com/zitadel/zitadel to 2.47.4
Upgrade github.com/zitadel/zitadel to 0.0.0-20240311065202-07ec2efa9dc6
Upgrade github.com/zitadel/zitadel to 1.80.0-v2.20.0.20240311065202-07ec2efa9dc6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/zitadel/zitadel
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-28855, inspect your project dependencies for Github.com/zitadel/zitadel:
inspect dependencies for github.com/zitadel/zitadel
Analyze the terminal output to locate any version of Github.com/zitadel/zitadel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.41.15), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/zitadel/zitadel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-28855 Affected Github.com/zitadel/zitadel Versions
9 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/zitadel/zitadel
|
Go |
≥ 1.80.1
< 2.41.15
|
2.41.15
|
|
github.com/zitadel/zitadel
|
Go |
≥ 2.42.0
< 2.42.15
|
2.42.15
|
|
github.com/zitadel/zitadel
|
Go |
≥ 2.43.0
< 2.43.9
|
2.43.9
|
|
github.com/zitadel/zitadel
|
Go |
≥ 2.44.0
< 2.44.3
|
2.44.3
|
|
github.com/zitadel/zitadel
|
Go |
≥ 2.45.0
< 2.45.1
All 1 versions
2.45.0
|
2.45.1
|
|
github.com/zitadel/zitadel
|
Go |
≥ 2.46.0
< 2.46.1
All 1 versions
2.46.0
|
2.46.1
|
|
github.com/zitadel/zitadel
|
Go |
≥ 2.47.0
< 2.47.4
|
2.47.4
|
|
github.com/zitadel/zitadel
|
Go |
< 0.0.0-20240311065202-07ec2efa9dc6
|
0.0.0-20240311065202-07ec2efa9dc6
|
|
github.com/zitadel/zitadel
|
Go |
≥ 0.0.0
< 1.80.0-v2.20.0.20240311065202-07ec2efa9dc6
|
1.80.0-v2.20.0.20240311065202-07ec2efa9dc6
|
References
Frequently Asked Questions
What is CVE-2024-28855?
Which Github.com/zitadel/zitadel versions are affected?
What version fixes CVE-2024-28855?
Is github.com/zitadel/zitadel affected?
What is the CVSS score of CVE-2024-28855?
What CWE is associated with CVE-2024-28855?
How can I check Go dependencies for CVE-2024-28855?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hfrg-4jwr-jfpj",
"modified" : "2025-07-08T19:26:15Z",
"published" : "2024-03-18T20:34:00Z",
"aliases" : [ "CVE-2024-28855" ],
"summary" : "Improper HTML sanitization in ZITADEL",
"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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/zitadel/zitadel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.80.1"
}, {
"fixed" : "2.41.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/zitadel/zitadel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.42.0"
}, {
"fixed" : "2.42.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/zitadel/zitadel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.43.0"
}, {
"fixed" : "2.43.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/zitadel/zitadel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.44.0"
}, {
"fixed" : "2.44.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/zitadel/zitadel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.45.0"
}, {
"fixed" : "2.45.1"
} ]
} ],
"versions" : [ "2.45.0" ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/zitadel/zitadel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.46.0"
}, {
"fixed" : "2.46.1"
} ]
} ],
"versions" : [ "2.46.0" ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/zitadel/zitadel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.47.0"
}, {
"fixed" : "2.47.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/zitadel/zitadel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20240311065202-07ec2efa9dc6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/zitadel/zitadel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.0"
}, {
"fixed" : "1.80.0-v2.20.0.20240311065202-07ec2efa9dc6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"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"
}, {
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-03-18T20:34:00Z",
"nvd_published_at" : "2024-03-18T22:15:08Z"
}
}