CVE-2026-33865: MLflow is vulnerable to Stored Cross-Site Scripting (XSS) caused by unsafe parsing of YAML-based MLmodel artifacts in its web interface
MLflow through 3.10.1 has a stored cross-site scripting flaw in the web UI. An authenticated user can upload an MLmodel artifact whose YAML runs JavaScript when another user opens the artifact view. This allows session hijacking and actions as the victim. Fixed in mlflow 3.11.1.
Published Apr 7, 2026 · Updated Jun 6, 2026 · Analysis Nov 6, 2026
What an attacker can do
The logged-model artifact view (ShowArtifactLoggedModelView) calls fetchLoggedModelMetadata(), which parses the artifact's MLmodel file with js-yaml's yaml.load(). In the js-yaml 3.x line that the project pins, load() is unsafe by default and accepts !!js/function tags. Other parts of the codebase already use safeLoad(); this viewer did not.
The AFINE write-up shows a payload in the signature.inputs field: an object whose toString is a !!js/function. The UI later passes the value to JSON.parse(), which coerces it to a string and runs the function in the victim's browser.
The attacker needs a login that can log a model or artifact (CVSS 3.1: PR:L). The artifact must carry the mlflow.log-model.history tag so the logged-model viewer handles it. The victim then opens the run's artifact tab, which a deep-link URL can do, so it takes one click (UI:R).
The script runs with the victim's session in the MLflow origin. It can call the MLflow API as that user, read experiments and models, or change them. A data scientist who opens a colleague's run is the typical victim; an admin viewing it is the worst case.
Who is affected
Affected: the pip package mlflow up to and including 3.10.1. Any server that lets more than one user log artifacts and view each other's runs is exposed.
Check the installed version:
pip show mlflowmlflow
- Ecosystem
- PyPI
- Affected
- <= 3.10.1
- Fixed in
- 3.11.1
- Check
pip show mlflow
How to fix it
Upgrade to mlflow 3.11.1:
pip install -U "mlflow>=3.11.1"The researcher's recommended code fix is to switch to yaml.safeLoad(), including in useValidateLoggedModelSignature.ts. No workaround is listed in the sources. Until you upgrade, avoid opening artifacts from users you do not trust, and limit who can log models to your server.
How to tell if you were hit
Look at stored MLmodel files, especially in runs you did not create, for !!js/function or other YAML tags (anything starting with !!) and for an unusual signature section. In server logs, look for unexpected API calls from a user's session right after they opened a run's artifact tab. Check run tags for mlflow.log-model.history on artifacts uploaded by accounts with little history.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
MLflow is vulnerable to Stored Cross-Site Scripting (XSS) caused by unsafe parsing of YAML-based MLmodel artifacts in its web interface. An authenticated attacker can upload a malicious MLmodel file containing a payload that executes when another user views the artifact in the UI. This allows actions such as session hijacking or performing operations on behalf of the victim.
This issue affects MLflow version through 3.10.1
Questions
- Does CVE-2026-33865 need user interaction?
Yes. A victim must open the malicious run's artifact tab in the MLflow UI. A deep link makes it one click.
- Which MLflow version fixes it?
3.11.1. Versions up to and including 3.10.1 are affected.
- Is it the same as CVE-2026-33866?
No. CVE-2026-33866 is a missing-authorization flaw in an artifact download endpoint. Both were reported together against MLflow through 3.10.1.
References
Read for this analysis:
- https://cert.pl/en/posts/2026/04/CVE-2026-33865
- https://afine.com/blogs/attacking-mlflow-how-ml-artifacts-become-attack-vectors
- https://nvd.nist.gov/vuln/detail/CVE-2026-33865
- https://github.com/mlflow/mlflow/pull/21435
- https://github.com/mlflow/mlflow/commit/aca4dd0ec88a12f7655155c224371280e9b45dda
- https://github.com/pypa/advisory-database/tree/main/vulns/mlflow/PYSEC-2026-93.yaml
- https://github.com/advisories/GHSA-fh64-r2vc-xvhr
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 entriesCVE-2026-116690
MLflow vulnerable to arbitrary file read on unauthenticated servers via prompt model version source
high7.5Oct 27, 2026CVE-2026-116691
MLflow CrewAI autologging records LLM provider API keys in logged trace spans
medium6.5Oct 27, 2026CVE-2026-116692
MLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifact modules
critical9.8Oct 27, 2026CVE-2026-115886
MLflow: SSRF on unauthenticated MLflow servers via third-party scorer kwargs in the scorer invoke, register, and GenAI evaluate endpoints
medium6.5Oct 23, 2026CVE-2026-53995
MLflow FileStore trace IDs allow path traversal and arbitrary file writes
high8.2Oct 20, 2026GHSA-gqvg-gmmx-x4hm
MLFLOW_ALLOW_PICKLE_DESERIALIZATION=False safety control bypassed by mlflow.statsmodels flavor — RCE via crafted model artifact
high8.8Sep 1, 2026
