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:
!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(S,da){return!1};this.alternateEdgeStyle="vertical";null==p&&this.loadStylesheet();var R=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var S=R.apply(this,arguments);if(this.graph.pageVisible){var da=[],P=this.graph.pageFormat,V=this.graph.pageScale,l=P.width*V;P=P.height*V;V=this.graph.view.translate;for(var A=this.graph.view.scale,
N=this.graph.getPageLayout(),X=0;X<N.width;X++)da.push(new mxRectangle(((N.x+X)*l+V.x)*A,(N.y*P+V.y)*A,l*A,P*A));for(X=1;X<N.height;X++)da.push(new mxRectangle((N.x*l+V.x)*A,((N.y+X)*P+V.y)*A,l*A,P*A));S=da.concat(S)}return S};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(S,da){return null==S.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(S){this.previewColor="#000000"==this.graph.background?"#ffffff":