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

CVE-2026-71211: MLflow AI Gateway permits SSRF through an unvalidated api_base

highCVSS 3.1 7.1GHSA-h7x2-h6g9-p789

MLflow's AI Gateway stores an `auth_config.api_base` value without validating it, then proxies requests to it and returns the response. Any authenticated user, even a read-only one, can point it at an internal address and read the result, including cloud metadata credentials. MLflow 3.13.0 through 3.15.2 are affected. No patched version is listed yet.

Published Aug 5, 2026 · Updated Aug 31, 2026 · Analysis Nov 1, 2026

What an attacker can do

_create_gateway_secret in mlflow/server/handlers.py saves api_base verbatim, with no check of scheme, host or IP range. The raw_proxy handler in mlflow/server/gateway_api.py later sends an HTTP request to the stored api_base plus a path the caller supplies, and returns the full response body.

MLflow already has an SSRF guard, _validate_webhook_url, which blocks non-global and metadata addresses. It is never called anywhere in this gateway secret and proxy path.

The CreateGatewaySecret action also has no entry in the permission-validator map. It needs only basic authentication, not a specific scope. A read-only account can therefore create a secret that points at an internal address and call the proxy endpoint.

The result is a read-capable SSRF from the MLflow server's network position. Targets include internal HTTP services and, on cloud instances, the metadata service, which can expose IAM credentials. The CVSS 3.1 vector reflects network access, low privileges and high confidentiality impact. This is separate from CVE-2026-4035, which concerns $ENV_VAR resolution in the api_key field and is not fixed by that change.

Who is affected

The pip package mlflow, versions 3.13.0 through 3.15.2, on servers with the AI Gateway feature in use and with at least one user account an attacker can obtain. Servers without authentication are a worse case, since anyone can reach the endpoints.

pip show mlflow

Also check which MLflow server version your container image or deployment runs, and who holds accounts on it.

mlflow

Ecosystem
PyPI
Affected
>= 3.13.0, <= 3.15.2
Fixed in
No patched version yet
Check
pip show mlflow

How to fix it

No patched version is listed. The package data names none, and the NVD entry and the commit we reviewed (96b7d900, which adds the raw proxy endpoint) do not fix this. Watch the MLflow releases and the advisory for a fixed version.

Until then, reduce exposure. The sources give no official workaround, so these are general steps: restrict who can authenticate to the tracking server, and turn off or block the AI Gateway endpoints if you do not use them. Enforce IMDSv2 or block the metadata address (169.254.169.254) from the MLflow host. Also limit the server's egress to internal networks.

How to tell if you were hit

List existing gateway secrets and check each auth_config.api_base. Any value with a loopback, private or link-local address, 169.254.169.254, or an internal hostname is suspect. Review MLflow server logs for CreateGatewaySecret calls by read-only or low-privilege users, and for calls to the gateway proxy route (/gateway/proxy/...) with unusual paths. On the network side, look for requests from the MLflow host to the cloud metadata service, and for cloud credential use from other places afterwards.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

MLflow's AI Gateway accepts an auth_config.api_base value when creating a gateway secret (mlflow/server/handlers.py, _create_gateway_secret) with no validation of scheme, host, or IP range; the value is stored verbatim. The gateway proxy endpoint (mlflow/server/gateway_api.py, raw_proxy) subsequently issues an HTTP request to that stored api_base plus a caller-supplied path and returns the full response body. MLflow's existing SSRF guard, _validate_webhook_url (which blocks non-global and metadata IPs), is never invoked anywhere in this gateway secret/proxy code path. The CreateGatewaySecret action additionally has no entry in the permission-validator map, so it requires only basic authentication rather than any specific scope, meaning any authenticated user — including read-only accounts — can create a secret pointing at an internal address and reach it via the proxy endpoint, potentially exposing cloud-instance IAM credentials via metadata services. This is related to CVE-2026-4035, which addresses a distinct mechanism in the same gateway-secret feature (server-side $ENV_VAR resolution inside the api_key field leaking credentials to the configured upstream); the finding here is an independent missing-validation gap in the api_base destination itself, unaffected by that fix.

Questions

Does CVE-2026-71211 need admin rights?

No. CreateGatewaySecret has no permission-validator entry, so basic authentication is enough. The advisory says read-only accounts can create the malicious secret and use the proxy.

Is there a patched MLflow version?

None is listed for this advisory. The affected range is 3.13.0 through 3.15.2, with no fixed release named. Monitor the MLflow release notes and apply mitigations meanwhile.

Is it the same as CVE-2026-4035?

No. The advisory calls CVE-2026-4035 a distinct problem in the same feature: $ENV_VAR resolution in api_key. This flaw is the missing validation of the api_base destination, and that fix does not cover it.

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