Language: JavaScript
Label: vulnerable
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
A.getAttribute("href")))});A.onload=mxUtils.bind(this,function(){B.clear()&&(this.darkStyle=A,u())});document.getElementsByTagName("head")[0].appendChild(A)}),mxUtils.bind(this,function(){l(Error(mxResources.get("timeout")+" "+A.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,f=mxUtils.getOffset(this.diagramContainer),l=this.diagramContainer.scrollLeft-f.x;f=this.diagramContainer.scrollTop-f.y;null!=this.embedViewport&&(Editor.inlineFullscreen?(l-=this.embedViewport.x,