Language: JavaScript
Label: safe
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:
v.getGlobalVariable=function(T){return"page"==T?G.getName():"pagenumber"==T?1:L.apply(this,arguments)};document.body.appendChild(v.container);v.model.setRoot(G.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(T){try{null==H&&(H=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var p=T.toDataURL("image/png");p=Editor.writeGraphModelToPng(p,"tEXt","mxfile",encodeURIComponent(H));d(p.substring(p.lastIndexOf(",")+1));v!=this.editor.graph&&v.container.parentNode.removeChild(v.container)}catch(q){null!=