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;
0>Z&&(Z=T.strokeWidth/2);m.setStrokeAlpha(m.state.fillAlpha);m.setStrokeColor(T.fill||"");m.setStrokeWidth(Z);m.setDashed(!1);this._drawToContext(J,O,T);m.setDashed(X);m.setStrokeWidth(V);m.setStrokeColor(W);m.setStrokeAlpha(Q)};z._drawToContext=function(J,O,T){J.begin();for(var W=0;W<O.ops.length;W++){var V=O.ops[W],Q=V.data;switch(V.op){case "move":J.moveTo(Q[0],Q[1]);break;case "bcurveTo":J.curveTo(Q[0],Q[1],Q[2],Q[3],Q[4],Q[5]);break;case "lineTo":J.lineTo(Q[0],Q[1])}}J.end();"fillPath"===O.type&&