NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · MLflow

CVE-2024-27133: MLFlow Cross-site Scripting vulnerability leads to client-side Remote Code Execution

criticalCVSS 3.1 9.6GHSA-3v79-q7ph-j75h

MLflow before 2.10.0 does not sanitize the dataset table fields it renders when a recipe runs. A recipe that uses an attacker's dataset can run script in the user's browser, which becomes client-side code execution in Jupyter Notebook. Upgrade to mlflow 2.10.0.

Published Feb 24, 2024 · Updated Mar 15, 2026 · Analysis Nov 2, 2026

What an attacker can do

When an MLflow Recipe runs, MLflow renders a table of the dataset it uses. The table fields were inserted into the page without sanitization. A dataset that holds script in its fields therefore runs that script when the output is displayed.

Inside Jupyter Notebook, output is rendered in the notebook page, and JFrog and the advisory describe the result as client-side remote code execution. JFrog's example runs Recipe(profile="local"), then run(), then inspect(step="train"). The sources do not name the exact fields.

The attacker must get you to run a recipe on a dataset they control. That could be a public dataset, a shared file in a repository or a pull request. The CVSS vector requires user interaction and marks scope as changed. The script runs as you in the notebook session, with your data access, credentials and cloud tokens.

Who is affected

mlflow below 2.10.0. JFrog gives the range as 2.9.2 and earlier. Exposure comes from running an MLflow Recipe on a dataset you did not produce, mostly inside Jupyter Notebook.

Check the installed version:

pip show mlflow

CVE-2024-27132 is a sibling flaw with the same range. It involves untrusted recipes rather than untrusted datasets.

mlflow

Ecosystem
PyPI
Affected
< 2.10.0
Fixed in
2.10.0
Check
pip show mlflow

How to fix it

Upgrade to mlflow 2.10.0:

pip install --upgrade "mlflow>=2.10.0"

Restart the notebook kernel. The fix is pull request 10893 and the commits linked from the advisory. JFrog states that no mitigations are supplied. Until you upgrade, avoid running recipes on datasets from untrusted sources.

How to tell if you were hit

Inspect datasets you received for cells that contain script tags, HTML or javascript: strings, especially in text columns. Look at what the notebook rendered after a Recipe inspect step and whether the page loaded anything external. On a machine that ran an untrusted dataset with a vulnerable MLflow, review shell history, new files and outbound connections from the Jupyter server for that period, and rotate tokens held in the session.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Insufficient sanitization in MLflow leads to XSS when running a recipe that uses an untrusted dataset. This issue leads to a client-side RCE when running the recipe in Jupyter Notebook. The vulnerability stems from lack of sanitization over dataset table fields.

Credited to oscerd, gabby202308.

Questions

Is a plain pip install of MLflow 2.10.0 enough?

Yes. 2.10.0 is the patched version. Restart any running notebook kernels so they load the new version.

Do I need a malicious recipe for this one?

No. The recipe can be your own. The malicious part is the dataset, whose table fields are not sanitized. CVE-2024-27132 covers the case where the recipe itself is untrusted.

Is it exploited in the wild?

The sources I read do not say so, and the entry is not in CISA's KEV catalog. A proof of concept using Recipe(profile="local") appears in the JFrog advisory.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More MLflow vulnerabilities

All MLflow entries