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:
"mermaidData",JSON.stringify({data:J,config:z.config},null,2))}finally{g.getModel().endUpdate()}},function(O){d.handleError(O)})},null,null,400,220);d.showDialog(L.container,420,300,!0,!0);L.init()};var n=g.cellEditor.startEditing;g.cellEditor.startEditing=function(C,L){try{var m=this.graph.getAttributeForCell(C,"plantUmlData");if(null!=m)this.editPlantUmlData(C,L,m);else if(m=this.graph.getAttributeForCell(C,"mermaidData"),null!=m)this.editMermaidData(C,L,m);else{var z=g.getCellStyle(C);"1"==mxUtils.getValue(z,
"metaEdit","0")?d.showDataDialog(C):n.apply(this,arguments)}}catch(J){d.handleError(J)}};g.getLinkTitle=function(C){return d.getLinkTitle(C)};g.customLinkClicked=function(C){var L=!1;try{d.handleCustomLink(C),L=!0}catch(m){d.handleError(m)}return L};var q=g.parseBackgroundImage;g.parseBackgroundImage=function(C){var L=q.apply(this,arguments);null!=L&&null!=L.src&&Graph.isPageLink(L.src)&&(L={originalSrc:L.src});return L};var t=g.setBackgroundImage;g.setBackgroundImage=function(C){null!=C&&null!=C.originalSrc&&