PyPI: mlflow

CVE-2026-2652

Safety vulnerability ID: SFTY-20260515-96927

Safety legacy ID: pyup.io-98855

Affected versions of the mlflow package are vulnerable to Authentication Bypass due to incomplete enforcement of authentication middleware on non-gateway routes when the server is run with --app-name basic-auth under uvicorn. The FastAPI permission middleware applies authentication only to /gateway/ paths, while the _find_fastapi_validator() function fails to handle other endpoints such as /ajax-api/3.0/jobs/ and /v1/traces, leaving them unprotected. An unauthenticated remote attacker can submit and cancel jobs, read job results, and inject arbitrary trace data into experiments by sending requests directly to these endpoints.

Created at: May 22, 2026Updated at: May 22, 2026

Overview

MLflow: unauthenticated access to certain FastAPI routes

Advisory

Affected versions of the mlflow package are vulnerable to Authentication Bypass due to incomplete enforcement of authentication middleware on non-gateway routes when the server is run with --app-name basic-auth under uvicorn. The FastAPI permission middleware applies authentication only to /gateway/ paths, while the _find_fastapi_validator() function fails to handle other endpoints such as /ajax-api/3.0/jobs/ and /v1/traces, leaving them unprotected. An unauthenticated remote attacker can submit and cancel jobs, read job results, and inject arbitrary trace data into experiments by sending requests directly to these endpoints.

Affected Package

Affecting mlflow package, versions
<3.11.0

Also affects

---

How to Fix

Upgrade
mlflow
to
3.11.0
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more