Cross-site scripting (XSS) vulnerability in repository/lib.php in Moodle 2.1.x before 2.1.7 and 2.2.x before 2.2.4 allows remote authenticated administrators to inject arbitrary web script or HTML by renaming a repository.
https://exchange.xforce.ibmcloud.com/vulnerabilities/76959
http://www.securityfocus.com/bid/54481
http://secunia.com/advisories/49890