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:
f.appendChild(S);f.appendChild(m);G.appendChild(f);var J=F,c,e,k=function(x,C,I,B){var T="data:"==x.substring(0,5);!b.isOffline()||T&&"undefined"===typeof chrome?0<x.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(x,function(l){b.spinner.stop();b.hideDialog();var n=!1===B?1:null!=C&&null!=I?Math.max(C/l.width,I/l.height):Math.min(1,Math.min(520/l.width,520/l.height));v&&(x=b.convertDataUri(x));d(x,Math.round(Number(l.width)*n),Math.round(Number(l.height)*n),J,c,e)},
function(){b.spinner.stop();d(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),d(x,null,null,J,c,e)):(x=b.convertDataUri(x),C=null==C?120:C,I=null==I?100:I,b.hideDialog(),d(x,C,I,J,c,e))},q=function(x,C){if(null!=x){var I=u?null:M.getModel().getGeometry(M.getSelectionCell());null!=I?k(x,I.width,I.height,C):k(x,null,null,C)}else b.hideDialog(),d(null)};this.init=function(){S.focus();if(Graph.fileSupport){S.setAttribute("placeholder",