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 t=this.createDarkStyle();this.createTimeout(null,mxUtils.bind(this,function(v){t.onerror=mxUtils.bind(this,function(B){v.clear()&&n(Error(mxResources.get("errorLoadingFile")+" "+t.getAttribute("href")))});t.onload=mxUtils.bind(this,function(){v.clear()&&(this.darkStyle=t,q())});document.getElementsByTagName("head")[0].appendChild(t)}),mxUtils.bind(this,function(){n(Error(mxResources.get("timeout")+" "+t.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,g){this.sidebar.sidebarTitles!=d&&(this.sidebar.sidebarTitles=d,this.sidebar.refresh(),Editor.isSettingsEnabled()&&g&&(mxSettings.settings.sidebarTitles=d,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.saveScrollState=function(){var d=this.editor.graph.view.translate,