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.highlightCells=function(g,x,F,M){for(var P=0;P<g.length;P++)this.highlightCell(g[P],x,F,M)};Graph.prototype.highlightCell=function(g,x,F,M,P){x=null!=x?x:mxConstants.DEFAULT_VALID_COLOR;F=null!=F?F:1E3;g=this.view.getState(g);var T=null;null!=g&&(P=null!=P?P:4,P=Math.max(P+1,mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)+P),T=new mxCellHighlight(this,x,P,!1),null!=M&&(T.opacity=M),T.highlight(g),window.setTimeout(function(){null!=T.shape&&(mxUtils.setPrefixedStyle(T.shape.node.style,