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:
EditorUi.initMinimalTheme=function(){function b(I,d){if(EditorUi.windowed){var g=I.editor.graph;g.popupMenuHandler.hideMenu();null==I.formatWindow?(d=Math.max(10,I.diagramContainer.clientWidth-248),g=Math.min(566,g.container.clientHeight-10),I.formatWindow=new WrapperWindow(I,mxResources.get("format"),d,60,240,g,function(n){I.createFormat(n).init()}),I.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){I.formatWindow.window.fit()})),I.formatWindow.window.minimumSize=new mxRectangle(0,
0,240,80)):I.formatWindow.window.setVisible(null!=d?d:!I.formatWindow.window.isVisible())}else null==I.formatElt&&(I.formatElt=I.createSidebarContainer(),I.createFormat(I.formatElt).init(),I.formatElt.style.border="none",I.formatElt.style.width="240px",I.formatElt.style.borderLeft="1px solid gray",I.formatElt.style.right="0px"),g=I.diagramContainer.parentNode,null!=I.formatElt.parentNode?(I.formatElt.parentNode.removeChild(I.formatElt),g.style.right="0px"):(g.parentNode.appendChild(I.formatElt),g.style.right=
I.formatElt.style.width)}function e(I,d){function g(u,v){var A=I.menus.get(u);u=n.addMenu(v,mxUtils.bind(this,function(){A.funct.apply(this,arguments)}));u.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";u.className="geTitle";d.appendChild(u);return u}var n=new Menubar(I,d);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||