Language: JavaScript
Label: vulnerable
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
window.setTimeout(function(){var ea=document.createElement("script");ea.type="text/javascript";ea.src=/<script.*?src="(.*?)"/.exec(X)[1];ca.body.appendChild(ea);aa.parentNode.removeChild(aa)},20)}}else d.handleError({message:mxResources.get("errorUpdatingPreview")})});d.showDialog(Z.container,450,240,!0,!0);Z.init()}))})})}));d.actions.put("liveImage",new Action("Live image...",function(){var f=d.getCurrentFile();null!=f&&d.spinner.spin(document.body,mxResources.get("loading"))&&d.getPublicUrl(d.getCurrentFile(),