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:
(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var A=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(O){O=null!=O?O:"";"1"==urlParams.dev&&(O+=(0<O.length?"&":"?")+"dev=1");return A.apply(this,arguments)};var H=g.addClickHandler;g.addClickHandler=function(O,N,T){var m=N;N=