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:
"ready";x.postMessage(t,"*");if("json"==urlParams.proto){var B=this.editor.graph.openLink;this.editor.graph.openLink=function(I,A,S){B.apply(this,arguments);x.postMessage(JSON.stringify({event:"openLink",href:I,target:A,allowOpener:S}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,e,g,q){var p="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,t=document.createElement("button");t.setAttribute("title",c+(null!=g?" ("+g+")":""));t.style.marginLeft="6px";
mxUtils.write(t,c);p?(t.className=q?"gePrimaryBtn":"",t.style.marginLeft="8px",t.style.padding="6px"):t.className="geBigButton"+(q?"":" geBigStandardButton");mxEvent.addListener(t,"click",e);return t};EditorUi.prototype.addEmbedButtons=function(){var c=document.createElement("div");c.style.display="inline-flex";c.style.alignItems="center";c.style.marginLeft="auto";"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme&&(c.style.marginRight="66px",c.style["float"]=