JBoss BRMS 6 and BPM Suite 6 are vulnerable to a stored XSS via business process editor. The flaw is due to an incomplete fix for CVE-2016-5398. Remote, authenticated attackers that have privileges to create business processes can store scripts in them, which are not properly sanitized before showing to other users, including admins.
https://euvd.enisa.europa.eu/vulnerability/EUVD-2016-9455
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-8608
http://www.securityfocus.com/bid/94568