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,e,g,n){if(null!=b){var y=this.ui.editor.undoManager,q=y.history.slice(),E=y.indexOfNextAdd,N=this.ui.editor.graph;N.container.style.visibility="hidden";var T=this.changeListenerEnabled;this.changeListenerEnabled=g;var F=N.foldingEnabled,K=N.mathEnabled,R=N.cellRenderer.redraw;N.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)};N.model.beginUpdate();