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:
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)||G.apply(this,arguments)};var S=g.connectVertex;g.connectVertex=function(M,p,y,C,L,m,z){var J=g.getIncomingTreeEdges(M);if(c(M)){var O=x(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 S.apply(this,arguments)};g.getSubtree=function(M){var p=[M];!k(M)&&!c(M)||u(M)||g.traverse(M,!0,function(y,C){var L=null!=C&&g.isTreeEdge(C);L&&0>mxUtils.indexOf(p,C)&&p.push(C);(null==C||L)&&0>mxUtils.indexOf(p,y)&&p.push(y);return null==C||L});return p};var U=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){U.apply(this,arguments);(k(this.state.cell)||c(this.state.cell))&&