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:
parseInt(ca.value))))}function R(Qa){function Fa(Aa,Ja,Na,ra){var Ha=Aa.useCssTransforms,La=Aa.currentTranslate,Xa=Aa.currentScale,Sa=Aa.view.translate,Ta=Aa.view.scale;Aa.useCssTransforms&&(Aa.useCssTransforms=!1,Aa.currentTranslate=new mxPoint(0,0),Aa.currentScale=1,Aa.view.translate=new mxPoint(0,0),Aa.view.scale=1);var Pa=Aa.getGraphBounds(),Oa=0,Ya=0,Wa=Ea.get(),ab=1/Aa.pageScale,$a=Ca.checked;if($a){ab=parseInt(sa.value);var gb=parseInt(va.value);ab=Math.min(Wa.height*gb/(Pa.height/Aa.view.scale),
Wa.width*ab/(Pa.width/Aa.view.scale))}else ab=parseInt(Ba.value)/(100*Aa.pageScale),isNaN(ab)&&(Ra=1/Aa.pageScale,Ba.value="100 %");Wa=mxRectangle.fromRectangle(Wa);Wa.width=Math.ceil(Wa.width*Ra);Wa.height=Math.ceil(Wa.height*Ra);ab*=Ra;!$a&&Aa.pageVisible?(Pa=Aa.getPageLayout(),Oa-=Pa.x*Wa.width,Ya-=Pa.y*Wa.height):$a=!0;ra=null!=ra?"page/id,"+ra:null;if(null==Ja){Ja=PrintDialog.createPrintPreview(Aa,ab,Wa,0,Oa,Ya,$a);Ja.pageSelector=!1;Ja.mathEnabled=!1;ma.checked&&(Ja.isCellVisible=function(Za){return Aa.isCellSelected(Za)});