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:
new Uint8Array(O)}return new Blob(z,{type:f})};EditorUi.prototype.saveLocalFile=function(d,f,k,v,z,A,H,J){A=null!=A?A:!1;H=null!=H?H:"vsdx"!=z&&(!mxClient.IS_IOS||!navigator.standalone);z=this.getServiceCount(A);isLocalStorage&&z++;var O=4>=z?2:6<z?4:3;f=new CreateDialog(this,f,mxUtils.bind(this,function(G,ja){try{if("_blank"==ja)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(d,k,v);else if(null!=k&&"text/html"==k.substring(0,9)){var fa=new EmbedDialog(this,d);this.showDialog(fa.container,
450,240,!0,!0);fa.init()}else{var ca=window.open("about:blank");null==ca?mxUtils.popup(d,!0):(ca.document.write("<pre>"+mxUtils.htmlEntities(d,!1)+"</pre>"),ca.document.close())}else ja==App.MODE_DEVICE||"download"==ja?this.doSaveLocalFile(d,G,k,v,null,J):null!=G&&0<G.length&&this.pickFolder(ja,mxUtils.bind(this,function(ia){try{this.exportFile(d,G,k,v,ja,ia)}catch(ma){this.handleError(ma)}}))}catch(ia){this.handleError(ia)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),
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>"):