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:
"_blank")}};EditorUi.prototype.createEchoRequest=function(d,f,l,u,A,B){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,d+(null!=l?"&mime="+l:"")+(null!=A?"&format="+A:"")+(null!=B?"&base64="+B:"")+(null!=f?"&filename="+encodeURIComponent(f):"")+(u?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(d,f){f=f||"";d=atob(d);for(var l=d.length,u=Math.ceil(l/1024),A=Array(u),B=0;B<u;++B){for(var F=1024*B,M=Math.min(F+1024,l),O=Array(M-F),H=0;F<M;++H,++F)O[H]=d[F].charCodeAt(0);A[B]=
new Uint8Array(O)}return new Blob(A,{type:f})};EditorUi.prototype.saveLocalFile=function(d,f,l,u,A,B,F,M){B=null!=B?B:!1;F=null!=F?F:"vsdx"!=A&&(!mxClient.IS_IOS||!navigator.standalone);var O=mxUtils.bind(this,function(ja,da,ca,ia){try{if("_blank"==da)if(null!=l&&"image/"==l.substring(0,6))this.openInNewWindow(d,l,u);else if(null!=l&&"text/html"==l.substring(0,9)){var ma=new EmbedDialog(this,d);this.showDialog(ma.container,450,240,!0,!0);ma.init()}else{var aa=window.open("about:blank");null==aa?mxUtils.popup(d,