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:
m)this.editPlantUmlData(K,R,m);else if(m=this.graph.getAttributeForCell(K,"mermaidData"),null!=m)this.editMermaidData(K,R,m);else{var A=g.getCellStyle(K);"1"==mxUtils.getValue(A,"metaEdit","0")?d.showDataDialog(K):n.apply(this,arguments)}}catch(M){d.handleError(M)}};g.getLinkTitle=function(K){return d.getLinkTitle(K)};g.customLinkClicked=function(K){var R=!1;try{d.handleCustomLink(K),R=!0}catch(m){d.handleError(m)}return R};var t=g.parseBackgroundImage;g.parseBackgroundImage=function(K){var R=t.apply(this,
arguments);null!=R&&null!=R.src&&Graph.isPageLink(R.src)&&(R={originalSrc:R.src});return R};var u=g.setBackgroundImage;g.setBackgroundImage=function(K){null!=K&&null!=K.originalSrc&&(K=d.createImageForPageLink(K.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",