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:
var T=null;null!=O&&0<O.length&&(T=O[0].getAttribute("href"));for(var W=1;W<J.length;W++)if(O=J[W].indexOf(")"),0<O){var V=Editor.trimCssUrl(J[W].substring(0,O));this.graph.isRelativeUrl(V)&&(V=null!=T?T+V:window.location.protocol+"//"+window.location.hostname+("/"==V.charAt(0)?"":m)+V);z.push('url("'+V+'"'+J[W].substring(O))}else z.push(J[W])}else z=[m]}return null!=z?z.join(""):null};Editor.prototype.mapFontUrl=function(m,z,J){/^https?:\/\//.test(z)&&!this.isCorsEnabledForUrl(z)&&(z=PROXY_URL+"?url="+
encodeURIComponent(z));J(m,z)};Editor.prototype.embedCssFonts=function(m,z){var J=m.split("url("),O=0;null==this.cachedFonts&&(this.cachedFonts={});var T=mxUtils.bind(this,function(){if(0==O){for(var X=[J[0]],Z=1;Z<J.length;Z++){var Y=J[Z].indexOf(")");X.push('url("');X.push(this.cachedFonts[Editor.trimCssUrl(J[Z].substring(0,Y))]);X.push('"'+J[Z].substring(Y))}z(X.join(""))}});if(0<J.length){for(m=1;m<J.length;m++){var W=J[m].indexOf(")"),V=null,Q=J[m].indexOf("format(",W);0<Q&&(V=Editor.trimCssUrl(J[m].substring(Q+