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:
mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("darkModeChanged"))}),mxUtils.bind(this,function(f){null!=window.console&&console.error(f);this.editor.setStatus(f.message)}))};EditorUi.prototype.createDarkStyle=function(){var d=document.createElement("link");d.setAttribute("rel","stylesheet");d.setAttribute("href",STYLE_PATH+"/dark.css");d.setAttribute("charset","UTF-8");d.setAttribute("type","text/css");return d};EditorUi.setGraphDarkMode=function(d,f,k){d.view.defaultGridColor=k?mxGraphView.prototype.defaultDarkGridColor:
mxGraphView.prototype.defaultGridColor;d.view.gridColor=d.view.defaultGridColor;d.defaultPageBackgroundColor="1"==urlParams.embedInline?"transparent":k?Editor.darkColor:"#ffffff";d.defaultPageBorderColor=k?"#000000":"#ffffff";d.shapeBackgroundColor=k?Editor.darkColor:"#ffffff";d.shapeForegroundColor=k?Editor.lightColor:"#000000";d.defaultThemeName=k?"darkTheme":"default-style2";d.graphHandler.previewColor=k?"#cccccc":"black";mxGraphHandler.prototype.previewColor=d.graphHandler.previewColor;null!=
f&&(f.style.backgroundColor="1"==urlParams.embedInline?"transparent":k?Editor.darkColor:"#ffffff");d.loadStylesheet();Graph.prototype.defaultPageBackgroundColor=d.defaultPageBackgroundColor;Graph.prototype.defaultPageBorderColor=d.defaultPageBorderColor;Graph.prototype.shapeBackgroundColor=d.shapeBackgroundColor;Graph.prototype.shapeForegroundColor=d.shapeForegroundColor;Graph.prototype.defaultThemeName=d.defaultThemeName};EditorUi.prototype.doSetDarkMode=function(d,f,k){var u=mxUtils.bind(this,function(){if(Editor.darkMode!=