Language: JavaScript
Label: safe
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:
D=document.createElement("div");D.style.height="300px";D.style.width="300px";D.style.display="inline-flex";D.style.justifyContent="center";D.style.alignItems="center";D.style.position="absolute";var L=document.createElement("img");L.onload=function(){function B(){E.model.setStyle(c,e+q())}E=new Graph(K);E.autoExtend=!1;E.autoScroll=!1;E.setGridEnabled(!1);E.setEnabled(!0);E.setPanning(!1);E.setConnectable(!1);E.getRubberband().setEnabled(!1);E.graphHandler.allowLivePreview=!1;var V=E.createVertexHandler;
E.createVertexHandler=function(){var Q=V.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=l)try{if("inset"==l.substring(0,5)){var R=c.geometry,O=L.width,P=L.height,N=(300-O)/2,H=(300-P)/2,m=l.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),v=parseFloat(m[0]),A=parseFloat(m[1]),I=parseFloat(m[2]),g=parseFloat(m[3]);isFinite(v)&&isFinite(A)&&isFinite(I)&&isFinite(g)?(R.x=g/100*O+N,R.y=v/100*P+H,R.width=(100-A)/100*O+N-R.x,R.height=(100-I)/100*P+H-R.y,"round"==m[4]?"50%"==m[5]?p.setAttribute("checked",
"checked"):(J=parseInt(m[5]),y.value=J,n.setAttribute("checked","checked"),t.style.visibility="visible"):k.setAttribute("checked","checked")):l=null}else l=null}catch(Q){}c.style=e+(l?l:q());c.vertex=!0;E.addCell(c,null,null,null,null);E.selectAll();E.addListener(mxEvent.CELLS_MOVED,B);E.addListener(mxEvent.CELLS_RESIZED,B);var x=E.graphHandler.mouseUp,F=E.graphHandler.mouseDown;E.graphHandler.mouseUp=function(){x.apply(this,arguments);K.style.backgroundColor="#fff9"};E.graphHandler.mouseDown=function(){F.apply(this,
arguments);K.style.backgroundColor=""};E.dblClick=function(){};var M=E.getSelectionModel().changeSelection;E.getSelectionModel().changeSelection=function(){M.call(this,[c],[c])}};L.onerror=function(){L.onload=null;L.src=Editor.errorImage};L.setAttribute("src",f);L.style.maxWidth="300px";L.style.maxHeight="300px";D.appendChild(L);z.appendChild(D);var K=document.createElement("div");K.style.width="300px";K.style.height="300px";K.style.overflow="hidden";K.style.backgroundColor="#fff9";z.appendChild(K);