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))}}finally{p.getModel().endUpdate()}}else{v=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(v));if(null!=d&&d.constructor==mxStackLayout)W=v.getIndex(k),37==R||38==R?p.model.add(v,k,Math.max(0,W-1)):(39==R||40==R)&&p.model.add(v,k,Math.min(p.model.getChildCount(v),W+1));else{var A=p.graphHandler;null!=A&&(null==A.first&&A.start(k,0,0,p.getMovableCells(f)),null!=A.first&&(k=
f=0,37==R?f=-W:38==R?k=-W:39==R?f=W:40==R&&(k=W),A.currentDx+=f*z,A.currentDy+=k*z,A.checkPreview(),A.updatePreview()),null!=E&&window.clearTimeout(E),E=window.setTimeout(function(){if(null!=A.first){var H=A.roundLength(A.currentDx/z),J=A.roundLength(A.currentDy/z);A.moveCells(A.cells,H,J);A.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)||