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:
"defs"):X.createElement("defs"),null!=l.firstChild?l.insertBefore(N,l.firstChild):l.appendChild(N)):N=N[0];l=null!=X.createElementNS?X.createElementNS(mxConstants.NS_SVG,"style"):X.createElement("style");l.setAttribute("type","text/css");mxUtils.setTextContent(l,A);N.appendChild(l)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(l,A,N){var X=mxClient.IS_FF?8192:16384;return Math.min(N,Math.min(X/l,X/
A))};Editor.prototype.exportToCanvas=function(l,A,N,X,U,Z,ba,ia,qa,ra,pa,xa,Ca,Aa,za,Ma,Qa,Oa){try{Z=null!=Z?Z:!0;ba=null!=ba?ba:!0;xa=null!=xa?xa:this.graph;Ca=null!=Ca?Ca:0;var ta=qa?null:xa.background;ta==mxConstants.NONE&&(ta=null);null==ta&&(ta=X);null==ta&&0==qa&&(ta=Ma?this.graph.defaultPageBackgroundColor:"#ffffff");this.convertImages(xa.getSvg(null,null,Ca,Aa,null,ba,null,null,null,ra,null,Ma,Qa,Oa),mxUtils.bind(this,function(Da){try{var Ba=new Image;Ba.onload=mxUtils.bind(this,function(){try{var Va=