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,e,g,q,p){this.openDatabase(mxUtils.bind(this,function(t){try{p=p||"objects";Array.isArray(p)||(p=[p],c=[c],e=[e]);var x=t.transaction(p,"readwrite");x.oncomplete=g;x.onerror=q;for(t=0;t<p.length;t++)x.objectStore(p[t]).put(null!=c&&null!=c[t]?{key:c[t],data:e[t]}:e[t])}catch(B){null!=q&&q(B)}}),q)};EditorUi.prototype.removeDatabaseItem=function(c,e,g,q){this.openDatabase(mxUtils.bind(this,function(p){q=q||"objects";Array.isArray(q)||(q=[q],c=[c]);p=p.transaction(q,"readwrite");p.oncomplete=