Language: JavaScript
Label: safe
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:
Editor.extractGraphModelFromXref(W));null!=J&&(J=decodeURIComponent(J.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return J};Editor.extractGraphModelFromXref=function(l){var z=l.trailer,J=null;null!=z&&(z=/.* \/Info (\d+) (\d+) R/g.exec(z.join("\n")),null!=z&&0<z.length&&(z=l[z[1]],null!=z&&(z=/.* \/Subject (\d+) (\d+) R/g.exec(z.join("\n")),null!=z&&0<z.length&&(l=l[z[1]],null!=l&&(l=l.join("\n"),J=l.substring(1,l.length-1))))));return J};Editor.extractParserError=function(l,z){var J=null;l=null!=
l?l.getElementsByTagName("parsererror"):null;null!=l&&0<l.length&&(J=z||mxResources.get("invalidChars"),z=l[0].getElementsByTagName("div"),0<z.length&&(J=mxUtils.getTextContent(z[0])));return null!=J?mxUtils.trim(J):J};Editor.addRetryToError=function(l,z){null!=l&&(l=null!=l.error?l.error:l,null==l.retry&&(l.retry=z))};Editor.mermaidToDrawio=function(l,z,J){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(l,z,J)};Editor.configure=function(l){if(null!=l){Editor.config=l;Editor.configVersion=