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:
d.pages.length:1:p.apply(this,arguments)};var q=null;this.addListener("fileDescriptorChanged",function(){var O=this.getCurrentFile();null!=O&&q!=O.getTitle()&&(q=null!=O.getTitle()?O.getTitle():this.defaultFilename,g.invalidateDescendantsWithPlaceholders(g.model.getRoot()),g.view.validate())});var C=g.labelLinkClicked;g.labelLinkClicked=function(O,N,T){var m=N.getAttribute("href");if(null==m||!g.isCustomLink(m)||!mxEvent.isTouchEvent(T)&&mxEvent.isPopupTrigger(T))C.apply(this,arguments);else{if(!g.isEnabled()||
null!=O&&g.isCellLocked(O.cell))g.customLinkClicked(m),g.getRubberband().reset();mxEvent.consume(T)}};this.editor.getOrCreateFilename=function(){var O=d.defaultFilename,N=d.getCurrentFile();null!=N&&(O=null!=N.getTitle()?N.getTitle():O);return O};var J=this.actions.get("print");J.setEnabled(!mxClient.IS_IOS||!navigator.standalone);J.visible=J.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",