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:
new mxRectangle(0,0,0,Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(m.style,"size",ma.prototype.size))*m.view.scale))),m.style),m,x,p)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(c,m,x,p){var t="0"!=mxUtils.getValue(m.style,"fixedSize","0"),C=t?M.prototype.fixedSize:M.prototype.size;null!=m&&(C=mxUtils.getValue(m.style,"size",C));t&&(C*=m.view.scale);var D=c.x,fa=c.y,I=c.width,va=c.height;m=null!=m?mxUtils.getValue(m.style,
mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;m==mxConstants.DIRECTION_NORTH||m==mxConstants.DIRECTION_SOUTH?(t=t?Math.max(0,Math.min(va,C)):va*Math.max(0,Math.min(1,C)),fa=[new mxPoint(D,fa),new mxPoint(D+I,fa+t),new mxPoint(D+I,fa+va),new mxPoint(D,fa+va-t),new mxPoint(D,fa)]):(t=t?Math.max(0,Math.min(.5*I,C)):I*Math.max(0,Math.min(1,C)),fa=[new mxPoint(D+t,fa),new mxPoint(D+I,fa),new mxPoint(D+I-t,fa+va),new mxPoint(D,fa+va),new mxPoint(D+t,fa)]);va=c.getCenterX();
c=c.getCenterY();c=new mxPoint(va,c);p&&(x.x<D||x.x>D+I?c.y=x.y:c.x=x.x);return mxUtils.getPerimeterPoint(fa,c,x)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,m,x,p){var t="0"!=mxUtils.getValue(m.style,"fixedSize","0"),C=t?O.prototype.fixedSize:O.prototype.size;null!=m&&(C=mxUtils.getValue(m.style,"size",C));t&&(C*=m.view.scale);var D=c.x,fa=c.y,I=c.width,va=c.height;m=null!=m?mxUtils.getValue(m.style,mxConstants.STYLE_DIRECTION,