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:
Graph.prototype.getParentByName=function(x,L,Q){for(;null!=x&&x.nodeName!=L;){if(x==Q)return null;x=x.parentNode}return x};Graph.prototype.getParentByNames=function(x,L,Q){for(;null!=x&&!(0<=mxUtils.indexOf(L,x.nodeName));){if(x==Q)return null;x=x.parentNode}return x};Graph.prototype.selectNode=function(x){var L=null;if(window.getSelection){if(L=window.getSelection(),L.getRangeAt&&L.rangeCount){var Q=document.createRange();Q.selectNode(x);L.removeAllRanges();L.addRange(Q)}}else(L=document.selection)&&
"Control"!=L.type&&(x=L.createRange(),x.collapse(!0),Q=L.createRange(),Q.setEndPoint("StartToStart",x),Q.select())};Graph.prototype.flipEdgePoints=function(x,L,Q){var X=this.getCellGeometry(x);if(null!=X){X=X.clone();if(null!=X.points)for(var ea=0;ea<X.points.length;ea++)L?X.points[ea].x=Q+(Q-X.points[ea].x):X.points[ea].y=Q+(Q-X.points[ea].y);ea=function(la){null!=la&&(L?la.x=Q+(Q-la.x):la.y=Q+(Q-la.y))};ea(X.getTerminalPoint(!0));ea(X.getTerminalPoint(!1));this.model.setGeometry(x,X)}};Graph.prototype.flipChildren=