Language: JavaScript
Label: vulnerable
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
Graph.prototype.setHiddenTags=function(m){this.hiddenTags=m;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(m){var B=mxUtils.indexOf(this.hiddenTags,m);0>B?this.hiddenTags.push(m):0<=B&&this.hiddenTags.splice(B,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};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 B=0;B<m.length;B++)if(0>
mxUtils.indexOf(this.hiddenTags,m[B]))return!1;return!0};Graph.prototype.getCellsForTags=function(m,B,K,R){var U=[];if(null!=m){B=null!=B?B:this.model.getDescendants(this.model.getRoot());for(var W=0,Q={},V=0;V<m.length;V++)0<m[V].length&&(Q[m[V]]=!0,W++);for(V=0;V<B.length;V++)if(K&&this.model.getParent(B[V])==this.model.root||this.model.isVertex(B[V])||this.model.isEdge(B[V])){var X=this.getTagsForCell(B[V]),Y=!1;if(0<X.length&&(X=X.split(" "),X.length>=m.length)){for(var Z=Y=0;Z<X.length&&Y<W;Z++)null!=