Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
1),"image/png");d=new ClipboardItem({"image/png":t,"text/html":new Blob(['<img src="'+d+'" width="'+g+'" height="'+n+'">'],{type:"text/html"})});navigator.clipboard.write([d])["catch"](q)};EditorUi.prototype.copyCells=function(d,g){var n=this.editor.graph;if(n.isSelectionEmpty())d.innerText="";else{var q=mxUtils.sortCells(n.model.getTopmostCells(n.getSelectionCells())),t=mxUtils.getXml(n.encodeCells(q));mxUtils.setTextContent(d,encodeURIComponent(t));g?(n.removeCells(q,!1),n.lastPasteXml=null):(n.lastPasteXml=
t,n.pasteCounter=0);d.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var d=null;if(Editor.enableNativeCipboard){var g=this.editor.graph;g.isSelectionEmpty()||(d=mxUtils.sortCells(g.getExportableCells(g.model.getTopmostCells(g.getSelectionCells()))),g=mxUtils.getXml(g.encodeCells(d)),navigator.clipboard.writeText(g))}return d};EditorUi.prototype.pasteXml=function(d,g,n,q,t){var x=this.editor.graph,B=null;x.lastPasteXml==d?x.pasteCounter++:(x.lastPasteXml=