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:
DrawioFile.prototype.patch=function(b,f,l,d){if(null!=b){var q=this.ui.editor.undoManager,u=q.history.slice(),z=q.indexOfNextAdd,D=this.ui.editor.graph;D.container.style.visibility="hidden";var L=this.changeListenerEnabled;this.changeListenerEnabled=l;var K=D.foldingEnabled,E=D.mathEnabled,R=D.cellRenderer.redraw;D.cellRenderer.redraw=function(p){p.view.graph.isEditing(p.cell)&&(p.view.graph.scrollCellToVisible(p.cell),p.view.graph.cellEditor.resize());R.apply(this,arguments)};D.model.beginUpdate();