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