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 Q==O||0==M.length?z(F,O):U==W?D(F):E(F,O!=mxConstants.DIRECTION_NORTH&&O!=mxConstants.DIRECTION_WEST)}return T.apply(this,arguments)};g.getSubtree=function(F){var O=[F];!k(F)&&!c(F)||x(F)||g.traverse(F,!0,function(S,K){var R=null!=K&&g.isTreeEdge(K);R&&0>mxUtils.indexOf(O,K)&&O.push(K);(null==K||R)&&0>mxUtils.indexOf(O,S)&&O.push(S);return null==K||R});return O};var p=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){p.apply(this,arguments);(k(this.state.cell)||c(this.state.cell))&&
!x(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(F){this.graph.graphHandler.start(this.state.cell,
mxEvent.getClientX(F),mxEvent.getClientY(F),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(F);this.graph.isMouseDown=!0;d.hoverIcons.reset();mxEvent.consume(F)})))};var q=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){q.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=