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