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