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:
(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 x=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(L){L=null!=L?L:"";"1"==urlParams.dev&&(L+=(0<L.length?"&":"?")+"dev=1");return x.apply(this,arguments)};var C=e.addClickHandler;e.addClickHandler=function(L,U,g){var y=U;U=
function(H,O){if(null==O){var P=mxEvent.getSource(H);"a"==P.nodeName.toLowerCase()&&(O=P.getAttribute("href"))}null!=O&&e.isCustomLink(O)&&(mxEvent.isTouchEvent(H)||!mxEvent.isPopupTrigger(H))&&e.customLinkClicked(O)&&mxEvent.consume(H);null!=y&&y(H,O)};C.call(this,L,U,g)};v.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(e.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var I=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(L,U,g){e.isSelectionEmpty()&&