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:
EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var d=this,f=this.editor.graph;Graph.touchStyle&&(f.panningHandler.isPanningTrigger=function(U){var Q=U.getEvent();return null==U.getState()&&!mxEvent.isMouseEvent(Q)&&!f.freehand.isDrawing()||mxEvent.isPopupTrigger(Q)&&(null==U.getState()||mxEvent.isControlDown(Q)||mxEvent.isShiftDown(Q))});f.cellEditor.editPlantUmlData=function(U,Q,Y){var m=JSON.parse(Y);Q=new TextareaDialog(d,mxResources.get("plantUml")+