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:
sa.innerText=ja;fa.appendChild(sa);qa.appendChild(fa);mxEvent.addListener(fa,"click",function(){function La(){var ya=Ga.querySelector(".geTemplateDrawioCatLink");null!=ya?ya.click():setTimeout(La,200)}ha=!0;var Ga=O.querySelector(".geTemplatesList");Ga.style.display="block";Ba.style.width="";xa.style.display="";xa.value="";Z=null;La()});na.style.display=ia.length<=la?"none":""}function l(ia,aa,la){function ma(Ka,Xa){Ka=mxResources.get(Ka,null,Ka.substring(0,1).toUpperCase()+Ka.substring(1));var Pa=
Ka+" ("+Xa.length+")",Ra=Ka=mxUtils.htmlEntities(Ka);15<Ka.length&&(Ka=Ka.substring(0,15)+"&hellip;");return{lbl:Ka+" ("+Xa.length+")",fullLbl:Pa,lblOnly:Ra}}function oa(Ka,Xa,Pa,Ra,Oa){mxEvent.addListener(Pa,"click",function(){y!=Pa&&(null!=y?(y.style.fontWeight="normal",y.style.textDecoration="none"):(da.style.display="none",ba.style.minHeight="100%"),y=Pa,y.style.fontWeight="bold",y.style.textDecoration="underline",Ba.scrollTop=0,V&&(k=!0),za.innerHTML=Xa,Ca.style.display="none",A(Oa?aa[Ka]:Ra?