Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
Editor.createRoughCanvas=function(g){var x=rough.canvas({getContext:function(){return g}});x.draw=function(F){var M=F.sets||[];F=F.options||this.getDefaultOptions();for(var P=0;P<M.length;P++){var T=M[P];switch(T.type){case "path":null!=F.stroke&&this._drawToContext(g,T,F);break;case "fillPath":this._drawToContext(g,T,F);break;case "fillSketch":this.fillSketch(g,T,F)}}};x.fillSketch=function(F,M,P){var T=g.state.strokeColor,W=g.state.strokeWidth,U=g.state.strokeAlpha,X=g.state.dashed,Z=P.fillWeight;