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:
m.substring(0,34)||"https://fonts.googleapis.com/"===m.substring(0,29)||"https://fonts.gstatic.com/"===m.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var m=new mxUrlConverter;m.updateBaseUrl();var z=m.convert,J=this;m.convert=function(O){if(null!=O){var T="http://"==O.substring(0,7)||"https://"==O.substring(0,8);T&&!navigator.onLine?O=Editor.svgBrokenImage.src:!T||O.substring(0,m.baseUrl.length)==m.baseUrl||J.crossOriginImages&&J.isCorsEnabledForUrl(O)?"chrome-extension://"==
O.substring(0,19)||mxClient.IS_CHROMEAPP||(O=z.apply(this,arguments)):O=PROXY_URL+"?url="+encodeURIComponent(O)}return O};return m};Editor.createSvgDataUri=function(m){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(m)))};Editor.prototype.convertImageToDataUri=function(m,z){try{var J=!0,O=window.setTimeout(mxUtils.bind(this,function(){J=!1;z(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(m))mxUtils.get(m,mxUtils.bind(this,function(W){window.clearTimeout(O);J&&z(Editor.createSvgDataUri(W.getText()))}),