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:
W.formatElt.style.width)}function e(W,d){function f(z,C){var F=W.menus.get(z);z=k.addMenu(C,mxUtils.bind(this,function(){F.funct.apply(this,arguments)}));z.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";z.className="geTitle";d.appendChild(z);return z}var k=new Menubar(W,d);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||
"1"==urlParams.libraries))if(null!=W.actions.get("newLibrary")){var u=document.createElement("div");u.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";u.className="geTitle";mxUtils.write(u,mxResources.get("newLibrary"));d.appendChild(u);mxEvent.addListener(u,"click",this.actions.get("newLibrary").funct);u=u.cloneNode(!1);
u.style.left="50%";u.style.borderLeftStyle="solid";mxUtils.write(u,mxResources.get("openLibrary"));d.appendChild(u);mxEvent.addListener(u,"click",this.actions.get("openLibrary").funct)}else u=f("newLibrary",mxResources.get("newLibrary")),u.style.fontSize="11px",u.style.left="0",u=f("openLibraryFrom",mxResources.get("openLibraryFrom")),u.style.borderLeftStyle="solid",u.style.fontSize="11px",u.style.left="50%";d.appendChild(W.sidebar.container);d.style.overflow="hidden"}function g(W,d){if(EditorUi.windowed){var f=