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:
ma.join(" ")}null!=ia?(P=ia,P.className+=" "+aa,Q=la,ka.className="geTempDlgCreateBtn"):(Q=P=null,ka.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function B(ia,aa){if(null!=Q){var la=function(sa){ja.isExternal?L(ja,function(ta){ma(ta,sa)},oa):ja.url?mxUtils.get(TEMPLATE_PATH+"/"+ja.url,mxUtils.bind(this,function(ta){200<=ta.getStatus()&&299>=ta.getStatus()?ma(ta.getText(),sa):oa()})):ma(b.emptyDiagramXml,sa)},ma=function(sa,ta){e||b.hideDialog(!0);f(sa,ta,ja,aa)},oa=function(){g(mxResources.get("cannotLoad"));
fa()},fa=function(){Q=ja;ka.className="geTempDlgCreateBtn";aa&&(Aa.className="geTempDlgOpenBtn")},ja=Q;Q=null;"boolean"!==typeof aa&&(aa=ja.isExternal&&R);1==ia?N(ja.url,ja):aa?(Aa.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",la()):(ka.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBtnBusy",ia=null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"),ia=new FilenameDialog(b,b.defaultFilename+".drawio",
mxResources.get("ok"),la,ia,function(sa){var ta=null!=sa&&0<sa.length;return ta&&e?(la(sa),!1):ta},null,null,null,fa,c?null:[]),b.showDialog(ia.container,350,80,!0,!0),ia.init())}}function I(ia){ka.innerText=mxResources.get(ha||ia?"create":"copy");ia=ia?"none":"";R&&(Aa.style.display=ia);for(var aa=O.querySelectorAll(".geTempDlgLinkToDiagram"),la=0;la<aa.length;la++)aa[la].style.display=ia}function A(ia,aa,la,ma,oa){oa||(ea.innerText="",x(),X=ia,Y=ma);var fa=null;if(la){fa=document.createElement("table");