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:
u))}}finally{p.getModel().endUpdate()}}else{u=p.model.getParent(k);var z=p.getView().scale;d=null;1==p.getSelectionCount()&&p.model.isVertex(k)&&null!=p.layoutManager&&!p.isCellLocked(k)&&(d=p.layoutManager.getLayout(u));if(null!=d&&d.constructor==mxStackLayout)W=u.getIndex(k),37==R||38==R?p.model.add(u,k,Math.max(0,W-1)):(39==R||40==R)&&p.model.add(u,k,Math.min(p.model.getChildCount(u),W+1));else{var C=p.graphHandler;null!=C&&(null==C.first&&C.start(k,0,0,p.getMovableCells(f)),null!=C.first&&(k=
f=0,37==R?f=-W:38==R?k=-W:39==R?f=W:40==R&&(k=W),C.currentDx+=f*z,C.currentDy+=k*z,C.checkPreview(),C.updatePreview()),null!=E&&window.clearTimeout(E),E=window.setTimeout(function(){if(null!=C.first){var F=C.roundLength(C.currentDx/z),K=C.roundLength(C.currentDy/z);C.moveCells(C.cells,F,K);C.reset()}},400))}}}}var g=this,p=this.editor.graph,y=new mxKeyHandler(p),q=y.isEventIgnored;y.isEventIgnored=function(R){return!(mxEvent.isShiftDown(R)&&9==R.keyCode)&&(!this.isControlDown(R)||mxEvent.isShiftDown(R)||