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:
C=new mxAsyncCanvas(this.thumbImageCache);G.images=this.thumbImageCache.images;var V=new mxImageExport;V.drawShape=function(S,N){S.shape instanceof mxShape&&S.shape.checkBounds()&&(N.save(),N.translate(.5,.5),S.shape.paint(N),N.translate(-.5,-.5),N.restore())};V.drawText=function(S,N){};V.drawState(z.getView().getState(z.model.root),C);C.finish(mxUtils.bind(this,function(){try{V.drawState(z.getView().getState(z.model.root),G),z!=this.editor.graph&&null!=z.container.parentNode&&z.container.parentNode.removeChild(z.container)}catch(S){R=