{"answers":{"affected":"15 open source packages ship an affected version, including github.com/zitadel/zitadel. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-29891 in the wild and no public exploit code.","fix":"Upgrade github.com/zitadel/zitadel to a fixed version for your release line: 2.42.17, 2.43.11, 2.44.7 or 2.45.5.","what":"CVE-2024-29891 is a high-severity cross-site scripting vulnerability in zitadel, published on 27 Mar 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-29891 and fix it if it is affected.\n\nWhat it is: CVE-2024-29891 is a high-severity cross-site scripting vulnerability in zitadel, published on 27 Mar 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-29891 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/zitadel/zitadel (Go): affected all versions; no fix listed\n- github.com/zitadel/zitadel (Go): affected all versions; fixed in 2.42.17\n- github.com/zitadel/zitadel (Go): affected all versions; fixed in 2.42.17\n- github.com/zitadel/zitadel (Go): affected from 2.43.0; fixed in 2.43.11\n- github.com/zitadel/zitadel (Go): affected from 2.43.0; fixed in 2.43.11\n- github.com/zitadel/zitadel (Go): affected from 2.44.0; fixed in 2.44.7\n- github.com/zitadel/zitadel (Go): affected from 2.44.0; fixed in 2.44.7\n- github.com/zitadel/zitadel (Go): affected from 2.45.0; fixed in 2.45.5\n- github.com/zitadel/zitadel (Go): affected from 2.45.0; fixed in 2.45.5\n- github.com/zitadel/zitadel (Go): affected from 2.46.0; fixed in 2.46.5\n- github.com/zitadel/zitadel (Go): affected from 2.46.0; fixed in 2.46.5\n- github.com/zitadel/zitadel (Go): affected from 2.47.0; fixed in 2.47.8\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-29891/ (Markdown: https://insights.sbomify.com/CVE-2024-29891/index.md)","id":"CVE-2024-29891","markdown":"https://insights.sbomify.com/CVE-2024-29891/index.md","name":"CVE-2024-29891","record":{"aliases":["GHSA-hr5w-cwwq-2v4m","GO-2024-2665"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Identity and Access Management","requires_auth":"low_privilege","summary":"Attackers can upload malicious HTML disguised as images to execute scripts in victim browsers, leading to account takeover.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"zitadel","vendor":"zitadel"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"ZITADEL Improper Content-Type Validation Leads to Account Takeover via Stored XSS + CSP Bypass","id":"CVE-2024-29891","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":15,"n_references":8,"next":{"headline":"ZITADEL's actions can overload reserved claims","id":"CVE-2024-29892"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GO-2024-2665"},{"ecosystem":"Go","fixed":["2.42.17"],"introduced":["0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":null,"source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.42.17"],"introduced":["0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.43.11"],"introduced":["2.43.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":null,"source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.43.11"],"introduced":["2.43.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.44.7"],"introduced":["2.44.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":null,"source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.44.7"],"introduced":["2.44.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.45.5"],"introduced":["2.45.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":null,"source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.45.5"],"introduced":["2.45.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.46.5"],"introduced":["2.46.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":null,"source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.46.5"],"introduced":["2.46.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.47.8"],"introduced":["2.47.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":null,"source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.47.8"],"introduced":["2.47.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.48.3"],"introduced":["2.48.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":null,"source":"GHSA-hr5w-cwwq-2v4m"},{"ecosystem":"Go","fixed":["2.48.3"],"introduced":["2.48.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GHSA-hr5w-cwwq-2v4m"}],"prev":{"headline":"Remote code execution in datalens-ui","id":"CVE-2024-29890"},"products":["zitadel"],"published":"2024-03-27","related":[{"cvss_score":9.3,"headline":"ZITADEL: 1-Click Account Takeover via XSS in /saml-post Endpoint","id":"CVE-2026-29191","kev_date_added":null,"published":"2026-03-07"},{"cvss_score":9.3,"headline":"ZITADEL Vulnerable to Unauthenticated Full-Read SSRF via V2 Login","id":"CVE-2025-67494","kev_date_added":null,"published":"2025-12-09"},{"cvss_score":9,"headline":"IDOR Vulnerabilities in ZITADEL's Admin API that Primarily Impact LDAP Configurations","id":"CVE-2025-27507","kev_date_added":null,"published":"2025-03-04"},{"cvss_score":8.7,"headline":"Zitadel Bypass Second Authentication Factor","id":"CVE-2025-64103","kev_date_added":null,"published":"2025-10-29"},{"cvss_score":8.7,"headline":"Zitadel Expired JWT Keys Usable for Authorization Grants","id":"CVE-2025-31123","kev_date_added":null,"published":"2025-03-31"},{"cvss_score":8.7,"headline":"XSS with User Avatar image in ZITADEL","id":"CVE-2023-46238","kev_date_added":null,"published":"2023-10-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["zitadel"]},"summary":"Attackers can upload malicious HTML disguised as images to execute scripts in victim browsers, leading to account takeover.","url":"https://insights.sbomify.com/CVE-2024-29891/"}