# CVE-2024-29891: ZITADEL Improper Content-Type Validation Leads to Account Takeover via Stored XSS + CSP Bypass

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

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); 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, login needed
- **EPSS:** 1.00% (percentile 62, 2026-11-28)
- **CWE:** CWE-434
- **Aliases:** GHSA-hr5w-cwwq-2v4m, GO-2024-2665
- **Published:** 2024-03-27T19:18:08.078Z
- **Modified:** 2026-09-10T03:50:10.594Z

## Who should check

- Projects that depend on Go package github.com/zitadel/zitadel (\< 2.42.17)
- Anyone running zitadel \< 2.42.17; \>= 2.43.0, \< 2.43.11; \>= 2.44.0, \< 2.44.7; \>= 2.45.0, \< 2.45.5; \>= 2.46.0, \< 2.46.5; \>= 2.47.0, \< 2.47.8; \>= 2.48.0, \< 2.48.3

## Description

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. This vulnerability is fixed in 2.48.3, 2.47.8, 2.46.5, 2.45.5, 2.44.7, 2.43.11, and 2.42.17.

## Affected and fixed versions

- Go `github.com/zitadel/zitadel`: affected \< 2.42.17; fixed 2.42.17, 2.43.11, 2.44.7, 2.45.5, 2.46.5, 2.47.8, 2.48.3 (osv)
- zitadel: \< 2.42.17; \>= 2.43.0, \< 2.43.11; \>= 2.44.0, \< 2.44.7; \>= 2.45.0, \< 2.45.5; \>= 2.46.0, \< 2.46.5; \>= 2.47.0, \< 2.47.8; \>= 2.48.0, \< 2.48.3 (cvelist)

## Mitigation

- Upgrade github.com/zitadel/zitadel to one of 2.42.17, 2.43.11, 2.44.7, 2.45.5, 2.46.5, 2.47.8, 2.48.3 (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-29891. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-29891.md
Affected: github.com/zitadel/zitadel < 2.42.17
Fixed in: 2.42.17, 2.43.11, 2.44.7, 2.45.5, 2.46.5, 2.47.8, 2.48.3

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-29891 being exploited?

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

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

High: CVSS 8.7 (v3.1, scored by CNA). Remote, 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-29891?

github.com/zitadel/zitadel \< 2.42.17.

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

Yes. Fixed in 2.42.17, 2.43.11, 2.44.7, 2.45.5, 2.46.5, 2.47.8, 2.48.3. Upgrade github.com/zitadel/zitadel to one of 2.42.17, 2.43.11, 2.44.7, 2.45.5, 2.46.5, 2.47.8, 2.48.3 (or later in the same release line).

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

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-hr5w-cwwq-2v4m>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-29891>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.42.17>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.43.11>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.44.7>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.45.5>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.46.5>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.47.8>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.48.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-29891>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hr5w-cwwq-2v4m> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2665> (license: <https://creativecommons.org/licenses/by/4.0/>)

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