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:
EditorUi.parsePng=function(b,e,g){function n(N,T){var F=q;q+=T;return N.substring(F,q)}function y(N){N=n(N,4);return N.charCodeAt(3)+(N.charCodeAt(2)<<8)+(N.charCodeAt(1)<<16)+(N.charCodeAt(0)<<24)}var q=0;if(n(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(n(b,4),"IHDR"!=n(b,4))null!=g&&g();else{n(b,17);do{g=y(b);var E=n(b,4);if(null!=e&&e(q-8,E,g))break;value=n(b,g);n(b,4);if("IEND"==E)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);