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:
this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(e){mxEvent.getSource(e)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var R=EditorUi.prototype.init;EditorUi.prototype.init=function(){function J(W,X,Y){var Z=t.menus.get(W),ca=A.addMenu(mxResources.get(W),mxUtils.bind(this,function(){Z.funct.apply(this,arguments)}),I);ca.className="geMenuItem";
ca.style.display="inline-block";ca.style.boxSizing="border-box";ca.style.top="6px";ca.style.marginRight="6px";ca.style.height="30px";ca.style.paddingTop="6px";ca.style.paddingBottom="6px";ca.style.cursor="pointer";ca.setAttribute("title",mxResources.get(W));t.menus.menuCreated(Z,ca,"geMenuItem");null!=Y?(ca.style.backgroundImage="url("+Y+")",ca.style.backgroundPosition="center center",ca.style.backgroundRepeat="no-repeat",ca.style.backgroundSize="24px 24px",ca.style.width="34px",ca.innerText=""):
X||(ca.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",ca.style.backgroundPosition="right 6px center",ca.style.backgroundRepeat="no-repeat",ca.style.paddingRight="22px");return ca}function c(W,X,Y,Z,ca,ha){var na=document.createElement("a");na.className="geMenuItem";na.style.display="inline-block";na.style.boxSizing="border-box";na.style.height="30px";na.style.padding="6px";na.style.position="relative";na.style.verticalAlign="top";na.style.top="0px";null!=t.statusContainer?B.insertBefore(na,