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