Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
new Uint8Array(O)}return new Blob(z,{type:f})};EditorUi.prototype.saveLocalFile=function(d,f,k,u,z,C,F,K){C=null!=C?C:!1;F=null!=F?F:"vsdx"!=z&&(!mxClient.IS_IOS||!navigator.standalone);z=this.getServiceCount(C);isLocalStorage&&z++;var O=4>=z?2:6<z?4:3;f=new CreateDialog(this,f,mxUtils.bind(this,function(H,ka){try{if("_blank"==ka)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(d,k,u);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 ka==App.MODE_DEVICE||"download"==ka?this.doSaveLocalFile(d,H,k,u,null,K):null!=H&&0<H.length&&this.pickFolder(ka,mxUtils.bind(this,function(ja){try{this.exportFile(d,H,k,u,ka,ja)}catch(ma){this.handleError(ma)}}))}catch(ja){this.handleError(ja)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),
mxResources.get("download"),!1,C,F,null,1<z,O,d,k,u);C=this.isServices(z)?z>O?390:280:160;this.showDialog(f.container,420,C,!0,!0);f.init()};EditorUi.prototype.openInNewWindow=function(d,f,k){var u=window.open("about:blank");null==u||null==u.document?mxUtils.popup(d,!0):("image/svg+xml"!=f||mxClient.IS_SVG?"image/svg+xml"!=f||k?(d=k?d:btoa(unescape(encodeURIComponent(d))),u.document.write('<html><img style="max-width:100%;" src="data:'+f+";base64,"+d+'"/></html>')):u.document.write("<html>"+d+"</html>"):