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:
mxCellRenderer.registerShape("ext",Q);mxUtils.extend(Y,mxCylinder);Y.prototype.redrawPath=function(c,l,u,p,t,B){B?(c.moveTo(0,0),c.lineTo(p/2,t/2),c.lineTo(p,0),c.end()):(c.moveTo(0,0),c.lineTo(p,0),c.lineTo(p,t),c.lineTo(0,t),c.close())};mxCellRenderer.registerShape("message",Y);mxUtils.extend(m,mxShape);m.prototype.paintBackground=function(c,l,u,p,t){c.translate(l,u);c.ellipse(p/4,0,p/2,t/4);c.fillAndStroke();c.begin();c.moveTo(p/2,t/4);c.lineTo(p/2,2*t/3);c.moveTo(p/2,t/3);c.lineTo(0,t/3);c.moveTo(p/
2,t/3);c.lineTo(p,t/3);c.moveTo(p/2,2*t/3);c.lineTo(0,t);c.moveTo(p/2,2*t/3);c.lineTo(p,t);c.end();c.stroke()};mxCellRenderer.registerShape("umlActor",m);mxUtils.extend(C,mxShape);C.prototype.getLabelMargins=function(c){return new mxRectangle(c.width/6,0,0,0)};C.prototype.paintBackground=function(c,l,u,p,t){c.translate(l,u);c.begin();c.moveTo(0,t/4);c.lineTo(0,3*t/4);c.end();c.stroke();c.begin();c.moveTo(0,t/2);c.lineTo(p/6,t/2);c.end();c.stroke();c.ellipse(p/6,0,5*p/6,t);c.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",