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:
v.getGlobalVariable=function(S){return"page"==S?F.getName():"pagenumber"==S?1:L.apply(this,arguments)};document.body.appendChild(v.container);v.model.setRoot(F.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(S){try{null==H&&(H=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var p=S.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!=