Language: JavaScript
Label: vulnerable
CWE: CWE-400 \u2014 Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.

Code:
Graph.prototype.moveSiblings=function(a,c,f,e){this.model.beginUpdate();try{var g=this.getCellsBeyond(a.x,a.y,c,!0,!0);for(c=0;c<g.length;c++)if(g[c]!=a.cell){var d=this.view.getState(g[c]),k=this.getCellGeometry(g[c]);null!=d&&null!=k&&(k=k.clone(),k.translate(Math.round(f*Math.max(0,Math.min(1,(d.x-a.x)/a.width))),Math.round(e*Math.max(0,Math.min(1,(d.y-a.y)/a.height)))),this.model.setGeometry(g[c],k))}}finally{this.model.endUpdate()}};