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:
function(Z){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?C.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(Z):this.createRoughCanvas(Z)};var M=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(Z,aa,ka,qa,ra){null!=Z.handJiggle&&Z.handJiggle.passThrough||M.apply(this,arguments)};var ba=mxShape.prototype.paint;mxShape.prototype.paint=function(Z){var aa=Z.addTolerance,
ka=!0;null!=this.style&&(ka="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=Z.handJiggle&&Z.handJiggle.constructor==m&&!this.outline){Z.save();var qa=this.fill,ra=this.stroke;this.stroke=this.fill=null;var pa=this.configurePointerEvents,wa=Z.setStrokeColor;Z.setStrokeColor=function(){};var Da=Z.setFillColor;Z.setFillColor=function(){};ka||null==qa||(this.configurePointerEvents=function(){});Z.handJiggle.passThrough=!0;ba.apply(this,arguments);Z.handJiggle.passThrough=
!1;Z.setFillColor=Da;Z.setStrokeColor=wa;this.configurePointerEvents=pa;this.stroke=ra;this.fill=qa;Z.restore();ka&&null!=qa&&(Z.addTolerance=function(){})}ba.apply(this,arguments);Z.addTolerance=aa};var V=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(Z,aa,ka,qa,ra,pa){null!=Z.handJiggle&&Z.handJiggle.constructor==m?(Z.handJiggle.passThrough=!0,V.apply(this,arguments),Z.handJiggle.passThrough=!1):V.apply(this,arguments)}})();Editor.fastCompress=function(m){return null==