# CVE-2024-5062: ZenML reflected cross-site scripting in survey redirect

Source: https://junglewise.ai/threats/cve-2024-5062-zenml-reflected-cross-site-scripting-in-survey-redirect  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-06-30. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2024-5062 · Severity: low · CVSS 3.1 · Published 2024-06-30

ZenML is an open-source framework for machine learning operations and workflow management. A reflected cross-site scripting (XSS) vulnerability in the survey redirect parameter allows attackers to inject malicious scripts that execute in users' browsers, potentially stealing session cookies and account credentials without authentication.

Technologies: [zenml (PyPI)](https://junglewise.ai/threats/technologies/pypi-zenml), [ZenML](https://junglewise.ai/threats/technologies/zenml). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi), [ZenML](https://junglewise.ai/threats/vendors/zenml).

## Quick answers

**Is CVE-2024-5062 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-5062 being exploited in the wild.

**How severe is CVE-2024-5062?** Low severity, with a CVSS score of 3.1, published 30 June 2024.

**Which products and versions are affected?** zenml (PyPI) GIT:introduced=0,fixed=21edd863c0ba53c1110b6f018a07c2d6853cf6d4,fixed=21edd863c0ba53c1110b6f018a07c2d6853cf6d4|ECOSYSTEM:introduced=0,fixed=0.58.0; ZenML 0.57.1.

**Is there a fix for CVE-2024-5062?** Yes. zenml (PyPI): upgrade to 0.58.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2024-5062 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2024-5062?** Check whether you run zenml (PyPI) or ZenML at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- zenml (PyPI): upgrade to 0.58.0 or later

  ```sh
  pip install "zenml>=0.58.0"
  ```


## Technical details

A reflected XSS vulnerability exists in ZenML version 0.57.1 due to improper validation of the 'redirect' parameter in the survey functionality (CWE-79). The vulnerability allows an attacker to craft a malicious URL with unvalidated redirect parameter that, when clicked by a user, executes arbitrary JavaScript in the victim's browser context. The attack vector is network-based and requires user interaction (clicking a malicious link). An attacker can steal cookies, session tokens, or other sensitive data, potentially leading to account takeover. The vulnerability was fixed in version 0.58.0.

## Affected products

- ZenML ZenML 0.57.1

## Identifiers

- CVE-2024-5062
- GHSA-3434-hc3m-8mmm
- PYSEC-2024-176

## Timeline

- 2024-06-30: disclosed
- 2024-05-27: patched: Version 0.58.0 released

## References

- [https://github.com/zenml-io/zenml/commit/21edd863c0ba53c1110b6f018a07c2d6853cf6d4](https://github.com/zenml-io/zenml/commit/21edd863c0ba53c1110b6f018a07c2d6853cf6d4)

## Related threats

- [ZenML rate limit bypass in login and password-change endpoints](https://junglewise.ai/threats/cve-2026-11922-zenml-rate-limit-bypass-in-login-and-password-change-endpoints)
- [zenml-io ZenML missing authorization in stack deployment endpoint](https://junglewise.ai/threats/cve-2026-11876-zenml-io-zenml-missing-authorization-in-stack-deployment-endpoint)
- [PYSEC-2026-2071 - ZenML is vulnerable to Path Traversal through its `PathMaterializer` class](https://junglewise.ai/threats/cve-2025-8406-zenml-is-vulnerable-to-path-traversal-through-its-pathmaterializer)
- [PYSEC-2026-2070 - Missing ratelimit on passwrod resets in zenml](https://junglewise.ai/threats/cve-2024-4311-missing-ratelimit-on-passwrod-resets-in-zenml)
- [PYSEC-2026-2068 - Improper line feed handling in zenml](https://junglewise.ai/threats/cve-2024-4460-improper-line-feed-handling-in-zenml)
