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:
function(){d.showDialog((new PluginsDialog(d)).container,380,240,!0,!1)});H=d.actions.addAction("search",function(){var f=d.sidebar.isEntryVisible("search");d.sidebar.showPalette("search",!f);isLocalStorage&&(mxSettings.settings.search=!f,mxSettings.save())});H.label=mxResources.get("searchShapes");H.setToggleAction(!0);H.setSelectedCallback(function(){return d.sidebar.isEntryVisible("search")});d.actions.get("clearDefaultStyle").funct=function(f){q.isEnabled()&&(d.clearDefaultStyle(),Editor.sketchMode&&
d.setSketchMode(!1))};"1"==urlParams.embed&&(d.actions.get("save").funct=function(f){q.isEditing()&&q.stopEditing();var u="0"!=urlParams.pages||null!=d.pages&&1<d.pages.length?d.getFileData(!0):mxUtils.getXml(d.editor.getGraphXml());if("json"==urlParams.proto){var D=d.createLoadMessage("save");D.xml=u;f&&(D.exit=!0);u=JSON.stringify(D)}(window.opener||window.parent).postMessage(u,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(d.editor.modified=!1,d.editor.setStatus(""));f=d.getCurrentFile();