A Persistent XSS vulnerability exists in Kodi (formerly XBMC) through 17.6 that allows the execution of arbitrary HTML/script code in the context of the victim user's browser via a playlist.
https://www.exploit-db.com/exploits/44487/
https://trac.kodi.tv/ticket/17814