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==H.keyCode?(J(m,mxConstants.DIRECTION_NORTH),mxEvent.consume(H)):39==H.keyCode?(J(m,mxConstants.DIRECTION_EAST),mxEvent.consume(H)):40==H.keyCode&&(J(m,mxConstants.DIRECTION_SOUTH),mxEvent.consume(H)))}}catch(A){c.handleError(A)}mxEvent.isConsumed(H)||B.apply(this,arguments)};var V=e.connectVertex;e.connectVertex=function(H,m,v,A,I,g,x){var F=e.getIncomingTreeEdges(H);if(d(H)){var M=D(H),Q=M==mxConstants.DIRECTION_EAST||M==mxConstants.DIRECTION_WEST,S=m==mxConstants.DIRECTION_EAST||m==mxConstants.DIRECTION_WEST;
return M==m||0==F.length?E(H,m):Q==S?K(H):L(H,m!=mxConstants.DIRECTION_NORTH&&m!=mxConstants.DIRECTION_WEST)}return V.apply(this,arguments)};e.getSubtree=function(H){var m=[H];!q(H)&&!d(H)||z(H)||e.traverse(H,!0,function(v,A){var I=null!=A&&e.isTreeEdge(A);I&&0>mxUtils.indexOf(m,A)&&m.push(A);(null==A||I)&&0>mxUtils.indexOf(m,v)&&m.push(v);return null==A||I});return m};var R=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){R.apply(this,arguments);(q(this.state.cell)||d(this.state.cell))&&