Incident report
MLflow Untrusted Recipe Template XSS Escalating to Client-Side Notebook RCE
CVE-2024-27132 (published February 23, 2024) disclosed a template sanitization flaw in MLflow Recipes when rendering step cards inside interactive notebook environments like Jupyter. Insufficient escaping of untrusted recipe variables allowed attacker-controlled JavaScript to execute in the data scientist's browser context upon viewing a cloned repository's MLflow recipe output. Within Jupyter Notebook sessions, client-side XSS escalated directly to executing arbitrary Python code in the local kernel and compromising developer machines. Security guidance advised patching MLflow and treating third-party MLflow recipes as untrusted code.
Incident record
- Reported
- Severity
- High
- Vector
- Supply Chain
- Affected system type
- MLOps Pipeline & Jupyter Recipe Runners
- Reference
CVE-2024-27132- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-27132
Defensive lesson
Sanitize all HTML template outputs in MLOps reporting libraries and run untrusted ML recipes exclusively in isolated ephemeral notebooks.
Referenced techniques
- Acquire Infrastructure: AI Development Workspaces AML.T0008.000
- User Execution: Unsafe AI Artifacts AML.T0011.000
- LLM Response Rendering AML.T0077
- Machine Compromise: AI Artifacts AML.T0112.001