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:
mxResources.get("download"),!1,A,H,null,1<z,O,d,k,v);A=this.isServices(z)?z>O?390:280:160;this.showDialog(f.container,420,A,!0,!0);f.init()};EditorUi.prototype.openInNewWindow=function(d,f,k){var v=window.open("about:blank");null==v||null==v.document?mxUtils.popup(d,!0):("image/svg+xml"!=f||mxClient.IS_SVG?"image/svg+xml"!=f||k?(d=k?d:btoa(unescape(encodeURIComponent(d))),v.document.write('<html><img style="max-width:100%;" src="data:'+f+";base64,"+d+'"/></html>')):v.document.write("<html>"+d+"</html>"):
v.document.write("<html><pre>"+mxUtils.htmlEntities(d,!1)+"</pre></html>"),v.document.close())};var n=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(d){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=null;var f=d(mxUtils.bind(this,function(v){null==