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:
return""!=x};mxCellEditor.prototype.insertTab=function(x){var L=this.textarea.ownerDocument.defaultView.getSelection(),P=L.getRangeAt(0),X="\t";if(null!=x)for(X="";0<x;)X+=" ",x--;x=document.createElement("span");x.style.whiteSpace="pre";x.appendChild(document.createTextNode(X));P.insertNode(x);P.setStartAfter(x);P.setEndAfter(x);L.removeAllRanges();L.addRange(P)};mxCellEditor.prototype.alignText=function(x,L){var P=null!=L&&mxEvent.isShiftDown(L);if(P||null!=window.getSelection&&null!=window.getSelection().containsNode){var X=
!0;this.graph.processElements(this.textarea,function(ea){P||window.getSelection().containsNode(ea,!0)?(ea.removeAttribute("align"),ea.style.textAlign=null):X=!1});X&&this.graph.cellEditor.setAlign(x)}document.execCommand("justify"+x.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var x=window.getSelection();if(x.getRangeAt&&x.rangeCount){for(var L=[],P=0,X=x.rangeCount;P<X;++P)L.push(x.getRangeAt(P));return L}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();