Language: JavaScript
Label: vulnerable
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(),E=u.indexOfNextAdd,F=this.ui.editor.graph;F.container.style.visibility="hidden";var L=this.changeListenerEnabled;this.changeListenerEnabled=m;var N=F.foldingEnabled,H=F.mathEnabled,R=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());R.apply(this,arguments)};F.model.beginUpdate();