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:
Editor.createRoughCanvas=function(m){var B=rough.canvas({getContext:function(){return m}});B.draw=function(K){var R=K.sets||[];K=K.options||this.getDefaultOptions();for(var U=0;U<R.length;U++){var W=R[U];switch(W.type){case "path":null!=K.stroke&&this._drawToContext(m,W,K);break;case "fillPath":this._drawToContext(m,W,K);break;case "fillSketch":this.fillSketch(m,W,K)}}};B.fillSketch=function(K,R,U){var W=m.state.strokeColor,Q=m.state.strokeWidth,V=m.state.strokeAlpha,X=m.state.dashed,Y=U.fillWeight;