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