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 x=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(K){K=null!=K?K:"";"1"==urlParams.dev&&(K+=(0<K.length?"&":"?")+"dev=1");return x.apply(this,arguments)};var B=e.addClickHandler;e.addClickHandler=function(K,O,V){var k=O;O=
function(y,G){if(null==G){var P=mxEvent.getSource(y);"a"==P.nodeName.toLowerCase()&&(G=P.getAttribute("href"))}null!=G&&e.isCustomLink(G)&&(mxEvent.isTouchEvent(y)||!mxEvent.isPopupTrigger(y))&&e.customLinkClicked(G)&&mxEvent.consume(y);null!=k&&k(y,G)};B.call(this,K,O,V)};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(K,O,V){e.isSelectionEmpty()&&