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