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:
f.appendChild(R);f.appendChild(m);H.appendChild(f);var J=F,c,e,g=function(x,B,I,A){var S="data:"==x.substring(0,5);!b.isOffline()||S&&"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===A?1:null!=B&&null!=I?Math.max(B/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),B=null==B?120:B,I=null==I?100:I,b.hideDialog(),d(x,B,I,J,c,e))},q=function(x,B){if(null!=x){var I=u?null:N.getModel().getGeometry(N.getSelectionCell());null!=I?g(x,I.width,I.height,B):g(x,null,null,B)}else b.hideDialog(),d(null)};this.init=function(){R.focus();if(Graph.fileSupport){R.setAttribute("placeholder",