CVE-2025-1473: MLflow Cross-Site Request Forgery (CSRF) vulnerability
MLflow 2.17.0 up to 2.20.2 has no CSRF protection on its signup page. A malicious web page can make a visitor's browser submit the form and create an account the attacker controls. The fixed version is mlflow 2.20.3.
Published Mar 20, 2025 · Updated Aug 5, 2025 · Analysis Nov 1, 2026
What an attacker can do
The signup feature of MLflow's basic-auth app accepted a form post without a CSRF token. An attacker hosts a page that auto-submits a signup request to your MLflow server. When someone who can reach that server opens the page, their browser sends the request, and a new account is created with credentials the attacker chose.
The attacker needs no account but needs the victim to visit the page, which the vector marks as user interaction. Because the request originates from the victim's network, it can reach servers that are only open on an internal network.
The attacker then holds a valid login on your tracking server. They can use it to read experiments and models that regular users can see, and to log runs or artifacts under that account. How much they can do depends on your permission defaults. The impact is rated low on confidentiality and integrity.
The fix commit touches the comment for the MLFLOW_FLASK_SERVER_SECRET_KEY setting in mlflow/environment_variables.py, which says the Flask secret key is used for CSRF protection on the signup page when basic auth is enabled.
Who is affected
mlflow (pip) versions from 2.17.0 up to, but not including, 2.20.3. This applies to servers that run the basic authentication app, which provides the signup page. Check your version:
pip show mlflowServers on 2.16 or earlier, or on 2.20.3 and later, are outside the advisory's range.
mlflow
- Ecosystem
- PyPI
- Affected
- >= 2.17.0, < 2.20.3
- Fixed in
- 2.20.3
- Check
pip show mlflow
How to fix it
Upgrade to mlflow 2.20.3:
pip install --upgrade "mlflow>=2.20.3"The commit linked from the advisory (ecfa61cb) documents the MLFLOW_FLASK_SERVER_SECRET_KEY environment variable as the Flask secret key needed for CSRF protection on the signup page with basic auth. Set it to a strong random value on your server. The sources do not list other workarounds.
How to tell if you were hit
List the accounts in your basic-auth user database and look for names you do not recognise, created around the time someone visited an external page. Review access logs for POST requests to the signup route with a Referer or Origin header from another site. Check what those accounts have done: runs logged, experiments read, and permission changes.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
A Cross-Site Request Forgery (CSRF) vulnerability exists in the Signup feature of mlflow/mlflow versions 2.17.0 to 2.20.1. This vulnerability allows an attacker to create a new account, which may be used to perform unauthorized actions on behalf of the malicious user.
Questions
- Which MLflow versions are affected by CVE-2025-1473?
2.17.0 up to 2.20.2. Version 2.20.3 is the patched release.
- Does the attack need the victim to click something?
The victim has to open an attacker page in a browser that can reach your MLflow server. The page submits the signup form automatically.
- Does it affect servers without basic auth?
The advisory concerns the signup feature, which is part of the basic-auth app. A server not running that app has no signup page to attack, though the advisory does not state this directly.
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 entriesCVE-2026-116690
MLflow vulnerable to arbitrary file read on unauthenticated servers via prompt model version source
high7.5Oct 27, 2026CVE-2026-116691
MLflow CrewAI autologging records LLM provider API keys in logged trace spans
medium6.5Oct 27, 2026CVE-2026-116692
MLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifact modules
critical9.8Oct 27, 2026CVE-2026-115886
MLflow: SSRF on unauthenticated MLflow servers via third-party scorer kwargs in the scorer invoke, register, and GenAI evaluate endpoints
medium6.5Oct 23, 2026CVE-2026-53995
MLflow FileStore trace IDs allow path traversal and arbitrary file writes
high8.2Oct 20, 2026GHSA-gqvg-gmmx-x4hm
MLFLOW_ALLOW_PICKLE_DESERIALIZATION=False safety control bypassed by mlflow.statsmodels flavor — RCE via crafted model artifact
high8.8Sep 1, 2026
