Skip to main content

CVE-2024-29891 — Vulnerability in github.com/zitadel/zitadel

HIGH

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

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

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.00%). 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-29891 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 users can upload their own avatar image and various image types are allowed.

Due to a missing check, an attacker could upload HTML and pretend it is an image to gain access to the victim's account in certain scenarios. A possible victim would need to directly open the supposed image in the browser, where a session in ZITADEL needs to be active for this exploit to work.

The exploit could only be reproduced if the victim was using Firefox. Chrome, Safari as well as Edge did not execute the code.

Patches

2.x versions are fixed on >= 2.48.3 2.47.x versions are fixed on >= 2.47.8 2.46.x versions are fixed on >= 2.46.5 2.45.x versions are fixed on >= 2.45.5 2.44.x versions are fixed on >= 2.44.7 2.43.x versions are fixed on >= 2.43.11 2.42.x versions are fixed on >= 2.42.17

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

Workarounds

There is no workaround since a patch is already available.

References

None

Questions

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

Credits

Thanks to Amit Laish – GE Vernova for finding and reporting the vulnerability.

Advisory Timeline

  • First published March 28, 2024 (973 days ago).
  • Last revised September 10, 2026 — 895 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/zitadel/zitadel to 2.44.7 or later
go get github.com/zitadel/zitadel@v2.44.7
Go
Update github.com/zitadel/zitadel to 2.48.3 or later
go get github.com/zitadel/zitadel@v2.48.3
Go
Update github.com/zitadel/zitadel to 2.47.8 or later
go get github.com/zitadel/zitadel@v2.47.8
Go
Update github.com/zitadel/zitadel to 2.43.11 or later
go get github.com/zitadel/zitadel@v2.43.11
Go
Update github.com/zitadel/zitadel to 2.42.17 or later
go get github.com/zitadel/zitadel@v2.42.17
Go
Update github.com/zitadel/zitadel to 2.45.5 or later
go get github.com/zitadel/zitadel@v2.45.5
Go
Update github.com/zitadel/zitadel to 2.46.5 or later
go get github.com/zitadel/zitadel@v2.46.5

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

Affected Packages (7)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/zitadel/zitadel Go · Affected: All versions2.44.7
github.com/zitadel/zitadel Go · Affected: All versions2.48.3
github.com/zitadel/zitadel Go · Affected: All versions2.47.8
github.com/zitadel/zitadel Go · Affected: All versions2.43.11
github.com/zitadel/zitadel Go · Affected: All versions2.42.17
github.com/zitadel/zitadel Go · Affected: All versions2.45.5
github.com/zitadel/zitadel Go · Affected: All versions2.46.5

Vulnerability Classification

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

  • CWE-434
    Unrestricted File UploadMITRE
  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

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

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

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

Frequently Asked Questions

What is CVE-2024-29891?
ZITADEL's Improper Content-Type Validation Leads to Account Takeover via Stored XSS + CSP Bypass. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.7/10).
How do I check if my project is affected by CVE-2024-29891?
CVE-2024-29891 affects github.com/zitadel/zitadel. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-29891 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.7

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.00%
EPSS percentile: 61.6

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

Also Known As

GHSA-hr5w-cwwq-2v4m
GO-2024-2665

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum