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