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:
T)this.editPlantUmlData(O,N,T);else if(T=this.graph.getAttributeForCell(O,"mermaidData"),null!=T)this.editMermaidData(O,N,T);else{var m=g.getCellStyle(O);"1"==mxUtils.getValue(m,"metaEdit","0")?d.showDataDialog(O):n.apply(this,arguments)}}catch(B){d.handleError(B)}};g.getLinkTitle=function(O){return d.getLinkTitle(O)};g.customLinkClicked=function(O){var N=!1;try{d.handleCustomLink(O),N=!0}catch(T){d.handleError(T)}return N};var t=g.parseBackgroundImage;g.parseBackgroundImage=function(O){var N=t.apply(this,
arguments);null!=N&&null!=N.src&&Graph.isPageLink(N.src)&&(N={originalSrc:N.src});return N};var u=g.setBackgroundImage;g.setBackgroundImage=function(O){null!=O&&null!=O.originalSrc&&(O=d.createImageForPageLink(O.originalSrc,d.currentPage,this));u.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",