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 da=document.createElement("script");da.type="text/javascript";da.src=/<script.*?src="(.*?)"/.exec(X)[1];ba.body.appendChild(da);aa.parentNode.removeChild(aa)},20)}}else c.handleError({message:mxResources.get("errorUpdatingPreview")})});c.showDialog(Z.container,450,240,!0,!0);Z.init()}))})})}));c.actions.put("liveImage",new Action("Live image...",function(){var l=c.getCurrentFile();null!=l&&c.spinner.spin(document.body,mxResources.get("loading"))&&c.getPublicUrl(c.getCurrentFile(),