The XTools ArticleInfo (aka Page History) gadget for displaying results on the wiki inserts HTML received from XTools into the page without any kind of precaution. This is an XSS vector if XTools is taken over. Wikimedia Cloud is a lower-security environment which should be treated as untrusted.
The tool should return some kind of semi-structured data that's turned into HTML by the gadget. Maybe it could return wikitext, and the gadget could use message parsing. Or it could just return a plaintext message with replacement tokens, plus the URLs + link text, and have the gadget piece the content together.