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:
0)}}catch(O){this.handleError(O)}}),!0);var A=this.isSelectionAllowed;this.isSelectionAllowed=function(B){return mxEvent.getSource(B)==l?!0:A.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(d,f){mxSettings.setUi(d);(f=this.doSetCurrentTheme(d)||f)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(d){return""==d||"dark"==d||"default"==d||"kennedy"==d||null==d};EditorUi.prototype.doSetCurrentTheme=function(d,f,l){function u(O){return"simple"==
O||0==f&&"sketch"==O}f=null!=f?f:150;var A=Editor.currentTheme,B=u(A)&&this.isDefaultTheme(d)||this.isDefaultTheme(A)&&u(d),F=B&&"sketch"!=d&&"sketch"!=A;if(B&&!this.themeSwitching){Editor.currentTheme=d;this.themeSwitching=!0;var M=this.saveScrollState();mxUtils.setPrefixedStyle(this.container.style,"transition","all "+f+"ms ease-in-out");0==f&&(this.container.style.opacity="0");window.setTimeout(mxUtils.bind(this,function(){this.editor.graph.stopEditing(!1);this.container.style.opacity="0";window.setTimeout(mxUtils.bind(this,