Skip to main content

CVE-2024-28855 — Improper HTML sanitization in...

HIGH

Improper HTML sanitization in ZITADEL

Published March 18, 2024Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.06%). Schedule for your next planned update.

Does your project use an affected github.com/zitadel/zitadel version?

Paste your go.sum to check it for CVE-2024-28855 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

Impact

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.

Patches

2.x versions are fixed on >= 2.47.3 2.46.x versions are fixed on >= 2.46.1 2.45.x versions are fixed on >= 2.45.1 2.44.x versions are fixed on >= 2.44.3 2.43.x versions are fixed on >= 2.43.9 2.42.x versions are fixed on >= 2.42.15 2.41.x versions are fixed on >= 2.41.15

ZITADEL recommends upgrading to the latest versions available in due course.

Workarounds

There is no workaround since a patch is already available.

Questions

If you have any questions or comments about this advisory, please email us at security@zitadel.com

Credits

Thanks to Daniel Philipp - owt and Thomas Wickham - synopsis for reporting this.

Advisory Timeline

  • First published March 18, 2024 (983 days ago).
  • Last revised September 10, 2026 — 905 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/zitadel/zitadel to 2.43.9 or later
go get github.com/zitadel/zitadel@v2.43.9
Go
Update github.com/zitadel/zitadel to 0.0.0-20240311065202-07ec2efa9dc6 or later
go get github.com/zitadel/zitadel@v0.0.0-20240311065202-07ec2efa9dc6
Go
Update github.com/zitadel/zitadel to 2.46.1 or later
go get github.com/zitadel/zitadel@v2.46.1
Go
Update github.com/zitadel/zitadel to 2.42.15 or later
go get github.com/zitadel/zitadel@v2.42.15
Go
Update github.com/zitadel/zitadel to 2.45.1 or later
go get github.com/zitadel/zitadel@v2.45.1
Go
Update github.com/zitadel/zitadel to 2.41.15 or later
go get github.com/zitadel/zitadel@v2.41.15
Go
Update github.com/zitadel/zitadel to 2.47.4 or later
go get github.com/zitadel/zitadel@v2.47.4
Go
Update github.com/zitadel/zitadel to 2.44.3 or later
go get github.com/zitadel/zitadel@v2.44.3
Go
Update github.com/zitadel/zitadel to 1.80.0-v2.20.0.20240311065202-07ec2efa9dc6 or later
go get github.com/zitadel/zitadel@v1.80.0-v2.20.0.20240311065202-07ec2efa9dc6

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (9)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/zitadel/zitadel Go · Affected: All versions2.43.9
github.com/zitadel/zitadel Go · Affected: All versions0.0.0-20240311065202-07ec2efa9dc6
github.com/zitadel/zitadel Go · Affected: 2.46.02.46.1
github.com/zitadel/zitadel Go · Affected: All versions2.42.15
github.com/zitadel/zitadel Go · Affected: 2.45.02.45.1
github.com/zitadel/zitadel Go · Affected: All versions2.41.15
github.com/zitadel/zitadel Go · Affected: All versions2.47.4
github.com/zitadel/zitadel Go · Affected: All versions2.44.3
github.com/zitadel/zitadel Go · Affected: All versions1.80.0-v2.20.0.20240311065202-07ec2efa9dc6

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-20
    Improper Input ValidationMITRE
  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

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

Frequently Asked Questions

What is CVE-2024-28855?
Improper HTML sanitization in ZITADEL. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2024-28855?
CVE-2024-28855 affects github.com/zitadel/zitadel. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-28855 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.06%
EPSS percentile: 64.1

This is an above-median EPSS score — 64.1% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-hfrg-4jwr-jfpj
GO-2024-2655

Related CVEs

  • CVE-2025-67494
    CRITICAL

    ZITADEL Vulnerable to Unauthenticated Full-Read SSRF via V2 Login

  • CVE-2025-27507
    CRITICAL

    IDOR Vulnerabilities in ZITADEL's Admin API that Primarily Impact LDAP Configurations

  • CVE-2026-29193
    HIGH

    ZITADEL: Login V2 UI Policy Bypass Allows Unauthorized Self-Registration and Authentication

  • CVE-2025-48936
    HIGH

    ZITADEL Allows Account Takeover via Malicious X-Forwarded-Proto Header Injection

  • CVE-2025-64103
    HIGH

    Zitadel May Bypass Second Authentication Factor

  • CVE-2025-64431
    HIGH

    IDOR Vulnerabilities in ZITADEL's Organization API allows Cross-Tenant Data Tempering

  • CVE-2026-85057
    HIGH

    ZITADEL: Actions V1 sandbox escape: host file read via require()

  • CVE-2024-29891
    HIGH

    ZITADEL's Improper Content-Type Validation Leads to Account Takeover via Stored XSS + CSP Bypass

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum