Vulnerability · Published Jul 31, 2024 · Assigned by GitHub_M
CVE-2024-41953Zitadel improperly sanitizes HTML in emails and Console UI
Medium 4.3
In plain English
A medium-severity cross-site scripting in zitadel from zitadel. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Zitadel is an open source identity management system. ZITADEL uses HTML for emails and renders certain information such as usernames dynamically. That information can be entered by users or administrators. Due to a missing output sanitization, these emails could include malicious code. This may potentially lead to a threat where an attacker, without privileges, could send out altered notifications that are part of the registration processes. An attacker could create a malicious link, where the injected code would be rendered as part of the email. On the user's detail page, the username was also not sanitized and would also render HTML, giving an attacker the same vulnerability. While it was possible to inject HTML including javascript, the execution of such scripts would be prevented by most email clients and the Content Security Policy in Console UI. This vulnerability is fixed in 2.58.1, 2.57.1, 2.56.2, 2.55.5, 2.54.8 2.53.9, and 2.52.3.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/zitadel/zitadel | 2.52.3 | GHSA-v333-7h2p-5fhv |
| Go | github.com/zitadel/zitadel | 2.53.9 | GHSA-v333-7h2p-5fhv |
| Go | github.com/zitadel/zitadel | 2.54.8 | GHSA-v333-7h2p-5fhv |
| Go | github.com/zitadel/zitadel | 2.55.5 | GHSA-v333-7h2p-5fhv |
| Go | github.com/zitadel/zitadel | 2.56.2 | GHSA-v333-7h2p-5fhv |
| Go | github.com/zitadel/zitadel | 2.57.1 | GHSA-v333-7h2p-5fhv |
| Go | github.com/zitadel/zitadel | 2.58.1 | GHSA-v333-7h2p-5fhv |
| Go | github.com/zitadel/zitadel | 0.0.0-20240731122110-189505c80fa6 | GHSA-v333-7h2p-5fhv |
| Go | github.com/zitadel/zitadel | 1.80.0-v2.20.0.20240731122110-189505c80fa6 | GHSA-v333-7h2p-5fhv |
| Go | github.com/zitadel/zitadel | no fix listed | GO-2024-3015 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
References
- https://github.com/zitadel/zitadel/security/advisories/GHSA-v333-7h2p-5fhv x_refsource_CONFIRM
- https://github.com/zitadel/zitadel/commit/0e1f99e987b5851caec45a72660fe9f67e425747 x_refsource_MISC
- https://github.com/zitadel/zitadel/commit/38da602ee1cfc35c0d7918c298fbfc3f3674133b x_refsource_MISC
- https://github.com/zitadel/zitadel/commit/4b59cac67bb89c1f3f84a2041dd273d11151d29f x_refsource_MISC
- https://github.com/zitadel/zitadel/commit/c1a3fc72dde16e987d8a09aa291e7c2edfc928f7 x_refsource_MISC
- https://github.com/zitadel/zitadel/commit/c353f82f89c6982c0888c6763363296cf4263cb2 x_refsource_MISC
- https://github.com/zitadel/zitadel/commit/d04ac6df8f2f0243e649b802a8bfa6176cef0923 x_refsource_MISC
- https://github.com/zitadel/zitadel/commit/f846616a3f022e88e3ea8cea05d3254ad86f1615 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.52.3 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.53.9 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.54.8 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.55.5 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.56.2 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.57.1 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.58.1 x_refsource_MISC