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:
this.isOffline(!0)?window.setTimeout(y,0):(this.loadingMermaid=!0,"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(A){this.importXml(A,null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",y,null,null,null,t)):mxscript("js/extensions.min.js",y,null,null,null,t))};EditorUi.prototype.generatePlantUmlImage=function(c,e,k,n){function p(A,G,C){c1=A>>2;c2=(A&3)<<4|G>>4;c3=(G&15)<<2|C>>6;c4=C&63;r="";r+=t(c1&63);r+=t(c2&63);r+=
t(c3&63);return r+=t(c4&63)}function t(A){if(10>A)return String.fromCharCode(48+A);A-=10;if(26>A)return String.fromCharCode(65+A);A-=26;if(26>A)return String.fromCharCode(97+A);A-=26;return 0==A?"-":1==A?"_":"?"}var y=new XMLHttpRequest;y.open("GET",("txt"==e?PLANT_URL+"/txt/":"png"==e?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(A){r="";for(i=0;i<A.length;i+=3)r=i+2==A.length?r+p(A.charCodeAt(i),A.charCodeAt(i+1),0):i+1==A.length?r+p(A.charCodeAt(i),0,0):r+p(A.charCodeAt(i),A.charCodeAt(i+1),A.charCodeAt(i+