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