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 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))&&
!E(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title","Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(D){this.graph.graphHandler.start(this.state.cell,
mxEvent.getClientX(D),mxEvent.getClientY(D),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(D);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(D)})))};var n=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){n.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=