Kibana versions prior to 5.6.1 had a cross-site scripting (XSS) vulnerability in Timelion that could allow an attacker to obtain sensitive information from or perform destructive actions on behalf of other Kibana users.
https://discuss.elastic.co/t/x-pack-alerting-and-kibana-5-6-1-security-update/101884