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:
function(ha){"true"!=W.getAttribute("contentEditable")&&mxEvent.consume(ha)});U=function(ha){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var na=new FilenameDialog(b,X.title||"",mxResources.get("ok"),function(ea){null!=ea&&(X.title=ea,V())},mxResources.get("enterValue"));b.showDialog(na.container,300,80,!0,!0);na.init();mxEvent.consume(ha)}else if("true"!=W.getAttribute("contentEditable")){null!=t&&(t(),t=null);if(null==X.title||0==X.title.length)W.innerText=
"";W.style.textOverflow="";W.style.whiteSpace="";W.style.cursor="text";W.style.color="";W.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(W.style,"user-select","text");W.focus();document.execCommand("selectAll",!1,null);t=function(){W.removeAttribute("contentEditable");W.style.cursor="pointer";X.title=W.innerHTML;V()};mxEvent.consume(ha)}};mxEvent.addListener(W,"click",U);mxEvent.addListener(P,"dblclick",U);c.appendChild(P);mxEvent.addListener(P,"dragstart",function(ha){null==S&&null!=