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:
p,mxUtils.bind(this,function(Y,ba,fa){Y=X?Math.min(1,Math.min(c.maxImageSize/ba,c.maxImageSize/fa)):1;c.importFile(p,z,T,O,Math.round(ba*Y),Math.round(fa*Y),I,function(aa){c.spinner.stop();k.setSelectionCells(aa);k.scrollCellToVisible(k.getSelectionCell())})}),X)});p.length>c.resampleThreshold?c.confirmImageResize(function(Y){X=Y;Z()}):Z()}),mxUtils.bind(this,function(){c.handleError({message:mxResources.get("cannotOpenFile")})})):c.importFile(p,z,T,O,0,0,I,function(W){c.spinner.stop();k.setSelectionCells(W);