Language: JavaScript
Label: vulnerable
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
if(null!=v.hoverIcons){var C=v.hoverIcons.update;v.hoverIcons.update=function(){A.freehand.isDrawing()||C.apply(this,arguments)}}if(null!=A.freehand){var J=A.freehand.createStyle;A.freehand.createStyle=function(V){return J.apply(this,arguments)+"sketch=0;"}}v.editor.addListener("statusChanged",mxUtils.bind(this,function(){v.setStatusText(v.editor.getStatus())}));v.setStatusText(v.editor.getStatus());var G=v.menus.get("viewZoom");if(null!=G){var P=function(V){if(mxEvent.isAltDown(V))v.hideCurrentMenu(),
v.actions.get("customZoom").funct(),mxEvent.consume(V);else if("geMenuItem"==mxEvent.getSource(V).className||mxEvent.isShiftDown(V))v.hideCurrentMenu(),v.actions.get("smartFit").funct(),mxEvent.consume(V)},O=v.actions.get("zoomIn"),N=v.actions.get("zoomOut"),T=v.actions.get("resetView"),m=v.actions.get("undo"),B=v.actions.get("redo"),K=d("",m.funct,null,mxResources.get("undo")+" ("+m.shortcut+")",m,Editor.undoImage),R=d("",B.funct,null,mxResources.get("redo")+" ("+B.shortcut+")",B,Editor.redoImage),