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:
N=document.createElement("div");N.style.marginTop="6px";N.style.display="inline-block";N.style.width="140px";mxUtils.write(N,mxResources.get("siblingSpacing")+": ");O.appendChild(N);var R=document.createElement("input");R.type="number";R.value=G;R.style.width="200px";R.style.boxSizing="border-box";O.appendChild(R);mxEvent.addListener(R,"change",function(){G=R.value});N=mxUtils.button(mxResources.get("custom")+"...",function(){var U=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(T.value),
parentChildSpacing:parseInt(K.value),siblingSpacing:parseInt(R.value)}}];c.hideDialog();c.showCustomLayoutDialog(JSON.stringify(U,null,2))});N.className="geBtn";O=new CustomDialog(c,O,function(){null==C&&(C=2);c.loadOrgChartLayouts(P)},null,null,null,N);c.showDialog(O.container,355,140,!0,!0)},q,null,l());p.addSeparator(q);p.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){c.tryAndHandle(mxUtils.bind(this,function(){var C=new mxParallelEdgeLayout(k);C.checkOverlap=!0;c.prompt(mxResources.get("spacing"),
C.spacing,mxUtils.bind(this,function(J){c.tryAndHandle(mxUtils.bind(this,function(){C.spacing=J;c.executeLayout(function(){C.execute(k.getDefaultParent(),k.isSelectionEmpty()?null:k.getSelectionCells())},!1)}))}))}))}),q);p.addSeparator(q);c.menus.addMenuItem(p,"runLayout",q,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(p,q){if(!mxClient.IS_CHROMEAPP&&c.isOffline())this.addMenuItems(p,["about"],q);else{var C=p.addItem("Search:",null,null,q,null,null,