Language: JavaScript
Label: vulnerable
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:
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 K=EditorUi.prototype.init;EditorUi.prototype.init=function(){function H(Q,X,Z){var Y=v.menus.get(Q),aa=G.addMenu(mxResources.get(Q),mxUtils.bind(this,function(){Y.funct.apply(this,arguments)}),I);aa.className="geMenuItem";
aa.style.display="inline-block";aa.style.boxSizing="border-box";aa.style.top="6px";aa.style.marginRight="6px";aa.style.height="30px";aa.style.paddingTop="6px";aa.style.paddingBottom="6px";aa.style.cursor="pointer";aa.setAttribute("title",mxResources.get(Q));v.menus.menuCreated(Y,aa,"geMenuItem");null!=Z?(aa.style.backgroundImage="url("+Z+")",aa.style.backgroundPosition="center center",aa.style.backgroundRepeat="no-repeat",aa.style.backgroundSize="24px 24px",aa.style.width="34px",aa.innerText=""):
X||(aa.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",aa.style.backgroundPosition="right 6px center",aa.style.backgroundRepeat="no-repeat",aa.style.paddingRight="22px");return aa}function d(Q,X,Z,Y,aa,ca){var da=document.createElement("a");da.className="geMenuItem";da.style.display="inline-block";da.style.boxSizing="border-box";da.style.height="30px";da.style.padding="6px";da.style.position="relative";da.style.verticalAlign="top";da.style.top="0px";null!=v.statusContainer?F.insertBefore(da,