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){f(I.result,M)});k?I.readAsDataURL(M.fileBlob):I.readAsText(M.fileBlob)}catch(d){c(d)}}}));z["catch"](mxUtils.bind(this,function(M){window.clearTimeout(D);E&&(E=!1,null==M||500!=M.status&&400!=M.status&&401!=M.status?c({message:mxResources.get("error")+" "+M.status}):(this.client.setAccessToken(null),this.setUser(null),b=null,y?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){x(!0)},c)})}):this.authenticate(function(){l(!0)},c)))}))}),