Language: JavaScript
Label: safe
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:
38==M.keyCode?(H(p,mxConstants.DIRECTION_NORTH),mxEvent.consume(M)):39==M.keyCode?(H(p,mxConstants.DIRECTION_EAST),mxEvent.consume(M)):40==M.keyCode&&(H(p,mxConstants.DIRECTION_SOUTH),mxEvent.consume(M)))}}catch(C){d.handleError(C)}mxEvent.isConsumed(M)||F.apply(this,arguments)};var U=g.connectVertex;g.connectVertex=function(M,p,y,C,K,l,z){var J=g.getIncomingTreeEdges(M);if(c(M)){var O=v(M),T=O==mxConstants.DIRECTION_EAST||O==mxConstants.DIRECTION_WEST,W=p==mxConstants.DIRECTION_EAST||p==mxConstants.DIRECTION_WEST;
return O==p||0==J.length?A(M,p):T==W?D(M):E(M,p!=mxConstants.DIRECTION_NORTH&&p!=mxConstants.DIRECTION_WEST)}return U.apply(this,arguments)};g.getSubtree=function(M){var p=[M];!k(M)&&!c(M)||u(M)||g.traverse(M,!0,function(y,C){var K=null!=C&&g.isTreeEdge(C);K&&0>mxUtils.indexOf(p,C)&&p.push(C);(null==C||K)&&0>mxUtils.indexOf(p,y)&&p.push(y);return null==C||K});return p};var R=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){R.apply(this,arguments);(k(this.state.cell)||c(this.state.cell))&&