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,f,m,d){if(null!=b){var u=this.ui.editor.undoManager,v=u.history.slice(),D=u.indexOfNextAdd,F=this.ui.editor.graph;F.container.style.visibility="hidden";var K=this.changeListenerEnabled;this.changeListenerEnabled=m;var M=F.foldingEnabled,G=F.mathEnabled,S=F.cellRenderer.redraw;F.cellRenderer.redraw=function(J){J.view.graph.isEditing(J.cell)&&(J.view.graph.scrollCellToVisible(J.cell),J.view.graph.cellEditor.resize());S.apply(this,arguments)};F.model.beginUpdate();