Language: JavaScript
Label: safe
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:
e.appendChild(N);e.appendChild(f);z.appendChild(e);var I=y,d,g,n=function(B,H,L,G){var T="data:"==B.substring(0,5);!b.isOffline()||T&&"undefined"===typeof chrome?0<B.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(B,function(p){b.spinner.stop();b.hideDialog();var q=!1===G?1:null!=H&&null!=L?Math.max(H/p.width,L/p.height):Math.min(1,Math.min(520/p.width,520/p.height));l&&(B=b.convertDataUri(B));c(B,Math.round(Number(p.width)*q),Math.round(Number(p.height)*q),I,d,g)},
function(){b.spinner.stop();c(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),c(B,null,null,I,d,g)):(B=b.convertDataUri(B),H=null==H?120:H,L=null==L?100:L,b.hideDialog(),c(B,H,L,I,d,g))},t=function(B,H){if(null!=B){var L=k?null:D.getModel().getGeometry(D.getSelectionCell());null!=L?n(B,L.width,L.height,H):n(B,null,null,H)}else b.hideDialog(),c(null)};this.init=function(){N.focus();if(Graph.fileSupport){N.setAttribute("placeholder",