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";