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:
O,[L]);var R=e.model.getGeometry(L);null!=R&&(R=R.clone(),R.width=Math.max(R.width,P),R.height=Math.max(R.height,V),e.cellsResized([L],[R],!1));e.setAttributeForCell(L,"mermaidData",JSON.stringify({data:H,config:y.config},null,2))}finally{e.getModel().endUpdate()}},function(O){c.handleError(O)})},null,null,400,220);c.showDialog(U.container,420,300,!0,!0);U.init()};var k=e.cellEditor.startEditing;e.cellEditor.startEditing=function(L,U){try{var g=this.graph.getAttributeForCell(L,"plantUmlData");if(null!=
g)this.editPlantUmlData(L,U,g);else if(g=this.graph.getAttributeForCell(L,"mermaidData"),null!=g)this.editMermaidData(L,U,g);else{var y=e.getCellStyle(L);"1"==mxUtils.getValue(y,"metaEdit","0")?c.showDataDialog(L):k.apply(this,arguments)}}catch(H){c.handleError(H)}};e.getLinkTitle=function(L){return c.getLinkTitle(L)};e.customLinkClicked=function(L){var U=!1;try{c.handleCustomLink(L),U=!0}catch(g){c.handleError(g)}return U};var q=e.parseBackgroundImage;e.parseBackgroundImage=function(L){var U=q.apply(this,