Language: JavaScript
Label: safe
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:
if(null!=g.excludeCells){for(var H=[],O=0;O<y.length;O++)0>g.excludeCells.indexOf(y[O].id)&&H.push(y[O]);y=H}return y};Graph.prototype.getCellsById=function(g){var y=[];if(null!=g)for(var H=0;H<g.length;H++)if("*"==g[H]){var O=this.model.getRoot();y=y.concat(this.model.filterDescendants(function(V){return V!=O},O))}else{var P=this.model.getCell(g[H]);null!=P&&y.push(P)}return y};var E=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(g){return E.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(g))};