CVE-2026-71211: mlflow: Unvalidated Gateway Secret api_base Enables SSRF via Gateway Proxy Endpoint

Published Aug 5, 2026
·
Updated

MLflow's AI Gateway accepts an authconfig.apibase value when creating a gateway secret (mlflow/server/handlers.py, creategatewaysecret) with no validation of scheme, host, or IP range; the value is stored verbatim. The gateway proxy endpoint (mlflow/server/gatewayapi.py, rawproxy) subsequently issues an HTTP request to that stored apibase plus a caller-supplied path and returns the full response body. MLflow's existing SSRF guard, validatewebhookurl (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 $ENVVAR resolution inside the apikey field leaking credentials to the configured upstream); the finding here is an independent missing-validation gap in the apibase destination itself, unaffected by that fix.

Affected Software

1 affected component
MLflow MLflow

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade mlflow to a version that resolves this vulnerability.

    Patch CVE-2026-4035
  2. Configuration

    In mlflow/server/handlers.py (_create_gateway_secret) and mlflow/server/gateway_api.py (raw_proxy), add validation for auth_config.api_base (scheme/host/IP range) and ensure the existing SSRF guard _validate_webhook_url is invoked for api_base before storing/using it. Reject non-global, metadata, and disallowed IP ranges.

    MLflow AI Gateway gateway secret / proxy destination auth_config.api_base validation = validate scheme, host, and IP range (apply SSRF guard to api_base)
  3. Configuration

    Add an entry for the CreateGatewaySecret action in the permission-validator map so creating gateway secrets requires the intended scope rather than only basic authentication; ensure read-only users cannot create secrets that target internal addresses.

    MLflow AI Gateway CreateGatewaySecret authorization permission-validator map entry = add scope requirement for CreateGatewaySecret
  4. Compensating control

    Restrict network egress from the MLflow AI Gateway/proxy component so it cannot reach internal networks/metadata services (e.g., block access to instance metadata IPs/addresses and private IP ranges from the MLflow gateway host).

  5. Operational

    After deploying validation and authorization changes, review and revoke/replace any previously created gateway secrets that may contain unvalidated auth_config.api_base values pointing to internal addresses, since existing secrets are stored verbatim and could remain usable until changed.

Event History

Aug 5, 2026
CVE Published
via MITRE·06:59 AM
Data Sourced
via MITRE·06:59 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-71211?

The severity of CVE-2026-71211 is rated high with a score of 7.7.

2

How do I fix CVE-2026-71211?

To fix CVE-2026-71211, ensure proper validation of the api_base input to prevent unrestricted access and potential SSRF attacks.

3

What type of vulnerability is CVE-2026-71211?

CVE-2026-71211 is classified as a Server-Side Request Forgery (SSRF) vulnerability.

4

What software is affected by CVE-2026-71211?

CVE-2026-71211 affects the MLflow software, specifically versions without proper validations in the AI Gateway.

5

What is the impact of exploiting CVE-2026-71211?

Exploiting CVE-2026-71211 could allow an attacker to access internal services via the unvalidated gateway proxy.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203