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

CVE-2025-1473: MLflow Cross-Site Request Forgery (CSRF) vulnerability

mediumCVSS 3.1 5.4GHSA-969w-gqqr-g6j3

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 mlflow

Servers 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 entries