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.isAllTagsHidden=function(g){if(null==g||0==g.length||0==this.hiddenTags.length)return!1;g=g.split(" ");if(g.length>this.hiddenTags.length)return!1;for(var x=0;x<g.length;x++)if(0>mxUtils.indexOf(this.hiddenTags,g[x]))return!1;return!0};Graph.prototype.getCellsForTags=function(g,x,F,M){var P=[];if(null!=g){x=null!=x?x:this.model.getDescendants(this.model.getRoot());for(var T=0,W={},U=0;U<g.length;U++)0<g[U].length&&(W[g[U]]=!0,T++);for(U=0;U<x.length;U++)if(F&&this.model.getParent(x[U])==
this.model.root||this.model.isVertex(x[U])||this.model.isEdge(x[U])){var X=this.getTagsForCell(x[U]),Z=!1;if(0<X.length&&(X=X.split(" "),X.length>=g.length)){for(var Y=Z=0;Y<X.length&&Z<T;Y++)null!=W[X[Y]]&&Z++;Z=Z==T}Z&&(1!=M||this.isCellVisible(x[U]))&&P.push(x[U])}}return P};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(g){for(var x=null,F=[],M=0;M<g.length;M++){var P=this.getTagsForCell(g[M]);