CVE-2024-28855: ZITADEL vulnerable to improper HTML sanitization

Published Mar 18, 2024
·
Updated

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.

Other sources

ZITADEL, open source authentication management software, 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 prior to versions 2.47.3, 2.46.1, 2.45.1, 2.44.3, 2.43.9, 2.42.15, and 2.41.15. 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. Versions 2.47.3, 2.46.1, 2.45.1, 2.44.3, 2.43.9, 2.42.15, and 2.41.15 contain a patch for this issue. No known workarounds are available.

— MITRE

Affected Software

19 affected componentsFixes available
ZITADEL ZITADEL<2.41.15
ZITADEL ZITADEL>=2.42.0<2.42.15
ZITADEL ZITADEL>=2.43.0<2.43.9
ZITADEL ZITADEL>=2.44.0<2.44.3
ZITADEL ZITADEL>=2.47.0<2.47.4
ZITADEL ZITADEL=2.45.0
ZITADEL ZITADEL=2.45.0-rc1
ZITADEL ZITADEL=2.46.0
ZITADEL ZITADEL=2.46.0-rc1
ZITADEL ZITADEL=2.46.0-rc2
go/github.com/zitadel/zitadel>=0.0.0<1.80.0-v2.20.0.20240311065202-07ec2efa9dc6
1.80.0-v2.20.0.20240311065202-07ec2efa9dc6
go/github.com/zitadel/zitadel>=1.80.1<2.41.15
2.41.15
go/github.com/zitadel/zitadel<0.0.0-20240311065202-07ec2efa9dc6
0.0.0-20240311065202-07ec2efa9dc6
go/github.com/zitadel/zitadel>=2.47.0<2.47.4
2.47.4
go/github.com/zitadel/zitadel=2.46.0
2.46.1
go/github.com/zitadel/zitadel=2.45.0
2.45.1
go/github.com/zitadel/zitadel>=2.44.0<2.44.3
2.44.3
go/github.com/zitadel/zitadel>=2.43.0<2.43.9
2.43.9
go/github.com/zitadel/zitadel>=2.42.0<2.42.15
2.42.15

Event History

Mar 18, 2024
Advisory Published
via GitHub·08:34 PM
Data Sourced
via GitHub·08:34 PM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·09:46 PM
Data Sourced
via MITRE·09:46 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2024-28855?

CVE-2024-28855 has been classified as a significant security vulnerability due to improper input sanitization in the ZITADEL login UI.

2

How do I fix CVE-2024-28855?

To fix CVE-2024-28855, upgrade ZITADEL to version 2.47.4 or later.

3

What versions of ZITADEL are affected by CVE-2024-28855?

CVE-2024-28855 affects ZITADEL versions prior to 2.47.4.

4

What exploit can occur due to CVE-2024-28855?

An attacker could exploit CVE-2024-28855 to inject malicious code into the login UI through crafted links.

5

Is it safe to use ZITADEL version 2.46.0 with CVE-2024-28855?

Using ZITADEL version 2.46.0 is not safe as it is affected by CVE-2024-28855 and lacks the necessary input sanitization.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203