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