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,f,c){if(null!=b){var k=this.ui.editor.undoManager,l=k.history.slice(),x=k.indexOfNextAdd,y=this.ui.editor.graph;y.container.style.visibility="hidden";var E=this.changeListenerEnabled;this.changeListenerEnabled=f;var D=y.foldingEnabled,z=y.mathEnabled,M=y.cellRenderer.redraw;y.cellRenderer.redraw=function(I){I.view.graph.isEditing(I.cell)&&(I.view.graph.scrollCellToVisible(I.cell),I.view.graph.cellEditor.resize());M.apply(this,arguments)};y.model.beginUpdate();