Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
DrawioFile.prototype.patch=function(b,e,g,p){if(null!=b){var y=this.ui.editor.undoManager,q=y.history.slice(),E=y.indexOfNextAdd,M=this.ui.editor.graph;M.container.style.visibility="hidden";var T=this.changeListenerEnabled;this.changeListenerEnabled=g;var F=M.foldingEnabled,K=M.mathEnabled,R=M.cellRenderer.redraw;M.cellRenderer.redraw=function(W){W.view.graph.isEditing(W.cell)&&(W.view.graph.scrollCellToVisible(W.cell),W.view.graph.cellEditor.resize());R.apply(this,arguments)};M.model.beginUpdate();