Multiple cross-site scripting (XSS) vulnerabilities in Cacti 0.8.7 before 0.8.7b and 0.8.6 before 0.8.6k allow remote attackers to inject arbitrary web script or HTML via (1) the viewtype parameter to graph.php; (2) the filter parameter to graphview.php; (3) the action parameter to the drawnavigationtext function in lib/functions.php, reachable through index.php (aka the login page) or datainput.php; or (4) the loginusername parameter to index.php.