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:
Menus.prototype.addPopupMenuCellEditItems=function(a,c,f,e){var g=this.editorUi.editor.graph,d=g.view.getState(c);this.addMenuItems(a,["-","editStyle","editData","editLink"],e,f);g.getModel().isVertex(c)&&null!=mxUtils.getValue(d.style,mxConstants.STYLE_IMAGE,null)&&(a.addSeparator(),this.addMenuItem(a,"image",e,f).firstChild.nextSibling.innerHTML=mxResources.get("editImage")+"...",this.addMenuItem(a,"crop",e,f));(g.getModel().isVertex(c)&&0==g.getModel().getChildCount(c)||g.isContainer(c))&&this.addMenuItem(a,
"editConnectionPoints",e,f)};Menus.prototype.addPopupMenuSelectionItems=function(a,c,f){this.editorUi.editor.graph.isSelectionEmpty()&&this.addMenuItems(a,["-","selectVertices","selectEdges","selectAll"],null,f)};