Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",B,null,null,null,v)},null,null,null,v)},null,null,null,v)},null,null,null,v)},null,null,null,v):mxscript("js/extensions.min.js",B,null,null,null,v))}),t)};EditorUi.prototype.createMermaidXml=function(d,g,n,t,u){var v=new Graph(document.createElement("div"));
n=v.insertVertex(null,null,null,0,0,t,u,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+n+";");v.setAttributeForCell(n,"mermaidData",JSON.stringify({data:d,config:g},null,2));d=(new mxCodec).encode(v.getModel());return mxUtils.getXml(d)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(d,g,n){var t=0,u=mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&this.createTimeout(4E4,mxUtils.bind(this,function(v){EditorUi.logEvent({category:"OPENAI-DIAGRAM",