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:
aa()}));var la=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(da.style,"transform",F);window.setTimeout(mxUtils.bind(this,function(){aa()}),ja)});mxEvent.addListener(da,"click",mxUtils.bind(this,function(X){var P=mxEvent.getSource(X);P!=ia&&P!=ma?(null!=l&&l(),aa(),mxEvent.consume(X)):la()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(da.style,"transform",M)}),ja/2);window.setTimeout(la,A?4E3:3E4);H=!0}return H};EditorUi.prototype.setCurrentFile=function(d){null!=
d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,f,l,u){d=d.toDataURL("image/"+l);if(null!=d&&6<d.length)null!=f&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(f))),0<u&&(d=Editor.writeGraphModelToPng(d,"pHYs","dpi",u));else throw{message:mxResources.get("unknownError")};return d};