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:
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))&&