Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
v.getGlobalVariable=function(S){return"page"==S?G.getName():"pagenumber"==S?1:I.apply(this,arguments)};document.body.appendChild(v.container);v.model.setRoot(G.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(S){try{null==F&&(F=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var U=S.toDataURL("image/png");U=Editor.writeGraphModelToPng(U,"tEXt","mxfile",encodeURIComponent(F));d(U.substring(U.lastIndexOf(",")+1));v!=this.editor.graph&&v.container.parentNode.removeChild(v.container)}catch(N){null!=