Language: JavaScript
Label: safe
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 O==N||0==H.length?G(A,N):P==V?M(A):K(A,N!=mxConstants.DIRECTION_NORTH&&N!=mxConstants.DIRECTION_WEST)}return T.apply(this,arguments)};e.getSubtree=function(A){var N=[A];!u(A)&&!d(A)||D(A)||e.traverse(A,!0,function(Q,L){var U=null!=L&&e.isTreeEdge(L);U&&0>mxUtils.indexOf(N,L)&&N.push(L);(null==L||U)&&0>mxUtils.indexOf(N,Q)&&N.push(Q);return null==L||U});return N};var l=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){l.apply(this,arguments);(u(this.state.cell)||d(this.state.cell))&&
!D(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(A){this.graph.graphHandler.start(this.state.cell,
mxEvent.getClientX(A),mxEvent.getClientY(A),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(A);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(A)})))};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=