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:
null!=V[l][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(V[l][EditorUi.DIFF_REMOVE],P)){f.refreshBackgroundImage();break}}}));var C=f.getBackgroundImageObject;f.getBackgroundImageObject=function(P,V){var l=C.apply(this,arguments);if(null!=l&&null!=l.originalSrc)if(!V)l={src:l.originalSrc};else if(V&&null!=this.themes&&"darkTheme"==this.defaultThemeName){var A=this.stylesheet,N=this.shapeForegroundColor,X=this.shapeBackgroundColor;this.stylesheet=this.getDefaultStylesheet();this.shapeBackgroundColor="#ffffff";
this.shapeForegroundColor="#000000";l=d.createImageForPageLink(l.originalSrc);this.shapeBackgroundColor=X;this.shapeForegroundColor=N;this.stylesheet=A}return l};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var F=d.editor.getEditBlankUrl;