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:
else{var z=this.createDarkStyle();this.createTimeout(null,mxUtils.bind(this,function(C){z.onerror=mxUtils.bind(this,function(F){C.clear()&&k(Error(mxResources.get("errorLoadingFile")+" "+z.getAttribute("href")))});z.onload=mxUtils.bind(this,function(){C.clear()&&(this.darkStyle=z,u())});document.getElementsByTagName("head")[0].appendChild(z)}),mxUtils.bind(this,function(){k(Error(mxResources.get("timeout")+" "+z.getAttribute("href")))}))}};EditorUi.prototype.setPagesVisible=function(d){Editor.pagesVisible!=
d&&(Editor.pagesVisible=d,mxSettings.settings.pagesVisible=d,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(d,f){this.sidebar.sidebarTitles!=d&&(this.sidebar.sidebarTitles=d,this.sidebar.refresh(),Editor.isSettingsEnabled()&&f&&(mxSettings.settings.sidebarTitles=d,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.saveScrollState=function(){var d=this.editor.graph.view.translate,