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:
this.editor.resolvedFontCss&&this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(l){try{null!=l&&this.editor.addFontCss(d,l),f(d)}catch(u){f(d)}}))}catch(l){f(d)}}))};EditorUi.prototype.exportImage=function(d,f,l,u,A,B,F,M,O,H,ja,da,ca){O=null!=O?O:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var ia=this.editor.graph.isSelectionEmpty();l=null!=l?l:ia;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,
function(ma){this.spinner.stop();try{this.saveCanvas(ma,A?this.getFileData(!0,null,null,null,l,M):null,O,null==this.pages||0==this.pages.length,ja)}catch(aa){this.handleError(aa)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(ma){this.spinner.stop();this.handleError(ma)}),null,l,d||1,f,u,null,null,B,F,H,da,ca)}catch(ma){this.spinner.stop(),this.handleError(ma)}}};EditorUi.prototype.isCorsEnabledForUrl=function(d){return this.editor.isCorsEnabledForUrl(d)};EditorUi.prototype.importXml=