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:
t.getGlobalVariable=function(S){return"page"==S?A.getName():"pagenumber"==S?1:I.apply(this,arguments)};document.body.appendChild(t.container);t.model.setRoot(A.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(S){try{null==B&&(B=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var l=S.toDataURL("image/png");l=Editor.writeGraphModelToPng(l,"tEXt","mxfile",encodeURIComponent(B));c(l.substring(l.lastIndexOf(",")+1));t!=this.editor.graph&&t.container.parentNode.removeChild(t.container)}catch(n){null!=