# CVE-2024-5062: Reflected XSS through survey redirect parameter in zenml-io/zenml

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-30T15:14:25.313Z
- Modified: 2026-06-17T08:15:00.590Z
- Also known as: GHSA-3434-hc3m-8mmm, PYSEC-2024-176
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

A reflected Cross-Site Scripting (XSS) vulnerability was identified in zenml-io/zenml version 0.57.1. The vulnerability exists due to improper neutralization of input during web page generation, specifically within the survey redirect parameter. This flaw allows an attacker to redirect users to a specified URL after completing a survey, without proper validation of the 'redirect' parameter. Consequently, an attacker can execute arbitrary JavaScript code in the context of the user's browser session. This vulnerability could be exploited to steal cookies, potentially leading to account takeover.

(As written by CVE List.)

## Affected

- zenml-io zenml-io/zenml: from unspecified before 0.58.0
- zenmlio zenml: before 0.58.0
- zenml (PyPI): from 0.57.1 before 0.58.0; before 21edd863c0ba53c1110b6f018a07c2d6853cf6d4; before 0.58.0
- zenml zenml: before 0.58.0

## Every score

- @huntr_ai: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://huntr.com/bounties/ceddd3c1-a9da-4d6c-85c4-41d4d1e1102f> (exploit, evidence, web)
- <https://github.com/zenml-io/zenml/commit/21edd863c0ba53c1110b6f018a07c2d6853cf6d4> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5062> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/zenml/PYSEC-2024-176.yaml> (web)
- <https://github.com/zenml-io/zenml> (package)
- <https://github.com/advisories/GHSA-3434-hc3m-8mmm> (advisory)

## Sources

- CVE List: [CVE-2024-5062](https://www.cve.org/CVERecord?id=CVE-2024-5062), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-3434-hc3m-8mmm](https://github.com/advisories/GHSA-3434-hc3m-8mmm), CC-BY-4.0, modified 2025-01-21
- NVD: [CVE-2024-5062](https://nvd.nist.gov/vuln/detail/CVE-2024-5062), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-176](https://osv.dev/vulnerability/PYSEC-2024-176), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-5062 · Whole record: https://cve.day/CVE-2024-5062.json · Rebuilt by cve.day 2026-11-25T22:58:42.338Z
