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()&&