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])==