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:
P.substring(0,11)?c.loadImage(P,mxUtils.bind(this,function(R){var U=!0,W=mxUtils.bind(this,function(){c.resizeImage(R,P,mxUtils.bind(this,function(Q,V,X){Q=U?Math.min(1,Math.min(c.maxImageSize/V,c.maxImageSize/X)):1;c.importFile(P,O,B,K,Math.round(V*Q),Math.round(X*Q),N,function(Y){c.spinner.stop();k.setSelectionCells(Y);k.scrollCellToVisible(k.getSelectionCell())})}),U)});P.length>c.resampleThreshold?c.confirmImageResize(function(Q){U=Q;W()}):W()}),mxUtils.bind(this,function(){c.handleError({message:mxResources.get("cannotOpenFile")})})):