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:
U),Y.height=Math.max(Y.height,aa),f.cellsResized([P],[Y],!1));f.setAttributeForCell(P,"mermaidData",JSON.stringify({data:N,config:B.config},null,2))}finally{f.getModel().endUpdate()}},function(Z){d.handleError(Z)})},null,null,400,220);d.showDialog(V.container,420,300,!0,!0);V.init()};var k=f.cellEditor.startEditing;f.cellEditor.startEditing=function(P,V){try{var l=this.graph.getAttributeForCell(P,"plantUmlData");if(null!=l)this.editPlantUmlData(P,V,l);else if(l=this.graph.getAttributeForCell(P,"mermaidData"),
null!=l)this.editMermaidData(P,V,l);else{var B=f.getCellStyle(P);"1"==mxUtils.getValue(B,"metaEdit","0")?d.showDataDialog(P):k.apply(this,arguments)}}catch(N){d.handleError(N)}};f.getLinkTitle=function(P){return d.getLinkTitle(P)};f.customLinkClicked=function(P){var V=!1;try{d.handleCustomLink(P),V=!0}catch(l){d.handleError(l)}return V};var v=f.parseBackgroundImage;f.parseBackgroundImage=function(P){var V=v.apply(this,arguments);null!=V&&null!=V.src&&Graph.isPageLink(V.src)&&(V={originalSrc:V.src});