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:
lb=db.ownerDocument,kb=null!=lb.createElementNS?lb.createElementNS(mxConstants.NS_SVG,"g"):lb.createElement("g");db.appendChild(kb);var Pa=this.createSvgCanvas(kb);Pa.foOffset=ea?-.5:0;Pa.textOffset=ea?-.5:0;Pa.imageOffset=ea?-.5:0;Pa.translate(Math.floor(P/L-$a.x/Ra),Math.floor(P/L-$a.y/Ra));var eb=document.createElement("div"),jb=Pa.getAlternateText;Pa.getAlternateText=function(nb,ub,gb,tb,ob,pb,hb,Ab,Db,Bb,vb,zb,yb){if(null!=pb&&0<this.state.fontSize)try{mxUtils.isNode(pb)?pb=pb.innerText:(eb.innerHTML=
pb,pb=mxUtils.extractTextWithWhitespace(eb.childNodes));for(var Cb=Math.ceil(2*tb/this.state.fontSize),c=[],l=0,u=0;(0==Cb||l<Cb)&&u<pb.length;){var p=pb.charCodeAt(u);if(10==p||13==p){if(0<l)break}else c.push(pb.charAt(u)),255>p&&l++;u++}c.length<pb.length&&1<pb.length-c.length&&(pb=mxUtils.trim(c.join(""))+"...");return pb}catch(t){return jb.apply(this,arguments)}else return jb.apply(this,arguments)};var ib=this.backgroundImage;if(null!=ib){x=Ra/L;var mb=this.view.translate;ab=new mxRectangle((ib.x+