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:
EditorUi.prototype.onKeyDown=function(a){var c=this.editor.graph;if(9==a.which&&c.isEnabled()&&!mxEvent.isControlDown(a)){if(c.isEditing())if(mxEvent.isAltDown(a))c.stopEditing(!1);else try{var f=c.cellEditor.isContentEditing()&&c.cellEditor.isTextSelected();if(window.getSelection&&c.cellEditor.isContentEditing()&&!f&&!mxClient.IS_IE&&!mxClient.IS_IE11){var e=window.getSelection(),g=0<e.rangeCount?e.getRangeAt(0).commonAncestorContainer:null;f=null!=g&&("LI"==g.nodeName||null!=g.parentNode&&"LI"==
g.parentNode.nodeName)}f?document.execCommand(mxEvent.isShiftDown(a)?"outdent":"indent",!1,null):mxEvent.isShiftDown(a)?c.stopEditing(!1):c.cellEditor.insertTab(c.cellEditor.isContentEditing()?null:4)}catch(d){}else mxEvent.isAltDown(a)?c.selectParentCell():c.selectCell(!mxEvent.isShiftDown(a));mxEvent.consume(a)}};