Language: JavaScript
Label: vulnerable
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 G=Menus.prototype.init;Menus.prototype.init=function(){G.apply(this,arguments);var W=this.editorUi;EditorUi.enablePlantUml&&!W.isOffline()&&W.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var k=new ParseDialog(W,mxResources.get("plantUml")+"...","plantUml");W.showDialog(k.container,620,420,!0,!1);k.init()}));W.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var k=new ParseDialog(W,
mxResources.get("mermaid")+"...","mermaid");W.showDialog(k.container,620,420,!0,!1);k.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),f=function(k,u,z,C){k.addItem(z,null,mxUtils.bind(this,function(){var F=new CreateGraphDialog(W,z,C);W.showDialog(F.container,620,420,!0,!1);F.init()}),u)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(k,u){for(var z=0;z<d.length;z++)"-"==d[z]?k.addSeparator(u):f(k,u,mxResources.get(d[z])+
"...",d[z])})))};EditorUi.prototype.installFormatToolbar=function(W){var d=this.editor.graph,f=document.createElement("div");f.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(k,u){0<d.getSelectionCount()?(W.appendChild(f),f.innerHTML="Selected: "+d.getSelectionCount()):null!=