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.graph.setBackgroundImage;var H=this.pages[0];this.currentPage==H?E.setBackgroundImage(F):null!=H.viewState&&null!=H.viewState&&(F=H.viewState.backgroundImage,E.setBackgroundImage(F));E.getGlobalVariable=function(l){return"page"==l?H.getName():"pagenumber"==l?1:N.apply(this,arguments)};E.getGlobalVariable=N;document.body.appendChild(E.container);E.model.setRoot(H.root)}if(mxClient.IS_CHROMEAPP||this.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(l){try{E!=this.editor.graph&&