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:
function(){d.setAndPersistLanguage(M);d.alert(mxResources.get("restartForChangeRequired"))}),u),(M==mxLanguage||""==M&&null==mxLanguage)&&f.addCheckmark(x,Editor.checkmarkImage));return x});D("");f.addSeparator(u);for(var E in mxLanguageMap)D(E)})));var I=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(f){var u=I.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=u&&Editor.enableSimpleTheme&&"atlassian"!=d.getServiceName()){var D=this.get("dynamicAppearance");
if(null!=D){var E=u.addMenu("",D.funct);E.setAttribute("title",mxResources.get("appearance"));E.className="geToolbarButton geAdaptiveAsset";E.style.backgroundPosition="center center";E.style.backgroundRepeat="no-repeat";E.style.backgroundSize="100% 100%";E.style.display="inline-block";E.style.cursor="pointer";E.style.zIndex="1";E.style.position="absolute";E.style.height="18px";E.style.width="18px";"atlas"==Editor.currentTheme?(E.style.filter="invert(100%)",E.style.right="11px",E.style.top="10px"):
(E.style.right="10px",E.style.top="5px");document.body.appendChild(E);u.langIcon=E;D=mxUtils.bind(this,function(){var M=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;E.style.display="atlas"==Editor.currentTheme||"min"==Editor.currentTheme||"sketch"==Editor.currentTheme?"none":"";E.style.backgroundImage="simple"==Editor.currentTheme?750>M?"url("+Editor.thinDoubleArrowRightImage+")":"url("+(Editor.isDarkMode()||Editor.cssDarkMode?Editor.thinDarkImage:Editor.thinLightImage)+
")":"url("+(Editor.isDarkMode()?Editor.darkModeImage:Editor.lightModeImage)+")"});this.editorUi.addListener("currentThemeChanged",D);this.editorUi.addListener("darkModeChanged",D);mxEvent.addListener(window,"resize",D);D()}}return u}}d.customLayoutConfig=[{layout:"mxHierarchicalLayout",config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];d.actions.addAction("runLayout",function(){d.showCustomLayoutDialog(JSON.stringify(d.customLayoutConfig,