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