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:
Graph.prototype.getParentByName=function(x,L,P){for(;null!=x&&x.nodeName!=L;){if(x==P)return null;x=x.parentNode}return x};Graph.prototype.getParentByNames=function(x,L,P){for(;null!=x&&!(0<=mxUtils.indexOf(L,x.nodeName));){if(x==P)return null;x=x.parentNode}return x};Graph.prototype.selectNode=function(x){var L=null;if(window.getSelection){if(L=window.getSelection(),L.getRangeAt&&L.rangeCount){var P=document.createRange();P.selectNode(x);L.removeAllRanges();L.addRange(P)}}else(L=document.selection)&&