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:
m.prototype.quadTo=function(Z,aa,ka,qa){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,Z,aa,ka,qa),this.lastX=ka,this.lastY=qa)};m.prototype.curveTo=function(Z,aa,ka,qa,ra,pa){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,Z,aa,ka,qa,ra,pa),this.lastX=ra,this.lastY=pa)};m.prototype.arcTo=function(Z,aa,ka,qa,ra,pa,wa){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var Da=mxUtils.arcToCurves(this.lastX,
this.lastY,Z,aa,ka,qa,ra,pa,wa);if(null!=Da)for(var Ba=0;Ba<Da.length;Ba+=6)this.curveTo(Da[Ba],Da[Ba+1],Da[Ba+2],Da[Ba+3],Da[Ba+4],Da[Ba+5]);this.lastX=pa;this.lastY=wa}};m.prototype.rect=function(Z,aa,ka,qa){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(Z,aa,ka,qa,this.getStyle(!0,!0)))};m.prototype.ellipse=function(Z,aa,ka,qa){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=