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)-d+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(g){mxEvent.getSource(g)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var M=EditorUi.prototype.init;EditorUi.prototype.init=function(){function I(V,X,Y){var Z=v.menus.get(V),ca=F.addMenu(mxResources.get(V),mxUtils.bind(this,function(){Z.funct.apply(this,arguments)}),L);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(V));v.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 d(V,X,Y,Z,ca,da){var ma=document.createElement("a");ma.className="geMenuItem";ma.style.display="inline-block";ma.style.boxSizing="border-box";ma.style.height="30px";ma.style.padding="6px";ma.style.position="relative";ma.style.verticalAlign="top";ma.style.top="0px";null!=v.statusContainer?H.insertBefore(ma,