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:
0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,u)&&(f="classDiagram\n"+f);EditorUi.debug("EditorUi.extractMermaidDeclaration","\nlines:",k,"\ntype:",u,"\nvalue:",d,"\ntext:",f);return f};EditorUi.prototype.removeMermaidComments=function(d){d=d.split("\n");for(var f=[],k=0;k<d.length;k++)"%%"!=d[k].substring(0,2)&&f.push(d[k]);return f.join("\n")};EditorUi.prototype.generateMermaidImage=function(d,f,k,u,z){d=this.removeMermaidComments(d);var C=mxUtils.bind(this,function(K){this.loadingMermaid=!1;null!=