CVE-2024-27132 Insufficient sanitization in MLflow leads to XSS when running an untrusted recipe.
Attackers can execute arbitrary code via XSS when users run untrusted recipes in Jupyter Notebooks using MLflow.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-27132?
CVE-2024-27132 is a high-severity cross-site scripting vulnerability in Lfprojects Mlflow, published on 23 Feb 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Insufficient sanitization in MLflow leads to XSS when running an untrusted recipe.
This issue leads to a client-side RCE when running an untrusted recipe in Jupyter Notebook.
The vulnerability stems from lack of sanitization over template variables.
Weakness: CWE-79
Which versions are affected by CVE-2024-27132?
4 open source packages ship an affected version, including mlflow. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mlflow Bitnami | All versions | 2.10.0 |
mlflow PyPI | All versions | 2.10.0 |
mlflow PyPI | All versions | 2.10.0 |
mlflow PyPI | All versions | 2.10.0 |
Products include Lfprojects Mlflow.
How do I fix CVE-2024-27132?
Upgrade mlflow to 2.10.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-27132 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-27132 exists.
Other vulnerabilities in Lfprojects Mlflow
- CVE-2026-64849 MLflow Server-Side Request Forgery
- CVE-2025-15379 Command Injection in mlflow/mlflow
- CVE-2024-0520 Remote Code Execution due to Full Controlled File Write in mlflow/mlflow
- CVE-2023-6977 Path Traversal: '\..\filename'
- CVE-2023-6709 Improper Neutralization of Special Elements Used in a Template Engine in mlflow/mlflow
Sources
Also known as BIT-mlflow-2024-27132, GHSA-6749-m5cp-6cg7, PYSEC-2024-240.