Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
na[Xa],0<ka.length&&(oa=document.createElement("div"),oa.className="geTempDlgImportCat",oa.innerText=mxResources.get(Xa,null,Xa),ba.appendChild(oa),G(ka,fa,ma,null,!0))}function S(ka,fa){qa.innerText="";B();var ma=Math.floor(qa.offsetWidth/150)-1;fa=!fa&&ka.length>ma?ma:ka.length;for(var na=0;na<fa;na++){var oa=ka[na];oa.isCategory=!0;var ia=document.createElement("div"),ja=mxResources.get(oa.title);null==ja&&(ja=oa.title.substring(0,1).toUpperCase()+oa.title.substring(1));ia.className="geTempDlgNewDiagramCatItem";
ia.setAttribute("title",ja);ja=mxUtils.htmlEntities(ja);15<ja.length&&(ja=ja.substring(0,15)+"&hellip;");null==O&&(I(!0),B(ia,"geTempDlgNewDiagramCatItemActive",oa));var wa=document.createElement("div");wa.className="geTempDlgNewDiagramCatItemImg";var xa=document.createElement("img");xa.src=NEW_DIAGRAM_CATS_PATH+"/"+oa.img;wa.appendChild(xa);ia.appendChild(wa);wa=document.createElement("div");wa.className="geTempDlgNewDiagramCatItemLbl";wa.innerHTML=ja;ia.appendChild(wa);qa.appendChild(ia);(function(Ka,
Ja){mxEvent.addListener(ia,"click",function(){O!=Ja&&(I(!0),B(Ja,"geTempDlgNewDiagramCatItemActive",Ka))});mxEvent.addListener(ia,"dblclick",F)})(oa,ia)}ia=document.createElement("div");ia.className="geTempDlgNewDiagramCatItem";ja=mxResources.get("showAllTemps");ia.setAttribute("title",ja);wa=document.createElement("div");wa.className="geTempDlgNewDiagramCatItemImg";wa.innerText="...";wa.style.fontSize="32px";ia.appendChild(wa);wa=document.createElement("div");wa.className="geTempDlgNewDiagramCatItemLbl";
wa.innerText=ja;ia.appendChild(wa);qa.appendChild(ia);mxEvent.addListener(ia,"click",function(){function Ka(){var Aa=Ja.querySelector(".geTemplateDrawioCatLink");null!=Aa?Aa.click():setTimeout(Ka,200)}ca=!0;var Ja=C.querySelector(".geTemplatesList");Ja.style.display="block";Ba.style.width="";Ca.style.display="";Ca.value="";Y=null;Ka()});da.style.display=ka.length<=ma?"none":""}function U(ka,fa,ma){function na(Oa,Xa){Oa=mxResources.get(Oa,null,Oa.substring(0,1).toUpperCase()+Oa.substring(1));var Sa=