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:
["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,
D.x-B.x),Math.min(B.height,D.y-B.y)))/c)},!1)];u&&mxUtils.getValue(p.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(pb(p));return t}},gb=function(c,l,u,p,t){u=null!=u?u:.5;return function(B){var D=[hb(B,["size"],function(ha){var I=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ua=parseFloat(mxUtils.getValue(this.state.style,"size",I?t:c));return new mxPoint(ha.x+Math.max(0,Math.min(.5*ha.width,ua*(I?1:ha.width))),ha.getCenterY())},function(ha,I,ua){ha=null!=t&&"0"!=mxUtils.getValue(this.state.style,