Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
("zTXt"==z?String.fromCharCode(0):"")+O;O=4294967295;O=Editor.updateCRC(O,z,0,4);O=Editor.updateCRC(O,J,0,J.length);T+=Q(J.length)+z+J+Q(O^4294967295);T+=m.substring(X-8,m.length);break}T+=m.substring(X-8,X-4+Z);W(m,Z);W(m,4)}while(Z);return"data:image/png;base64,"+(window.btoa?btoa(T):Base64.encode(T,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var x=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(m,z){x.apply(this,
arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var E=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(m,z){var J=null;null!=m.editor.graph.getModel().getParent(z)?J=z.getId():null!=m.currentPage&&(J=m.currentPage.getId());return J});if(null!=window.StyleFormatPanel){var D=