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:
mxVsdxCanvas2D.prototype.rect=function(h,y,A,B){1<this.geoStepIndex&&this.createGeoSec();var m=this.state;A*=m.scale;B*=m.scale;var g=this.xmGeo;h=(h-g.x+m.dx)*m.scale;y=(g.height-y+g.y-m.dy)*m.scale;this.geoSec.appendChild(this.createRowScaled("MoveTo",this.geoStepIndex++,h,y));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,h+A,y));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,h+A,y-B));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,
h,y-B));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,h,y))};mxVsdxCanvas2D.prototype.roundrect=function(h,y,A,B,m,g){this.rect(h,y,A,B);this.shape.appendChild(this.createCellElemScaled("Rounding",m))};