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:
function(E){if(null!=E){var N=this.getCellGeometry(E);null!=N&&N.relative&&(E=this.model.getParent(E))}null!=E&&this.model.isEdge(E)&&(E=this.model.getParent(E));null!=E&&(E=this.getCompositeParent(E));return E};Graph.prototype.getCompositeParent=function(E){for(;this.isPart(E);){var N=this.model.getParent(E);if(!this.model.isVertex(N))break;E=N}return E};Graph.prototype.filterSelectionCells=function(E){var N=this.getSelectionCells();if(null!=E){for(var T=[],F=0;F<N.length;F++)E(N[F])||T.push(N[F]);
N=T}return N};var b=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(E){if(this.useCssTransforms){var N=this.currentScale,T=this.currentTranslate;E=new mxRectangle((E.x+2*T.x)*N-T.x,(E.y+2*T.y)*N-T.y,E.width*N,E.height*N)}b.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=function(E){E=this.strokeWidth;this.graph.useCssTransforms&&(E/=this.graph.currentScale);return E};mxGraphView.prototype.getGraphBounds=function(){var E=this.graphBounds;if(this.graph.useCssTransforms){var N=