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(){null!=t&&(t(),t=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(S,l,n){B=!1;if(null!=S){if("data:image/"==S.substring(0,11)){var z=S.indexOf(",");0<z&&(S=S.substring(0,z)+";base64,"+S.substring(z+1))}F(S,null,0,0,l,n);c.scrollTop=c.scrollHeight}})});f.setAttribute("id","btnAddImageUrl");f.className="geBtn";d.appendChild(f);this.saveBtnClickHandler=function(S,l,n,z){b.saveLibrary(S,l,n,z)};f=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=t&&