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:
EditorUi.prototype.getPngFileProperties=function(c){var e=1,k=0;if(null!=c){if(c.hasAttribute("scale")){var q=parseFloat(c.getAttribute("scale"));!isNaN(q)&&0<q&&(e=q)}c.hasAttribute("border")&&(q=parseInt(c.getAttribute("border")),!isNaN(q)&&0<q&&(k=q))}return{scale:e,border:k}};EditorUi.prototype.getEmbeddedPng=function(c,e,k,q,p){try{var t=this.editor.graph,x=null!=t.themes&&"darkTheme"==t.defaultThemeName,C=null;if(null!=k&&0<k.length)t=this.createTemporaryGraph(x?t.getDefaultStylesheet():t.getStylesheet()),