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:
function(d,g,n){var q=window.open("about:blank");null==q||null==q.document?mxUtils.popup(d,!0):("image/svg+xml"!=g||mxClient.IS_SVG?"image/svg+xml"!=g||n?(d=n?d:btoa(unescape(encodeURIComponent(d))),q.document.write('<html><img style="max-width:100%;" src="data:'+g+";base64,"+d+'"/></html>')):q.document.write("<html>"+d+"</html>"):q.document.write("<html><pre>"+mxUtils.htmlEntities(d,!1)+"</pre></html>"),q.document.close())};var c=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=