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.updateDocumentTitle();this.refresh()}));e.addListener("enabledChanged",mxUtils.bind(this,function(){e.isEnabled()||this.hideShapePicker()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var B=parseInt(this.div.offsetLeft),H=parseInt(this.div.offsetWidth),g=c.embedViewport.x+c.embedViewport.width,x=parseInt(this.div.offsetTop),F=parseInt(this.div.offsetHeight),M=c.embedViewport.y+c.embedViewport.height;this.div.style.left=
Math.max(c.embedViewport.x,Math.min(B,g-H))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(x,M-F))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme)J=Editor.currentTheme,Editor.currentTheme="",this.doSetCurrentTheme(J,0,mxUtils.bind(this,