X-Pack Machine Learning versions before 6.2.4 and 5.6.9 had a cross-site scripting (XSS) vulnerability. If an attacker is able to inject data into an index that has a ML job running against it, then when another user views the results of the ML job it could allow the attacker to obtain sensitive information from or perform destructive actions on behalf of that other ML user.
https://www.elastic.co/community/security
https://discuss.elastic.co/t/elastic-stack-6-2-4-and-5-6-9-security-update/128422