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:
function(B,K){if(null==K){var R=mxEvent.getSource(B);"a"==R.nodeName.toLowerCase()&&(K=R.getAttribute("href"))}null!=K&&g.isCustomLink(K)&&(mxEvent.isTouchEvent(B)||!mxEvent.isPopupTrigger(B))&&g.customLinkClicked(K)&&mxEvent.consume(B);null!=m&&m(B,K)};H.call(this,O,N,T)};l.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(g.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var L=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(O,N,T){g.isSelectionEmpty()&&
"simple"==Editor.currentTheme&&this.addMenuItems(O,["zoomIn","zoomOut","-"],null,T);L.apply(this,arguments);g.isSelectionEmpty()||null==d.addSelectionToScratchpad||this.addMenuItems(O,["-","addToScratchpad"],null,T);g.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(O,["-","exitGroup","home"],null,T)};var F=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(O,N,T){if(d.editor.graph.isSelectionEmpty())F.apply(this,arguments),d.menus.addMenuItems(O,["copyAsImage"],