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:
null,null,C))}),u)};EditorUi.prototype.createMermaidXml=function(d,f,k,u,z){var C=new Graph(document.createElement("div"));k=C.insertVertex(null,null,null,0,0,u,z,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+k+";");C.setAttributeForCell(k,"mermaidData",JSON.stringify({data:d,config:f},null,2));d=(new mxCodec).encode(C.getModel());return mxUtils.getXml(d)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(d,f,k){var u=0,z=mxUtils.bind(this,function(){this.spinner.spin(document.body,