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:
"arrowSize"],function(u){var p=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",La.prototype.arrowWidth))),t=Math.max(0,Math.min(c,mxUtils.getValue(this.state.style,"arrowSize",La.prototype.arrowSize)));return new mxPoint(u.x+(1-t)*u.width,u.y+(1-p)*u.height/2)},function(u,p){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(u.y+u.height/2-p.y)/u.height*2));this.state.style.arrowSize=Math.max(0,Math.min(c,(u.x+u.width-p.x)/u.width))})]}},nb=function(c){return function(l){return[hb(l,
["size"],function(u){var p=Math.max(0,Math.min(.5*u.height,parseFloat(mxUtils.getValue(this.state.style,"size",c))));return new mxPoint(u.x,u.y+p)},function(u,p){this.state.style.size=Math.max(0,p.y-u.y)},!0)]}},ub=function(c,l,u){return function(p){var t=[hb(p,["size"],function(B){var D=Math.max(0,Math.min(B.width,Math.min(B.height,parseFloat(mxUtils.getValue(this.state.style,"size",l)))))*c;return new mxPoint(B.x+D,B.y+D)},function(B,D){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(B.width,