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

CVE-2026-2652: MLflow: unauthenticated access to certain FastAPI routes

highCVSS 3.0 8.6GHSA-75cm-x2w3-8mgf

MLflow servers started with basic-auth and served through uvicorn leave the Job API and the OpenTelemetry trace endpoint open to anyone on the network. An unauthenticated attacker can submit, read and cancel jobs and inject trace data into experiments. The GitHub advisory lists mlflow below 3.11.0 as vulnerable and 3.11.0 as patched.

Published May 15, 2026 · Updated May 21, 2026 · Analysis Oct 27, 2026

What an attacker can do

MLflow's basic-auth app was built around Flask. When the server runs under uvicorn, a FastAPI permission middleware takes over. Its _find_fastapi_validator() function only knows the /gateway/ paths. For every other path it finds no validator, so the request goes through with no authentication check. The Job API (/ajax-api/3.0/jobs/*) and the OpenTelemetry trace ingestion endpoint (/v1/traces) are left open as a result.

An attacker with network access to the server needs no account. They can submit jobs, read job results, cancel running jobs, and write arbitrary trace data into any experiment. Job results and traces from ML runs often contain prompts, model outputs and parameters, so the read side can leak sensitive data. The write side lets an attacker poison experiment records or cancel work. The CVSS 3.0 vector rates integrity impact high and confidentiality and availability low. Teams that put MLflow behind basic-auth and believe it is protected are the ones exposed.

Who is affected

Servers that run mlflow with authentication enabled (--app-name basic-auth) and are served through uvicorn (ASGI). The description names 3.9.0 and earlier, while the package data lists everything below 3.11.0 as vulnerable. Treat anything below 3.11.0 as affected. Check your install and how the server starts:

pip show mlflow

Then check your service definition for the --app-name basic-auth flag and a uvicorn launcher.

mlflow

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

How to fix it

Upgrade to mlflow 3.11.0:

pip install --upgrade "mlflow>=3.11.0"

The description says the issue was fixed in 3.10.0, but the package data names 3.11.0 as the patched version, so use 3.11.0. The fix commit bb62e773263c14e9ba4d1a82fe72d0de2442c6aa adds validators for /v1/traces, /ajax-api/3.0/jobs and the assistant API in mlflow/server/auth/__init__.py. Trace ingestion now needs an X-Mlflow-Experiment-Id header and update permission on that experiment. No workaround is given. Until you upgrade, restrict network access to the server.

How to tell if you were hit

Check your access logs for requests to /ajax-api/3.0/jobs and /v1/traces that carry no Authorization header or come from unexpected addresses. Compare the job list in MLflow with the jobs your team submitted, looking for unknown or cancelled jobs. Review experiments for traces you do not recognise. A 200 response to an unauthenticated request to those paths on a basic-auth server shows the bypass.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A vulnerability in mlflow/mlflow versions 3.9.0 and earlier allows unauthenticated access to certain FastAPI routes when the server is started with authentication enabled (--app-name basic-auth) and served via uvicorn (ASGI). The FastAPI permission middleware only enforces authentication on /gateway/ routes, leaving other routes such as the Job API (/ajax-api/3.0/jobs/*) and the OpenTelemetry trace ingestion API (/v1/traces) unprotected. This allows unauthenticated remote attackers to submit jobs, read job results, cancel running jobs, and inject arbitrary trace data into experiments. The issue arises from an architectural mismatch between Flask and FastAPI authentication mechanisms, where the _find_fastapi_validator() function fails to handle non-/gateway/ paths, resulting in a complete authentication bypass. This vulnerability is fixed in version 3.10.0.

Questions

Is every MLflow server with basic-auth affected by CVE-2026-2652?

Only when it is served via uvicorn (ASGI), where the FastAPI middleware applies. The advisory describes servers started with --app-name basic-auth and served that way.

Which version fixes it?

The package data names 3.11.0. The advisory text says 3.10.0, which conflicts. Upgrade to 3.11.0 or later to be safe.

What can an unauthenticated attacker do?

Submit jobs, read job results, cancel running jobs, and inject trace data into experiments through /ajax-api/3.0/jobs/* and /v1/traces.

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