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:
this.editor.addFontCss(c,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(c,k),e(c)}catch(n){e(c)}}))}catch(k){e(c)}}))};EditorUi.prototype.exportImage=function(c,e,k,n,p,t,y,A,G,C,V,S,N){G=null!=G?G:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var O=this.editor.graph.isSelectionEmpty();k=null!=k?k:O;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,
function(Q){this.spinner.stop();try{this.saveCanvas(Q,p?this.getFileData(!0,null,null,null,k,A):null,G,null==this.pages||0==this.pages.length,V)}catch(J){this.handleError(J)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(Q){this.spinner.stop();this.handleError(Q)}),null,k,c||1,e,n,null,null,t,y,C,S,N)}catch(Q){this.spinner.stop(),this.handleError(Q)}}};EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.importXml=function(c,