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

Inspect in Interactive Incidents Hub

Defensive lesson

Sanitize all HTML template outputs in MLOps reporting libraries and run untrusted ML recipes exclusively in isolated ephemeral notebooks.

Referenced techniques