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