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:
d);null!=k&&A.setAttribute("resource",k);var ia=mxUtils.bind(this,function(ma){ma=(v?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(ma);null!=z&&z(ma);return ma});f.mathEnabled&&this.editor.addMathCss(A);if(null!=z)this.embedFonts(A,mxUtils.bind(this,function(ma){J?this.editor.convertImages(ma,mxUtils.bind(this,function(da){ia(da)})):ia(ma)}));else return ia(A)};EditorUi.prototype.embedFonts=function(d,f){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=
this.editor.resolvedFontCss&&this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(d,k),f(d)}catch(v){f(d)}}))}catch(k){f(d)}}))};EditorUi.prototype.exportImage=function(d,f,k,v,z,A,H,J,O,G,ja,fa,ca){O=null!=O?O:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var ia=this.editor.graph.isSelectionEmpty();k=null!=k?k:ia;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,