Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
EditorUi.prototype.chromelessWindowResize=function(){};var D=Menus.prototype.init;Menus.prototype.init=function(){D.apply(this,arguments);var H=this.editorUi;EditorUi.enablePlantUml&&!H.isOffline()&&H.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var n=new ParseDialog(H,mxResources.get("plantUml")+"...","plantUml");H.showDialog(n.container,620,420,!0,!1);n.init()}));H.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var n=new ParseDialog(H,
mxResources.get("mermaid")+"...","mermaid");H.showDialog(n.container,620,420,!0,!1);n.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),g=function(n,q,t,x){n.addItem(t,null,mxUtils.bind(this,function(){var B=new CreateGraphDialog(H,t,x);H.showDialog(B.container,620,420,!0,!1);B.init()}),q)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(n,q){for(var t=0;t<d.length;t++)"-"==d[t]?n.addSeparator(q):g(n,q,mxResources.get(d[t])+
"...",d[t])})))};EditorUi.prototype.installFormatToolbar=function(H){var d=this.editor.graph,g=document.createElement("div");g.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";d.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(n,q){0<d.getSelectionCount()?(H.appendChild(g),g.innerHTML="Selected: "+d.getSelectionCount()):null!=