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:
0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,e,f,c,k,l,x,y,E,D,z){var M=document.createElement("div");M.style.textAlign="center";z=null!=z?z:44;var I=document.createElement("div");I.style.padding="6px";I.style.overflow="auto";I.style.maxHeight=z+
"px";I.style.lineHeight="1.2em";mxUtils.write(I,e);M.appendChild(I);null!=D&&(I=document.createElement("div"),I.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",D),I.appendChild(e),M.appendChild(I));D=document.createElement("div");D.style.textAlign="center";D.style.whiteSpace="nowrap";var d=document.createElement("input");d.setAttribute("type","checkbox");l=mxUtils.button(l||mxResources.get("cancel"),function(){b.hideDialog();null!=c&&c(d.checked)});l.className="geBtn";
null!=y&&(l.innerHTML=y+"<br>"+l.innerHTML,l.style.paddingBottom="8px",l.style.paddingTop="8px",l.style.height="auto",l.style.width="40%");b.editor.cancelFirst&&D.appendChild(l);var g=mxUtils.button(k||mxResources.get("ok"),function(){b.hideDialog();null!=f&&f(d.checked)});D.appendChild(g);null!=x?(g.innerHTML=x+"<br>"+g.innerHTML+"<br>",g.style.paddingBottom="8px",g.style.paddingTop="8px",g.style.height="auto",g.className="geBtn",g.style.width="40%"):g.className="geBtn gePrimaryBtn";b.editor.cancelFirst||
D.appendChild(l);M.appendChild(D);E?(D.style.marginTop="10px",I=document.createElement("p"),I.style.marginTop="20px",I.style.marginBottom="0px",I.appendChild(d),k=document.createElement("span"),mxUtils.write(k," "+mxResources.get("rememberThisSetting")),I.appendChild(k),M.appendChild(I),mxEvent.addListener(k,"click",function(n){d.checked=!d.checked;mxEvent.consume(n)})):D.style.marginTop="12px";this.init=function(){g.focus()};this.container=M},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),