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(c,l,u,p,t){var B=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),D=parseFloat(mxUtils.getValue(this.style,"size",this.size));D=B?Math.max(0,Math.min(p,D)):p*Math.max(0,Math.min(1,D));this.isRounded&&(B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,D=Math.max(D,Math.min(p*B,t*B)));D=Math.round(D);c.begin();c.moveTo(l+D,u);c.lineTo(l+D,u+t);c.moveTo(l+p-D,u);c.lineTo(l+p-D,u+t);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,
arguments)};mxCellRenderer.registerShape("process",ca);mxCellRenderer.registerShape("process2",ca);mxUtils.extend(ia,mxRectangleShape);ia.prototype.paintBackground=function(c,l,u,p,t){c.setFillColor(mxConstants.NONE);c.rect(l,u,p,t);c.fill()};ia.prototype.paintForeground=function(c,l,u,p,t){};mxCellRenderer.registerShape("transparent",ia);mxUtils.extend(ma,mxHexagon);ma.prototype.size=30;ma.prototype.position=.5;ma.prototype.position2=.5;ma.prototype.base=20;ma.prototype.getLabelMargins=function(){return new mxRectangle(0,