Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

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