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=0;m<L.length;m++)if(null!=L[m][EditorUi.DIFF_UPDATE]&&null!=L[m][EditorUi.DIFF_UPDATE][C]||null!=L[m][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(L[m][EditorUi.DIFF_REMOVE],C)){g.refreshBackgroundImage();break}}}));var v=g.getBackgroundImageObject;g.getBackgroundImageObject=function(C,L){var m=v.apply(this,arguments);if(null!=m&&null!=m.originalSrc)if(!L)m={src:m.originalSrc};else if(L&&null!=this.themes&&"darkTheme"==this.defaultThemeName){var z=this.stylesheet,J=this.shapeForegroundColor,O=this.shapeBackgroundColor;
this.stylesheet=this.getDefaultStylesheet();this.shapeBackgroundColor="#ffffff";this.shapeForegroundColor="#000000";m=d.createImageForPageLink(m.originalSrc);this.shapeBackgroundColor=O;this.shapeForegroundColor=J;this.stylesheet=z}return m};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=