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.cellsRemoved=function(x){if(null!=x){for(var L=new mxDictionary,Q=0;Q<x.length;Q++)L.put(x[Q],!0);var X=[];for(Q=0;Q<x.length;Q++){var ea=this.model.getParent(x[Q]);null==ea||L.get(ea)||(L.put(ea,!0),X.push(ea))}for(Q=0;Q<X.length;Q++)if(ea=this.view.getState(X[Q]),null!=ea&&(this.model.isEdge(ea.cell)||this.model.isVertex(ea.cell))&&this.isCellDeletable(ea.cell)&&this.isTransparentState(ea)){for(var la=!0,oa=0;oa<this.model.getChildCount(ea.cell)&&la;oa++)L.get(this.model.getChildAt(ea.cell,
oa))||(la=!1);la&&x.push(ea.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(x){for(var L=[],Q=0;Q<x.length;Q++)this.isCellDeletable(x[Q])&&this.isTransparentState(this.view.getState(x[Q]))&&L.push(x[Q]);x=L;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(x,L){this.setAttributeForCell(x,"link",L)};Graph.prototype.setTooltipForCell=function(x,L){var Q="tooltip";Graph.translateDiagram&&