Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/zitadel/zitadel
  4. ›
  5. CVE-2024-28855

CVE-2024-28855: Improper HTML sanitization in ZITADEL

March 18, 2024 (updated January 8, 2025)

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

References

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

Code Behaviors & Features

Detect and mitigate CVE-2024-28855 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.41.15, all versions starting from 2.42.0 before 2.42.15, all versions starting from 2.43.0 before 2.43.9, all versions starting from 2.44.0 before 2.44.3, all versions starting from 2.45.0 before 2.45.1, version 2.45.0, all versions starting from 2.46.0 before 2.46.1, version 2.46.0, all versions starting from 2.47.0 before 2.47.4

Fixed versions

  • 2.41.15
  • 2.42.15
  • 2.43.9
  • 2.44.3
  • 2.45.1
  • 2.46.1
  • 2.47.4

Solution

Upgrade to versions 2.41.15, 2.42.15, 2.43.9, 2.44.3, 2.45.1, 2.46.1, 2.47.4 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/zitadel/zitadel/CVE-2024-28855.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:34 +0000.