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:
HoverIcons.prototype.createArrow=function(b,e,g){var p=null;p=mxUtils.createImage(b.src);p.style.width=b.width+"px";p.style.height=b.height+"px";p.style.padding=this.tolerance+"px";null!=e&&p.setAttribute("title",e);p.style.position="absolute";p.style.cursor=this.cssCursor;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(y){null==this.currentState||this.isResetEvent(y)||(this.mouseDownPoint=mxUtils.convertPoint(this.graph.container,mxEvent.getClientX(y),mxEvent.getClientY(y)),this.drag(y,
this.mouseDownPoint.x,this.mouseDownPoint.y),this.activeArrow=p,this.setDisplay("none"),mxEvent.consume(y))}));mxEvent.redirectMouseEvents(p,this.graph,this.currentState);mxEvent.addListener(p,"mouseenter",mxUtils.bind(this,function(y){mxEvent.isMouseEvent(y)&&(null!=this.activeArrow&&this.activeArrow!=p&&mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.graph.connectionHandler.constraintHandler.reset(),mxUtils.setOpacity(p,100),this.activeArrow=p,this.fireEvent(new mxEventObject("focus",
"arrow",p,"direction",g,"event",y)))}));mxEvent.addListener(p,"mouseleave",mxUtils.bind(this,function(y){mxEvent.isMouseEvent(y)&&this.fireEvent(new mxEventObject("blur","arrow",p,"direction",g,"event",y));this.graph.isMouseDown||this.resetActiveArrow()}));return p};HoverIcons.prototype.resetActiveArrow=function(){null!=this.activeArrow&&(mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.activeArrow=null)};