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:
M&&f.isCustomLink(M)&&(mxEvent.isTouchEvent(C)||!mxEvent.isPopupTrigger(C))&&f.customLinkClicked(M)&&mxEvent.consume(C);null!=m&&m(C,M)};J.call(this,U,Q,Y)};q.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var O=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(U,Q,Y){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(U,["zoomIn","zoomOut","-"],null,Y);O.apply(this,arguments);
f.isSelectionEmpty()||null==d.addSelectionToScratchpad||this.addMenuItems(U,["-","addToScratchpad"],null,Y);f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(U,["-","exitGroup","home"],null,Y)};var G=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(U,Q,Y){if(d.editor.graph.isSelectionEmpty())G.apply(this,arguments),d.menus.addMenuItems(U,["copyAsImage"],null,Y);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(U,Q,Y):this.addPopupMenuArrangeItems(U,