code
stringlengths
14
2.05k
label
int64
0
1
programming_language
stringclasses
7 values
cwe_id
stringlengths
6
14
cwe_name
stringlengths
5
98
description
stringlengths
36
379
url
stringlengths
36
48
label_name
stringclasses
2 values
type:"bool",getDefaultValue:function(k,y){k=y.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,"resizeLastRow","0")},isVisible:function(k,y){y=y.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&y.isTable(k.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(k,y){k=y.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
return P==M||0==G.length?H(D,M):Q==U?N(D):L(D,M!=mxConstants.DIRECTION_NORTH&&M!=mxConstants.DIRECTION_WEST)}return S.apply(this,arguments)};e.getSubtree=function(D){var M=[D];!u(D)&&!d(D)||E(D)||e.traverse(D,!0,function(K,O){var V=null!=O&&e.isTreeEdge(O);V&&0>mxUtils.indexOf(M,O)&&M.push(O);(null==O||V)&&0>mxUtils.indexOf(M,K)&&M.push(K);return null==O||V});return M};var l=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){l.apply(this,arguments);(u(this.state.cell)||d(this.state.cell))&&
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
u.model.isVertex(l)&&u.isAutoSizeCell(l)&&u.updateCellSize(l)}finally{u.getModel().endUpdate()}u.scrollCellToVisible(l);u.setSelectionCell(l);u.container.focus();u.editAfterInsert&&u.startEditing(l);window.setTimeout(function(){null!=d.hoverIcons&&d.hoverIcons.update(u.view.getState(l))},0);return l},B=function(l,n,z,C,D){l=new mxCell(l,new mxGeometry(0,0,n,z),C);l.vertex=!0;null==D&&(D=u.getCenterInsertPoint(u.getBoundingBoxFromGeometry([l],!0)));l.geometry.x=D.x;l.geometry.y=D.y;return x(l)};d.actions.put("insertText",
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.convertImages=function(c,e,g,q){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,e,g,q)};EditorUi.prototype.convertImageToDataUri=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,e)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,e,g,q){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Graph.prototype.setHiddenTags=function(k){this.hiddenTags=k;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(k){var y=mxUtils.indexOf(this.hiddenTags,k);0>y?this.hiddenTags.push(k):0<=y&&this.hiddenTags.splice(y,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(k){if(null==k||0==k.length||0==this.hiddenTags.length)return!1;k=k.split(" ");if(k.length>this.hiddenTags.length)return!1;for(var y=0;y<k.length;y++)if(0> mxUtils.indexOf(this.hiddenTags,k[y]))return!1;return!0};Graph.prototype.getCellsForTags=function(k,y,G,P){var Q=[];if(null!=k){y=null!=y?y:this.model.getDescendants(this.model.getRoot());for(var U=0,T={},W=0;W<k.length;W++)0<k[W].length&&(T[k[W]]=!0,U++);for(W=0;W<y.length;W++)if(G&&this.model.getParent(y[W])==this.model.root||this.model.isVertex(y[W])||this.model.isEdge(y[W])){var X=this.getTagsForCell(y[W]),Y=!1;if(0<X.length&&(X=X.split(" "),X.length>=k.length)){for(var Z=Y=0;Z<X.length&&Y<U;Z++)null!=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
var CreateDialog=function(b,f,m,d,u,v,E,F,L,N,H,R,J,c,e,g,q){function p(n,z,C,D){function M(){mxEvent.addListener(K,"click",function(){var G=C;if(E){var P=B.value,Q=P.lastIndexOf(".");if(0>f.lastIndexOf(".")&&0>Q){G=null!=G?G:l.value;var U="";G==App.MODE_GOOGLE?U=b.drive.extension:G==App.MODE_GITHUB?U=b.gitHub.extension:G==App.MODE_GITLAB?U=b.gitLab.extension:G==App.MODE_TRELLO?U=b.trello.extension:G==App.MODE_DROPBOX?U=b.dropbox.extension:G==App.MODE_ONEDRIVE?U=b.oneDrive.extension:G==App.MODE_DEVICE&& (U=".drawio");0<=Q&&(P=P.substring(0,Q));B.value=P+U}}t(C)})}var K=document.createElement("a");K.style.overflow="hidden";var O=document.createElement("img");O.src=n;O.setAttribute("border","0");O.setAttribute("align","absmiddle");O.style.width="60px";O.style.height="60px";O.style.paddingBottom="6px";K.style.display="inline-block";K.className="geBaseButton";K.style.position="relative";K.style.margin="4px";K.style.padding="8px 8px 10px 8px";K.style.whiteSpace="nowrap";K.appendChild(O);K.style.color=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,e,g){var q=null==c||null==e;g=null!=g?g:24;var p=new Spinner({lines:12,length:g,width:Math.round(g/3),radius:Math.round(g/2),rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),t=p.spin;p.spin=function(B,I){var A=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
W){var ba=Q.getGlobalVariable;Q=this.createTemporaryGraph(Q.getStylesheet());for(var da,qa=0;qa<this.pages.length;qa++)if(this.pages[qa].getId()==W){da=this.updatePageRoot(this.pages[qa]);break}null==da&&(da=this.currentPage);Q.getGlobalVariable=function(wa){return"page"==wa?da.getName():"pagenumber"==wa?1:ba.apply(this,arguments)};document.body.appendChild(Q.container);Q.model.setRoot(da.root)}if(null!=A.layerIds){var ka=Q.model,Aa=ka.getChildCells(ka.getRoot()),xa={};for(qa=0;qa<A.layerIds.length;qa++)xa[A.layerIds[qa]]=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
return S};EditorUi.prototype.getXmlFileData=function(c,e,g,q){c=null!=c?c:!0;e=null!=e?e:!1;g=null!=g?g:!Editor.defaultCompressed;var p=this.editor.getGraphXml(c,q);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(I){var A=I.getElementsByTagName("mxGraphModel");A=0<A.length?A[0]:null;null==A&&g?(A=mxUtils.trim(mxUtils.getTextContent(I)),I=I.cloneNode(!1),0<A.length&&(A=Graph.decompress(A),null!=A&&0<A.length&&I.appendChild(mxUtils.parseXml(A).documentElement))):null==A||g?I=I.cloneNode(!0): (I=I.cloneNode(!1),mxUtils.setTextContent(I,Graph.compressNode(A)));p.appendChild(I)},EditorUi.removeChildNodes(this.currentPage.node),mxUtils.setTextContent(this.currentPage.node,Graph.compressNode(p)),p=this.fileNode.cloneNode(!1),e)c(this.currentPage.node);else for(e=0;e<this.pages.length;e++){var t=this.pages[e],x=t.node;if(t!=this.currentPage)if(t.needsUpdate){var B=new mxCodec(mxUtils.createXmlDocument());B=B.encode(new mxGraphModel(t.root));this.editor.graph.saveViewState(t.viewState,B,null,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
E,v)}catch(F){null!=d&&d(F)}else null!=d&&d()}),["filesInfo","files"])}catch(F){null!=d&&d(F)}});this.isRenamable()&&"."==b.charAt(0)&&null!=d?d({message:mxResources.get("invalidName")}):StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(v){this.isRenamable()&&this.getTitle()!=b&&null!=v?this.ui.confirm(mxResources.get("replaceIt",[b]),u,d):u()}),d)}else null!=m&&m()};
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.getImageForPage=function(b,f,m){m=null!=m?m:this.editor.graph;var d=m.getGlobalVariable,u=this.createTemporaryGraph(m.getStylesheet());u.defaultPageBackgroundColor=m.defaultPageBackgroundColor;u.shapeBackgroundColor=m.shapeBackgroundColor;u.shapeForegroundColor=m.shapeForegroundColor;var v=this.getPageIndex(null!=f?f:this.currentPage);u.getGlobalVariable=function(F){return"pagenumber"==F?v+1:"page"==F&&null!=f?f.getName():d.apply(this,arguments)};document.body.appendChild(u.container); this.updatePageRoot(b);u.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText="";m=u.getSvg(null,null,null,null,null,null,null,null,null,null,null,!0);var E=u.getGraphBounds();document.body.removeChild(u.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(m)),E.width,E.height,E.x,E.y)};
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
var D=0,M=0,K=J.geometry,O=mxUtils.format((C.geometry.x+3-K.x)/K.width);C=mxUtils.format((C.geometry.y+3-K.y)/K.height);0>O?(D=O*K.width,O=0):1<O&&(D=(O-1)*K.width,O=1);0>C?(M=C*K.height,C=0):1<C&&(M=(C-1)*K.height,C=1);return{x:O,y:C,dx:parseInt(D),dy:parseInt(M)}}function N(C){if(1==R.getSelectionCount()){var D=R.getSelectionCell();C&&(D.constObj=null);C=L(D);S.value=100*C.x;n.value=100*C.y;l.value=C.dx;z.value=C.dy;A.style.visibility=""}else A.style.visibility="hidden"}var H=document.createElement("div");
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,e,g){return this.editor.graph.openLink(c,e,g)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,e){e(localStorage.getItem(c))};EditorUi.prototype.setLocalData=function(c,e,g){localStorage.setItem(c,e);null!=g&&g()};EditorUi.prototype.removeLocalData=function(c,e){localStorage.removeItem(c);
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,x,null,1<B,I,q,t,p);B=this.isServices(B)?4<B?390:280:160;this.showDialog(c.container,420,B,!0,!0);c.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,e,g,q,p,t){};EditorUi.prototype.pickFolder=function(c,e,g){e(null)};EditorUi.prototype.exportSvg=function(c,e,g,q,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
g){g=null!=g?g:c.name;var q=new FileReader;q.onload=mxUtils.bind(this,function(){this.parseFileData(q.result,e,g)});q.readAsText(c)};EditorUi.prototype.parseFileData=function(c,e,g){var q=new XMLHttpRequest;q.open("POST",OPEN_URL);q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q.onreadystatechange=function(){e(q)};q.send("format=xml&filename="+encodeURIComponent(g)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(p){}};
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
za.push(ea[Ca]);T.setSelectionCells(za)}function Q(ea){T.setHiddenTags(ea?[]:W.slice());P();T.refresh()}function U(ea,za){Y.innerText="";if(0<ea.length){var Ca=document.createElement("table");Ca.setAttribute("cellpadding","2");Ca.style.boxSizing="border-box";Ca.style.tableLayout="fixed";Ca.style.width="100%";var Ba=document.createElement("tbody");if(null!=ea&&0<ea.length)for(var ba=0;ba<ea.length;ba++)(function(da){function qa(){var pa=T.getCellsForTags([da],null,null,!0);T.isEnabled()?T.setSelectionCells(pa):
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(k){var y=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?y="mxgraph.er":"sysML"==k.substring(0,5)&&(y="mxgraph.sysml"));return y};var D=mxMarker.createMarker;mxMarker.createMarker=function(k,y,G,P,Q,U,T,W,X,Y){if(null!=G&&null==mxMarker.markers[G]){var Z=this.getPackageForType(G);null!=Z&& mxStencilRegistry.getStencil(Z)}return D.apply(this,arguments)};var M=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,y,G,P,Q,U){"1"==mxUtils.getValue(y.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(y.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return M.apply(this,arguments)};PrintDialog.prototype.create=function(k,y){function G(){ha.value=Math.max(1,Math.min(W,Math.max(parseInt(ha.value),parseInt(ca.value))));ca.value=Math.max(1,Math.min(W,Math.min(parseInt(ha.value),
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
DrawioFileSync.prototype.cleanup=function(b,f,m){window.clearTimeout(this.cleanupThread);if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()&&!this.file.isModified()){var d=[this.ui.diffPages(this.ui.pages,this.file.ownPages)];this.file.theirPages=this.ui.clonePages(this.file.ownPages);this.file.ignorePatches(d)||this.file.patch(d);EditorUi.debug("DrawioFileSync.cleanup",[this],"patches",d,"checkFile",m);m?this.file.getLatestVersion(mxUtils.bind(this,function(u){try{if(this.isValidState()&& !this.file.inConflictState&&this.file.isRealtime()){var v=this.ui.getPagesForXml(u.data);d=[this.ui.diffPages(this.ui.pages,v),this.ui.diffPages(v,this.file.ownPages)];this.file.ignorePatches(d)||this.file.patch(d);EditorUi.debug("DrawioFileSync.cleanup",[this],"newFile",u,"patches",d)}null!=b&&b()}catch(E){null!=f&&f(E)}}),f):null!=b&&b()}else null!=b&&(b(),EditorUi.debug("DrawioFileSync.cleanup",[this],"checkFile",m,"modified",this.file.isModified()))};
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,f,m,d,u,v,E,F,L,N,H){var R=document.createElement("div");R.style.textAlign="center";H=null!=H?H:44;var J=document.createElement("div");J.style.padding="6px";J.style.overflow="auto";J.style.maxHeight=H+ "px";J.style.lineHeight="1.2em";mxUtils.write(J,f);R.appendChild(J);null!=N&&(J=document.createElement("div"),J.style.padding="6px 0 6px 0",f=document.createElement("img"),f.setAttribute("src",N),J.appendChild(f),R.appendChild(J));N=document.createElement("div");N.style.textAlign="center";N.style.whiteSpace="nowrap";var c=document.createElement("input");c.setAttribute("type","checkbox");v=mxUtils.button(v||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d(c.checked)});v.className="geBtn"; null!=F&&(v.innerHTML=F+"<br>"+v.innerHTML,v.style.paddingBottom="8px",v.style.paddingTop="8px",v.style.height="auto",v.style.width="40%");b.editor.cancelFirst&&N.appendChild(v);var e=mxUtils.button(u||mxResources.get("ok"),function(){b.hideDialog();null!=m&&m(c.checked)});N.appendChild(e);null!=E?(e.innerHTML=E+"<br>"+e.innerHTML+"<br>",e.style.paddingBottom="8px",e.style.paddingTop="8px",e.style.height="auto",e.className="geBtn",e.style.width="40%"):e.className="geBtn gePrimaryBtn";b.editor.cancelFirst|| N.appendChild(v);R.appendChild(N);L?(N.style.marginTop="10px",J=document.createElement("p"),J.style.marginTop="20px",J.style.marginBottom="0px",J.appendChild(c),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberThisSetting")),J.appendChild(u),R.appendChild(J),mxEvent.addListener(u,"click",function(g){c.checked=!c.checked;mxEvent.consume(g)})):N.style.marginTop="12px";this.init=function(){e.focus()};this.container=R},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var z=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(D){z.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=D?"":"none")};var C=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(D,M){C.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var m=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
App.loadScripts=function(b,f,m){for(var d=b.length,u=!1,v=0;v<b.length;v++)mxscript(b[v],function(){0!=--d||u||null==f||f()},null,null,null,function(E){u=!0;null!=m&&m(Error(E))})};
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(k){if(null!=k){Editor.prototype.fontCss=k;var y=document.getElementsByTagName("script")[0];if(null!=y&&null!=y.parentNode){var G=document.createElement("style");G.setAttribute("type","text/css");G.appendChild(document.createTextNode(k));y.parentNode.insertBefore(G,y);k=k.split("url(");for(G=1;G<k.length;G++){var P=k[G].indexOf(")");P=Editor.trimCssUrl(k[G].substring(0, P));var Q=document.createElement("link");Q.setAttribute("rel","preload");Q.setAttribute("href",P);Q.setAttribute("as","font");Q.setAttribute("crossorigin","");y.parentNode.insertBefore(Q,y)}}}};Editor.trimCssUrl=function(k){return k.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(k){k=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
F.getGlobalVariable=function(W){return"page"==W&&null!=N&&null!=N[H]?N[H].getAttribute("name"):"pagenumber"==W?H+1:"pagecount"==W?null!=N?N.length:1:R.apply(this,arguments)};F.getLinkForCell=function(){return null};Editor.MathJaxRender&&F.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(W,X){b.editor.graph.mathEnabled&&Editor.MathJaxRender(F.container)}));var J={lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.4,trail:60,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
K);var k=e.getModel().getGeometry(O);null!=k&&null!=k.points&&0<k.points.length&&this.addMenuItems(K,["clearWaypoints"],null,V)}1==e.getSelectionCount()&&this.addMenuItems(K,["enterGroup"],null,V);k=c.getSelectionState();null!=k.mergeCell?this.addMenuItem(K,"mergeCells"):(1<k.style.colspan||1<k.style.rowspan)&&this.addMenuItem(K,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"")+"/log?severity="+t+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(g)+(null!=q?":colno:"+encodeURIComponent(q):"")+(""!=p.stack?"&stack="+encodeURIComponent(p.stack):""))}catch(B){}try{x||null==window.console||console.error(t,c,e,g,q,p)}catch(B){}}};EditorUi.logEvent=function(c){if("1"==urlParams.dev)EditorUi.debug("logEvent",c);else if(EditorUi.enableLogging)try{var e=null!=window.DRAWIO_LOG_URL? window.DRAWIO_LOG_URL:"";(new Image).src=e+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=c?"&data="+encodeURIComponent(JSON.stringify(c)):"")}catch(g){}};EditorUi.sendReport=function(c,e){if("1"==urlParams.dev)EditorUi.debug("sendReport",c);else if(EditorUi.enableLogging)try{e=null!=e?e:5E4,c.length>e&&(c=c.substring(0,e)+"\n...[SHORTENED]"),mxUtils.post("/email","version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(c))}catch(g){}};
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
O.spin(da);var la=function(ma,oa,fa){K=0;O.stop();Ha=ma;fa=fa||{};var ja=0,sa;for(sa in fa)ja+=fa[sa].length;if(oa)da.innerText=oa;else if(0==ma.length&&0==ja)da.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(da.innerText="",0<ja){wa.style.display="";da.style.left="160px";wa.innerText="";Da=0;ua={"draw.io":ma};for(sa in fa)ua[sa]=fa[sa];l()}else t(!0)};aa?J(Z.value,la):R(la)};R&&(n=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){Y()}),g.appendChild(n),Q.push(n));
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
u.nextSibling,u.parentNode.removeChild(u),u=d;null!=u;){d=u.nextSibling;if(u.nodeType==mxConstants.NODETYPE_ELEMENT){var v=u.getAttribute("id");null==f.lookup(v)&&f.decodeCell(u)}u.parentNode.removeChild(u);u=d}}return m};b.afterDecode=function(f,m,d){d.index=d.previousIndex;return d};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(d,u,v,E,F){u=null!=u?u:!1;null==v&&(v=this.getFoldableCells(this.getSelectionCells(),d));this.stopEditing();this.model.beginUpdate();try{for(var L=v.slice(),N=0;N<v.length;N++)"1"==mxUtils.getValue(this.getCurrentCellStyle(v[N]),"treeFolding","0")&&this.foldTreeCell(d,v[N]);v=L;v=b.apply(this,arguments)}finally{this.model.endUpdate()}return v};Graph.prototype.foldTreeCell=function(d,u){this.model.beginUpdate();try{var v=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(g,q,p){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(p.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(t){q.fireEvent(new mxEventObject("pointerdown","event",t,"state",g))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(p.node,"touchstart",function(t){q.fireEvent(new mxEventObject("pointerdown","event",t,"state",g))})};v.getAllConnectionConstraints=function(){return null};v.connectionHandler.marker.highlight.keepOnTop=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
null,null,null,!0,null,null,p,g,q);this.showDialog(c.container,620,460,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=function(c,e,g,q){c=null!=c?c:mxUtils.bind(this,function(p,t,x,B){t||(p=new ChangePageSetup(this,q?x:null,p),p.ignoreColor=!q,null!=B&&q&&(p.shadowVisible=B),this.editor.graph.model.execute(p))});c=new BackgroundImageDialog(this,c,e,g,q);this.showDialog(c.container,400,q?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,e,g,q,p){c=new LibraryDialog(this, c,e,g,q,p);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(t){t&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));c.init()};var m=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var e=m.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(g){this.editor.graph.isSelectionEmpty()&&e.refresh()}));return e};EditorUi.prototype.handleError=function(c,e,g,q,p,t,x){var B=null!=this.spinner&&
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(z){H=z};this.setAutoScroll=function(z){R=z};this.setOpenFill=function(z){J=z};this.setStopClickEnabled=function(z){g=z};this.setSelectInserted=function(z){q=z};this.setSmoothing=function(z){m=z};this.setPerfectFreehandMode=function(z){t=z};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(z){p.size=z};this.getBrushSize=function(){return p.size};var x=function(z){e=z;b.getRubberband().setEnabled(!z);b.graphHandler.setSelectEnabled(!z);b.graphHandler.setMoveEnabled(!z);
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
typeof window.mxUtilsBinaryToArray){Z=mxUtilsBinaryToArray(Z.request.responseBody).toArray();ca=Array(Z.length);for(var ha=0;ha<Z.length;ha++)ca[ha]=String.fromCharCode(Z[ha]);ca=ca.join("")}U=null!=U?U:"data:image/png;base64,";ca=U+Editor.base64Encode(ca)}y(ca)}}else null!=G&&(0==Z.getStatus()?G({message:mxResources.get("accessDenied")},Z):404==Z.getStatus()?G({code:Z.getStatus()},Z):G({message:mxResources.get("error")+" "+Z.getStatus()},Z))}),function(Z){null!=G&&G({message:mxResources.get("error")+
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.editor.setStatus(""),c?e.reloadFile(mxUtils.bind(this,function(){e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(g){e.handleFileError(g,!0)})):e.synchronizeFile(mxUtils.bind(this,function(){e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(g){e.handleFileError(g,!0)}))))};EditorUi.prototype.getFileData=function(c,e,g,q,p,t,x,B,I,A,S){p=null!=p?p:!0;t=null!=t?t:!1;A=null!=A?A:!Editor.defaultCompressed;var l=this.editor.graph;if(e||!c&&null!= I&&/(\.svg)$/i.test(I.getTitle())){var n=null!=l.themes&&"darkTheme"==l.defaultThemeName;if(n||null!=this.pages&&this.currentPage!=this.pages[0]){var z=l.getGlobalVariable;l=this.createTemporaryGraph(n?l.getDefaultStylesheet():l.getStylesheet());l.setBackgroundImage=this.editor.graph.setBackgroundImage;l.background=this.editor.graph.background;var C=null!=this.pages?this.pages[0]:null;null==C||this.currentPage==C?l.setBackgroundImage(this.editor.graph.backgroundImage):null!=C.viewState&&null!=C.viewState&& l.setBackgroundImage(C.viewState.backgroundImage);l.getGlobalVariable=function(D){return"page"==D&&null!=C?C.getName():"pagenumber"==D?1:z.apply(this,arguments)};document.body.appendChild(l.container);null!=C&&l.model.setRoot(C.root)}}x=null!=x?x:this.getXmlFileData(p,t,A,S);I=null!=I?I:this.getCurrentFile();c=this.createFileData(x,l,I,window.location.href,c,e,g,q,p,B,A);l!=this.editor.graph&&l.container.parentNode.removeChild(l.container);return c};EditorUi.prototype.getHtml=function(c,e,g,q,p,t){t=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxUtils.getTextContent(Z[Y]);U=b.stringToCells(Graph.decompress(y));var ca=b.editor.graph.getBoundingBoxFromGeometry(U);F(null,null,0,0,0,0,{xml:y,w:ca.width,h:ca.height})}C=!0}}catch(ha){null!=window.console&&console.log("Error in library dialog: "+ha)}C||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(ha){null!=window.console&&console.log("Error in library dialog: "+ha)}return null}function L(S){S.dataTransfer.dropEffect=null!=q?"move":"copy";S.stopPropagation(); S.preventDefault()}function N(S){S.stopPropagation();S.preventDefault();B=!1;p=E(S);if(null!=q)null!=p&&p<c.children.length?(H.splice(p>q?p-1:p,0,H.splice(q,1)[0]),c.insertBefore(c.children[q],c.children[p])):(H.push(H.splice(q,1)[0]),c.appendChild(c.children[q]));else if(0<S.dataTransfer.files.length)b.importFiles(S.dataTransfer.files,0,0,b.maxImageSize,I(S));else if(0<=mxUtils.indexOf(S.dataTransfer.types,"text/uri-list")){var l=decodeURIComponent(S.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(l)||
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var e=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var g=e.getFunction,q=this.editor.graph,p=this;e.getFunction=function(t){if(q.isSelectionEmpty()&&null!=p.pages&&0<p.pages.length){var x= p.getSelectedPageIndex();if(mxEvent.isShiftDown(t)){if(37==t.keyCode)return function(){0<x&&p.movePage(x,x-1)};if(38==t.keyCode)return function(){0<x&&p.movePage(x,0)};if(39==t.keyCode)return function(){x<p.pages.length-1&&p.movePage(x,x+1)};if(40==t.keyCode)return function(){x<p.pages.length-1&&p.movePage(x,p.pages.length-1)}}else if(mxEvent.isControlDown(t)||mxClient.IS_MAC&&mxEvent.isMetaDown(t)){if(37==t.keyCode)return function(){0<x&&p.selectNextPage(!1)};if(38==t.keyCode)return function(){0< x&&p.selectPage(p.pages[0])};if(39==t.keyCode)return function(){x<p.pages.length-1&&p.selectNextPage(!0)};if(40==t.keyCode)return function(){x<p.pages.length-1&&p.selectPage(p.pages[p.pages.length-1])}}}return!(65<=t.keyCode&&90>=t.keyCode)||q.isSelectionEmpty()||mxEvent.isAltDown(t)||mxEvent.isShiftDown(t)||mxEvent.isControlDown(t)||mxClient.IS_MAC&&mxEvent.isMetaDown(t)?g.apply(this,arguments):null}}return e};var f=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
p?4E3:3E4);A=!0}return A};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(c,e,g,q){c=c.toDataURL("image/"+g);if(null!=c&&6<c.length)null!=e&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(e))),0<q&&(c=Editor.writeGraphModelToPng(c,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=U.setStrokeColor;U.setStrokeColor=function(){};var ha=U.setFillColor;U.setFillColor=function(){};W||null==X||(this.configurePointerEvents=function(){});U.handJiggle.passThrough=!0;P.apply(this,arguments);U.handJiggle.passThrough=!1;U.setFillColor=ha;U.setStrokeColor=ca;this.configurePointerEvents=Z;this.stroke=Y;this.fill=X;U.restore();W&&null!=X&&(U.addTolerance=function(){})}P.apply(this,arguments);U.addTolerance=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(z){H=z};this.setAutoScroll=function(z){R=z};this.setOpenFill=function(z){J=z};this.setStopClickEnabled=function(z){g=z};this.setSelectInserted=function(z){q=z};this.setSmoothing=function(z){m=z};this.setPerfectFreehandMode=function(z){t=z};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(z){p.size=z};this.getBrushSize=function(){return p.size};var x=function(z){e=z;b.getRubberband().setEnabled(!z);b.graphHandler.setSelectEnabled(!z);b.graphHandler.setMoveEnabled(!z);
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(k,y,G){var P=mxClient.IS_FF?8192:16384;return Math.min(G,Math.min(P/k,P/y))};Editor.prototype.exportToCanvas=function(k,y,G,P,Q,U,T,W,X,Y,Z,ca,ha,na,ea,za,Ca,Ba){try{U=null!=U?U:!0;T=null!=T?T:!0;ca=null!=ca?ca:this.graph;ha=null!=ha?ha:0;var ba=X?null:ca.background;ba==mxConstants.NONE&&(ba=null);null==ba&&(ba=P);null==ba&&0==X&&(ba=za?this.graph.defaultPageBackgroundColor:
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
arguments))};var q=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,y,G,P,Q,U,T,W,X,Y,Z){q.apply(this,arguments);Graph.processFontAttributes(Z)};var p=mxText.prototype.redraw;mxText.prototype.redraw=function(){p.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,y,G){function P(){for(var ea=T.getSelectionCells(),za=[],Ca=0;Ca<ea.length;Ca++)T.isCellVisible(ea[Ca])&&
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxUtils.bind(this,function(ha){this.cachedFonts[X]=ha;P--;Q()}),mxUtils.bind(this,function(ha){P--;Q()}),!0,null,"data:"+Z+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(G[k].substring(0,U)),T)}Q()}else y(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(y){this.resolvedFontCss=y;null!=k&&k()})):null!=k&&k()};Editor.prototype.createGoogleFontCache=function(){var k={},y;for(y in Graph.fontMapping)Graph.isCssFontUrl(y)&&
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};k.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke; this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(U){return new k(U,Editor.createRoughCanvas(U),this)};var y=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(U){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?y.apply(this,arguments):"comic"==mxUtils.getValue(this.style,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
380,240,!0,!1)});H=d.actions.addAction("search",function(){var l=d.sidebar.isEntryVisible("search");d.sidebar.showPalette("search",!l);isLocalStorage&&(mxSettings.settings.search=!l,mxSettings.save())});H.label=mxResources.get("searchShapes");H.setToggleAction(!0);H.setSelectedCallback(function(){return d.sidebar.isEntryVisible("search")});d.actions.get("clearDefaultStyle").funct=function(l){u.isEnabled()&&(d.clearDefaultStyle(),Editor.sketchMode&&d.setSketchMode(!1))};"1"==urlParams.embed&&(d.actions.get("save").funct=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
else{var sa=function(ta){pa&&b.sidebar.currentElt==aa&&fa(ta,mxEvent.getClientX(ma),mxEvent.getClientY(ma));pa=!1;la.src="/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=aa;pa=!0;la.src="/images/aui-wait.gif";ia.isExt?L(ia,sa,function(){g(mxResources.get("cantLoadPrev"));pa=!1;la.src="/images/icon-search.svg"}):oa(ia.url,sa)}}function x(ia,aa,la){if(null!=P){for(var ma=P.className.split(" "),oa=0;oa<ma.length;oa++)if(-1<ma[oa].indexOf("Active")){ma.splice(oa,1);break}P.className=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
null==V.getTerminal(k[y],!0)){V.setTerminal(k[y],D,!0);var G=e.getCellGeometry(k[y]);G.points=null;null!=G.getTerminalPoint(!0)&&G.setTerminalPoint(null,!0)}}finally{V.endUpdate()}return k}}var I={67:c.actions.get("selectChildren"),88:c.actions.get("selectDescendants"),80:c.actions.get("selectParent"),83:c.actions.get("selectSiblings")},A=c.onKeyDown;c.onKeyDown=function(D){try{var M=e.getSelectionCell();if(e.isEnabled()&&!e.isEditing()&&null!=M){var K=mxEvent.isAltDown(D)&&mxEvent.isShiftDown(D)? I[D.keyCode]:null;null!=K?(K.funct(D),mxEvent.consume(D)):d(M)&&(K=null,0<e.getIncomingTreeEdges(M).length&&(9==D.which?K=mxEvent.isShiftDown(D)?N(M):H(M):13==D.which&&(K=L(M,!mxEvent.isShiftDown(D)))),null!=K&&0<K.length?(1==K.length&&e.model.isEdge(K[0])?e.setSelectionCell(e.model.getTerminal(K[0],!1)):e.setSelectionCell(K[K.length-1]),null!=c.hoverIcons&&c.hoverIcons.update(e.view.getState(M)),e.startEditingAtCell(M),mxEvent.consume(D)):37==D.keyCode?(J(M,mxConstants.DIRECTION_WEST),mxEvent.consume(D)): 38==D.keyCode?(J(M,mxConstants.DIRECTION_NORTH),mxEvent.consume(D)):39==D.keyCode?(J(M,mxConstants.DIRECTION_EAST),mxEvent.consume(D)):40==D.keyCode&&(J(M,mxConstants.DIRECTION_SOUTH),mxEvent.consume(D)))}}catch(O){c.handleError(O)}mxEvent.isConsumed(D)||A.apply(this,arguments)};var S=e.connectVertex;e.connectVertex=function(D,M,K,O,V,k,y){var G=e.getIncomingTreeEdges(D);if(d(D)){var P=F(D),Q=P==mxConstants.DIRECTION_EAST||P==mxConstants.DIRECTION_WEST,U=M==mxConstants.DIRECTION_EAST||M==mxConstants.DIRECTION_WEST;
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var c=[(new Date).toISOString()],e=0;e<arguments.length;e++)c.push(arguments[e]);console.log.apply(console,c)}}catch(g){}};EditorUi.removeChildNodes=function(c){for(;null!=c.firstChild;)c.removeChild(c.firstChild)};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
C.evt.button};var c=R.isCellSelectable;R.isCellSelectable=function(C){return C==J?!1:c.apply(this,arguments)};R.getLinkForCell=function(){return null};var e=R.view.getState(J);H=R.getAllConnectionConstraints(e);for(var g=0;null!=H&&g<H.length;g++){var q=R.getConnectionPoint(e,H[g]);v(q.x-3,q.y-3,H[g])}R.fit(8);R.center();g=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){R.zoomIn()},20);g.setAttribute("disabled","disabled");q=b.createToolbarButton(Editor.zoomOutImage,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(n){t=null!=t?t:"pdf"==e?"application/pdf":"image/"+e;if(null!=q)try{this.exportFile(q,A,t,!0,S,n)}catch(z){this.handleError(z)}else this.spinner.spin(document.body,mxResources.get("saving"))&&l.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=l.getStatus()&&299>=l.getStatus())try{this.exportFile(l.getText(),A,t,!0,S,n)}catch(z){this.handleError(z)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(z){this.spinner.stop();this.handleError(z)}))})))}}),
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
y[G].url)}catch(Q){console.log("ExtFonts format error: "+Q.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var f=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(k,y){k=null!=k?k:!0;var G=f.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&G.setAttribute("style",
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
0;ja<ta.length;ja++)oa=ta[ja],0==fa==(null==la[oa.url])&&(Ga[oa.url]=!0,La.push(oa));la=Ga;fa++}0==La.length?za.innerText=mxResources.get("noResultsFor",[ia]):A(La,!0)}}function D(ia){if(Z!=ia||T!=ca)q(),Ba.scrollTop=0,ea.innerText="",za.innerText=mxResources.get("searchResults")+' "'+ia+'"',Ua=null,ha?C(ia):F&&(ia?(Qa.spin(ea),k=!1,V=!0,F(ia,Va,function(){g(mxResources.get("searchFailed"));Va([])},T?null:v)):z(T)),Z=ia,ca=T}function M(ia){null!=Ua&&clearTimeout(Ua);13==ia.keyCode?D(xa.value):Ua=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
DrawioFile.prototype.reloadFile=function(b,f){try{this.ui.spinner.stop();var m=mxUtils.bind(this,function(){EditorUi.debug("DrawioFile.reloadFile",[this],"hash",this.getHash(),"modified",this.isModified(),"backupPatch",this.backupPatch);this.stats.fileReloaded++;if(""==this.getHash())this.mergeLatestVersion(null!=this.backupPatch?[this.backupPatch]:null,mxUtils.bind(this,function(){this.backupPatch=null;null!=b&&b()}),f);else{var d=this.ui.editor.graph,u=d.getSelectionCells(),v=d.getViewState(),E= this.ui.currentPage;this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){this.ui.restoreViewState(E,v,u);null!=this.backupPatch&&this.patch([this.backupPatch]);var F=this.ui.getCurrentFile();null!=F&&(F.stats=this.stats);null!=b&&b()}}),!0)}});this.isModified()&&null==this.backupPatch?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.handleFileSuccess("manual"==DrawioFile.SYNC)}),m,mxResources.get("cancel"),mxResources.get("discardChanges")): m()}catch(d){null!=f&&f(d)}};DrawioFile.prototype.mergeLatestVersion=function(b,f,m){this.getLatestVersion(mxUtils.bind(this,function(d){this.ui.editor.graph.model.beginUpdate();try{this.ui.replaceFileData(d.getData()),null!=b&&this.patch(b)}finally{this.ui.editor.graph.model.endUpdate()}this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(d.getDescriptor());this.descriptorChanged();null!=f&&f()}),m)};
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.editor.graph.isEnabled()};var H=EditorUi.prototype.createSidebar;EditorUi.prototype.createSidebar=function(c){var e=H.apply(this,arguments);this.addListener("darkModeChanged",mxUtils.bind(this,function(){e.refresh()}));this.addListener("sketchModeChanged",mxUtils.bind(this,function(){e.refresh()}));return e};var R=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){R.apply(this,arguments);var c=this.editor.graph,e=this.getCurrentFile(),g=this.getSelectionState(),
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxGraphView.prototype.stateValidated=function(k){null!=k.shape&&this.redrawEnumerationState(k);return S.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(k){k=decodeURIComponent(mxUtils.getValue(k.style,"enumerateValue",""));""==k&&(k=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(k)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(k){var y="1"==mxUtils.getValue(k.style,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
return S}),A=!0);return A};var x=p.stop;p.stop=function(){x.call(this);this.active=!1;null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status);p.status=null};p.pause=function(){return function(){}};return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),g=this.editor.extractGraphModel(e.documentElement,!0);return null!=g&&0==g.getElementsByTagName("parsererror").length}catch(q){}return!1};EditorUi.prototype.isVisioData=function(c){return 8< c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(K){for(var U=z.apply(this,arguments),L=new mxDictionary,O=[],X=0;X<U.length;X++){var W=this.graph.isTableCell(K)&&this.graph.isTableCell(U[X])&&this.graph.isCellSelected(U[X])?this.graph.model.getParent(U[X]):this.graph.isTableRow(K)&&this.graph.isTableRow(U[X])&&this.graph.isCellSelected(U[X])?U[X]:this.graph.getCompositeParent(U[X]);null==W||L.get(W)||(L.put(W,!0),O.push(W))}return O};var C=this.graphHandler.start;this.graphHandler.start=function(K,U,L,O){var X=!1;this.graph.isTableCell(K)&& (this.graph.isCellSelected(K)?X=!0:K=this.graph.model.getParent(K));X||this.graph.isTableRow(K)&&this.graph.isCellSelected(K)||(K=this.graph.getCompositeParent(K));C.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(K,U){U=this.graph.getCompositeParent(U);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(K,U,L,O,X,W){var J=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=O&&this.graph.applyNewEdgeStyle(O,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"cells",[C])),b.fireEvent(new mxEventObject("freehandInserted","cell",C))}finally{b.model.endUpdate()}q&&b.setSelectionCells([C])}}for(C=0;C<u.length;C++)u[C].parentNode.removeChild(u[C]);d=null;u=[];E=[]}x(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(z,C){z=C.getProperty("eventName");C=C.getProperty("event");z==mxEvent.MOUSE_MOVE&&e&&(null!=C.sourceState&&C.sourceState.setCursor("crosshair"),C.consume())}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(z,C){if(b.isEnabled()&& !b.isCellLocked(b.getDefaultParent())&&(z=C.getEvent(),e&&!mxEvent.isPopupTrigger(z)&&!mxEvent.isMultiTouchEvent(z))){var D=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1);D=Math.max(1,D*b.view.scale);var M=A();d=document.createElementNS("http://www.w3.org/2000/svg","path");d.setAttribute("fill",t?M:"none");d.setAttribute("stroke",M);d.setAttribute("stroke-width",D);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(M=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3", M=M.split(" ").map(function(K){return parseFloat(K)*D}).join(" "),d.setAttribute("stroke-dasharray",M));c=[];z=S(z);l(z);v="M"+z.x+" "+z.y;E.push(z);F=[];d.setAttribute("d",t?PerfectFreehand.getSvgPathFromStroke([[z.x,z.y]],p):v);f.appendChild(d);C.consume()}}),mouseMove:mxUtils.bind(this,function(z,C){if(d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){z=C.getEvent();z=S(z);l(z);var D=n(0);if(D)if(E.push(D),t){var M=[];for(D=0;D<E.length;D++)M.push([E[D].x,E[D].y]);F=[];for(var K=2;K<c.length;K+=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
var c=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(l){var n=c.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=n&&Editor.enableSimpleTheme&&"atlassian"!=d.getServiceName()){var z=this.get("appearance");if(null!=z){var C=n.addMenu("",z.funct);C.setAttribute("title",mxResources.get("appearance"));C.className="geToolbarButton geAdaptiveAsset";C.style.backgroundPosition="center center";C.style.backgroundRepeat="no-repeat";C.style.backgroundSize="100% 100%"; C.style.display="inline-block";C.style.cursor="pointer";C.style.zIndex="1";C.style.position="absolute";C.style.height="18px";C.style.width="18px";"atlas"==Editor.currentTheme?(C.style.filter="invert(100%)",C.style.right="11px",C.style.top="10px"):(C.style.right="10px",C.style.top="5px");document.body.appendChild(C);n.langIcon=C;z=mxUtils.bind(this,function(){var D=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;C.style.display="atlas"==Editor.currentTheme||"min"== Editor.currentTheme||"sketch"==Editor.currentTheme?"none":"";C.style.backgroundImage="simple"==Editor.currentTheme?750>D?"url("+Editor.thinDoubleArrowRightImage+")":"url("+(Editor.isDarkMode()?Editor.thinDarkImage:Editor.thinLightImage)+")":"url("+(Editor.isDarkMode()?Editor.darkModeImage:Editor.lightModeImage)+")"});this.editorUi.addListener("currentThemeChanged",z);this.editorUi.addListener("darkModeChanged",z);mxEvent.addListener(window,"resize",z);z()}}return n}}d.customLayoutConfig=[{layout:"mxHierarchicalLayout",
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.fileLoaded(new LocalFile(this,T,ha,!0)),null):this.importFile(T,W,X,Y,Z,ca,ha,na,ea,z,l,n)}catch(za){return this.handleError(za),null}});t=null!=t?t:mxUtils.bind(this,function(T){V.setSelectionCells(T)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var y=c.length,G=y,P=[],Q=mxUtils.bind(this,function(T,W){P[T]=W;if(0==--G){this.spinner.stop();if(null!=B)B(P);else{var X=[];V.getModel().beginUpdate();try{for(T=0;T<P.length;T++){var Y=P[T]();null!=Y&&(X=X.concat(Y))}}finally{V.getModel().endUpdate()}}t(X)}}),
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var x=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(K){K=null!=K?K:"";"1"==urlParams.dev&&(K+=(0<K.length?"&":"?")+"dev=1");return x.apply(this,arguments)};var B=e.addClickHandler;e.addClickHandler=function(K,O,V){var k=O;O=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
C.y,null,null,null,null,mxUtils.bind(this,function(D){return e.getCenterInsertPoint(e.getBoundingBoxFromGeometry(D,!0))}),"simple"==c,!1)}mxEvent.consume(z)}));x.style.backgroundSize="24px";"simple"==c?x.style.flexShrink="0":x.style.marginBottom="4px";var A=!1,S=mxUtils.bind(this,function(z){if(z||document.body.contains(g)){z=function(K,O,V,k,y,G){null!=O&&K.setAttribute("title",O);K.style.cursor="pointer";K.style.margin="simple"==c?"0px":"8px 0px 8px 2px";K.style.display="simple"==c?"inline-block": "block";g.appendChild(K);"simple"==c?K.style.opacity="0.7":null!=k&&(O=y,O=null!=O?O:30,G=null!=G?G:26,K.style.position="relative",K.style.overflow="visible",V=document.createElement("div"),V.style.position="absolute",V.style.fontSize="8px",V.style.left=O+"px",V.style.top=G+"px",mxUtils.write(V,k),K.appendChild(V));return K};g.innerText="";if(!A){var C=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==c&&(this.sidebar.graph.cellRenderer.minSvgStrokeWidth=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"hidden";na.style.bottom="0px";na.style.height="42px";na.style.right="10px";na.style.left="10px";T.isEnabled()&&(na.appendChild(Z),na.appendChild(ca),X.appendChild(na));return{div:X,refresh:ha}};Graph.prototype.getCustomFonts=function(){var k=this.extFonts;k=null!=k?k.slice():[];for(var y in Graph.customFontElements){var G=Graph.customFontElements[y];k.push({name:G.name,url:G.url})}return k};Graph.prototype.setFont=function(k,y){Graph.addFont(k,y);document.execCommand("fontname",!1,k);if(null!=y){var G=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
F=document.createElement("div");F.style.height="300px";F.style.width="300px";F.style.display="inline-flex";F.style.justifyContent="center";F.style.alignItems="center";F.style.position="absolute";var L=document.createElement("img");L.onload=function(){function A(){H.model.setStyle(c,e+u())}H=new Graph(N);H.autoExtend=!1;H.autoScroll=!1;H.setGridEnabled(!1);H.setEnabled(!0);H.setPanning(!1);H.setConnectable(!1);H.getRubberband().setEnabled(!1);H.graphHandler.allowLivePreview=!1;var S=H.createVertexHandler;
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
e.getCurrentCellStyle(D).treeMoving);return M}function v(D){var M=!1;null!=D&&(D=g.getParent(D),M=e.view.getState(D),M="tree"==(null!=M?M.style:e.getCellStyle(D)).containerType);return M}function E(D){var M=!1;null!=D&&(D=g.getParent(D),M=e.view.getState(D),e.view.getState(D),M=null!=(null!=M?M.style:e.getCellStyle(D)).childLayout);return M}function F(D){D=e.view.getState(D);if(null!=D){var M=e.getIncomingTreeEdges(D.cell);if(0<M.length&&(M=e.view.getState(M[0]),null!=M&&(M=M.absolutePoints,null!=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
g){g=null!=g?g:c.name;var q=new FileReader;q.onload=mxUtils.bind(this,function(){this.parseFileData(q.result,e,g)});q.readAsText(c)};EditorUi.prototype.parseFileData=function(c,e,g){var q=new XMLHttpRequest;q.open("POST",OPEN_URL);q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q.onreadystatechange=function(){e(q)};q.send("format=xml&filename="+encodeURIComponent(g)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(p){}};
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var f=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=f){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var m=mxFreehand.prototype.NORMAL_SMOOTHING,d=null,u=[],v,E=[],F,L=!1,N=!0,H=!0,R=!0,J=!0,c=[],e=!1,g=!1,q=!1,p={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},t=!0;this.setClosedPath=function(z){L=z};this.setAutoClose=function(z){N=z};this.setAutoInsert=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
P.length&&(Q=P[Math.max(0,Math.min(P.length-1,urlParams.page||0))])),null!=Q&&(k=Editor.parseDiagramNode(Q,G)));null==k||"mxGraphModel"==k.nodeName||y&&"mxfile"==k.nodeName||(k=null);return k};Editor.parseDiagramNode=function(k,y){var G=mxUtils.trim(mxUtils.getTextContent(k)),P=null;0<G.length?(k=Graph.decompress(G,null,y),null!=k&&0<k.length&&(P=mxUtils.parseXml(k).documentElement)):(k=mxUtils.getChildNodes(k),0<k.length&&(P=mxUtils.createXmlDocument(),P.appendChild(P.importNode(k[0],!0)),P=P.documentElement)); return P};Editor.getDiagramNodeXml=function(k){var y=mxUtils.getTextContent(k),G=null;0<y.length?G=Graph.decompress(y):null!=k.firstChild&&(G=mxUtils.getXml(k.firstChild));return G};Editor.extractGraphModelFromPdf=function(k){k=k.substring(k.indexOf(",")+1);k=window.atob&&!mxClient.IS_SF?atob(k):Base64.decode(k,!0);if("%PDF-1.7"==k.substring(0,8)){var y=k.indexOf("EmbeddedFile");if(-1<y){var G=k.indexOf("stream",y)+9;if(0<k.substring(y,G).indexOf("application#2Fvnd.jgraph.mxfile"))return y=k.indexOf("endstream",
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"pHYs","dpi",q));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,e,g,q,p){var t="jpeg"==g?"jpg":g;q=this.getBaseFilename(q)+(null!=e?".drawio":"")+"."+t;c=this.createImageDataUri(c,e,g,p);this.saveData(q,t,c.substring(c.lastIndexOf(",")+1),"image/"+g,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxUtils.setTextContent(g,JSON.stringify(c,null,2));e.appendChild(g);return mxUtils.getXml(e,"\n")};EditorUi.prototype.closeLibrary=function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),".scratchpad"==c.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(c){var e=this.sidebar.palettes[c];if(null!=e){for(var g=0;g<e.length;g++)e[g].parentNode.removeChild(e[g]);delete this.sidebar.palettes[c]}};
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(K,U,L){return this.graph.isCellSelected(K)?!1:da.apply(this,arguments)};var ja=this.updateMouseEvent;this.updateMouseEvent=function(K){K=ja.apply(this,arguments);null!=K.state&&this.isCellLocked(this.getLayerForCell(K.getCell()))&&(K.state=null);return K};var ia=this.isCellSelectable;this.isCellSelectable=function(K){return ia.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(K))};this.isCellLocked=function(K){for(;null!=K;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(K),
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.showLocalStorageDialog=function(c,e,g,q,p,t){var x=localStorage.getItem(e);c=new TextareaDialog(this,c,null!=x?JSON.stringify(JSON.parse(x),null,2):"",mxUtils.bind(this,function(B){if(null!=B)try{if(null!=t&&t(B),B==x)this.hideDialog();else{if(0<B.length){var I=JSON.parse(B);localStorage.setItem(e,JSON.stringify(I))}else localStorage.removeItem(e);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(A){this.handleError(A)}}),null,mxResources.get("close"), null,null,null,!0,null,null,p,g,q);this.showDialog(c.container,620,460,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=function(c,e,g,q){c=null!=c?c:mxUtils.bind(this,function(p,t,x,B){t||(p=new ChangePageSetup(this,q?x:null,p),p.ignoreColor=!q,null!=B&&q&&(p.shadowVisible=B),this.editor.graph.model.execute(p))});c=new BackgroundImageDialog(this,c,e,g,q);this.showDialog(c.container,400,q?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,e,g,q,p){c=new LibraryDialog(this,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Editor.createRoughCanvas=function(k){var y=rough.canvas({getContext:function(){return k}});y.draw=function(G){var P=G.sets||[];G=G.options||this.getDefaultOptions();for(var Q=0;Q<P.length;Q++){var U=P[Q];switch(U.type){case "path":null!=G.stroke&&this._drawToContext(k,U,G);break;case "fillPath":this._drawToContext(k,U,G);break;case "fillSketch":this.fillSketch(k,U,G)}}};y.fillSketch=function(G,P,Q){var U=k.state.strokeColor,T=k.state.strokeWidth,W=k.state.strokeAlpha,X=k.state.dashed,Y=Q.fillWeight;
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():L.apply(this,arguments)};var N=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(c){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){c=null!=c?c:!0;if("1"!=urlParams.embedInline){var e=this.container.clientWidth;this.container==document.body&&(e=document.body.clientWidth||document.documentElement.clientWidth);var g=this.getDiagramContainerOffset();var q=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
null!=ta?new mxImage(ta.src,ta.width,ta.height,ta.x,ta.y):null;ia.pageVisible=aa;ia.mathEnabled=oa;var La=ia.getGraphBounds;ia.getGraphBounds=function(){var ya=La.apply(this,arguments),Ja=this.backgroundImage;if(null!=Ja&&null!=Ja.width&&null!=Ja.height){var Ma=this.view.translate,ra=this.view.scale;ya=mxRectangle.fromRectangle(ya);ya.add(new mxRectangle((Ma.x+Ja.x)*ra,(Ma.y+Ja.y)*ra,Ja.width*ra,Ja.height*ra))}return ya};var Ga=ia.getGlobalVariable;ia.getGlobalVariable=function(ya){return"page"== ya?ja.getName():"pagenumber"==ya?fa+1:"pagecount"==ya?null!=k.pages?k.pages.length:1:Ga.apply(this,arguments)};document.body.appendChild(ia.container);k.updatePageRoot(ja);ia.model.setRoot(ja.root)}ma=Ia(ia,ma,fa!=la,ja.getId());ia!=Q&&ia.container.parentNode.removeChild(ia.container)}}else ma=Ia(Q);null==ma?k.handleError({message:mxResources.get("errorUpdatingPreview")}):(ma.mathEnabled&&(la=ma.wnd.document,Ta&&(ma.wnd.IMMEDIATE_PRINT=!0),la.writeln('<script type="text/javascript" src="'+DRAWIO_BASE_URL+
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxEvent.consume(W)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(W){mxEvent.isTouchEvent(W)||F(30)}));var Y=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(W,J){this.startX=J.getGraphX();this.startY=J.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(W,J){},mouseUp:function(W,J){mxEvent.isTouchEvent(J.getEvent())&&Math.abs(this.scrollLeft-a.container.scrollLeft)< Y&&Math.abs(this.scrollTop-a.container.scrollTop)<Y&&Math.abs(this.startX-J.getGraphX())<Y&&Math.abs(this.startY-J.getGraphY())<Y&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?D():F(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var V=a.view.validate,aa=new mxPoint,ba=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=e.currentPage&&ba!=e.currentPage){ba=e.currentPage;var W=a.getPageLayout(a.getBoundingBoxFromGeometry(a.model.getCells(),
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.createParentLookup=function(b,f){function m(N){var H=d[N];null==H&&(H={inserted:[],moved:{}},d[N]=H);return H}var d={};if(null!=f[EditorUi.DIFF_INSERT])for(var u=0;u<f[EditorUi.DIFF_INSERT].length;u++){var v=f[EditorUi.DIFF_INSERT][u],E=null!=v.parent?v.parent:"",F=null!=v.previous?v.previous:"";m(E).inserted[F]=v}if(null!=f[EditorUi.DIFF_UPDATE])for(var L in f[EditorUi.DIFF_UPDATE])v=f[EditorUi.DIFF_UPDATE][L],null!=v.previous&&(E=v.parent,null==E&&(u=b.getCell(L),null!=u&&(u=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.defaultFilename,!0);N.getHash=function(){return b};this.fileLoaded(N);null!=d&&d()}else if("E"==b.charAt(0))null==this.getCurrentFile()?this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):this.remoteInvoke("getDraftFileContent",null,null,mxUtils.bind(this,function(c,e){this.spinner.stop();this.fileLoaded(new EmbedFile(this,c,e));null!=d&&d()}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
[J]);return J};var G=new mxRubberband(this);this.getRubberband=function(){return G};var D=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var K=this.currentState;N.apply(this,arguments);K!=this.currentState?(D=(new Date).getTime(),F=0):F=(new Date).getTime()-D};var R=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(K){return mxEvent.isShiftDown(K.getEvent())&&mxEvent.isAltDown(K.getEvent())?!1:
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
[J]);return J};var G=new mxRubberband(this);this.getRubberband=function(){return G};var D=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var K=this.currentState;N.apply(this,arguments);K!=this.currentState?(D=(new Date).getTime(),F=0):F=(new Date).getTime()-D};var R=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(K){return mxEvent.isShiftDown(K.getEvent())&&mxEvent.isAltDown(K.getEvent())?!1: null!=this.currentState&&K.getState()==this.currentState&&2E3<F||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&R.apply(this,arguments)};var S=this.isToggleEvent;this.isToggleEvent=function(K){return S.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(K)};var Q=G.isForceRubberbandEvent;G.isForceRubberbandEvent=function(K){return Q.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(K.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,e,g){return this.editor.graph.openLink(c,e,g)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,e){e(localStorage.getItem(c))};EditorUi.prototype.setLocalData=function(c,e,g){localStorage.setItem(c,e);null!=g&&g()};EditorUi.prototype.removeLocalData=function(c,e){localStorage.removeItem(c);
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(K){for(var U=z.apply(this,arguments),L=new mxDictionary,O=[],X=0;X<U.length;X++){var W=this.graph.isTableCell(K)&&this.graph.isTableCell(U[X])&&this.graph.isCellSelected(U[X])?this.graph.model.getParent(U[X]):this.graph.isTableRow(K)&&this.graph.isTableRow(U[X])&&this.graph.isCellSelected(U[X])?U[X]:this.graph.getCompositeParent(U[X]);null==W||L.get(W)||(L.put(W,!0),O.push(W))}return O};var C=this.graphHandler.start;this.graphHandler.start=function(K,U,L,O){var X=!1;this.graph.isTableCell(K)&&
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(K,U,L){return this.graph.isCellSelected(K)?!1:da.apply(this,arguments)};var ja=this.updateMouseEvent;this.updateMouseEvent=function(K){K=ja.apply(this,arguments);null!=K.state&&this.isCellLocked(this.getLayerForCell(K.getCell()))&&(K.state=null);return K};var ia=this.isCellSelectable;this.isCellSelectable=function(K){return ia.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(K))};this.isCellLocked=function(K){for(;null!=K;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(K), "locked","0"))return!0;K=this.model.getParent(K)}return!1};var qa=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(K,U){"mouseDown"==U.getProperty("eventName")&&(K=U.getProperty("event").getState(),qa=null==K||this.isSelectionEmpty()||this.isCellSelected(K.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(K,U){if(!mxEvent.isMultiTouchEvent(U)){K=U.getProperty("event");var L=U.getProperty("cell");null==L?(K=mxUtils.convertPoint(this.container,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var c=this.getCurrentFile();window.location.hash=null!=c?c.getHash():""}));else{var J=b.charAt(0);b=decodeURIComponent(b.substring(1));N.getFile(b,mxUtils.bind(this,function(c){this.spinner.stop();this.fileLoaded(c);var e=this.getCurrentFile();null==e?(window.location.hash="",this.showSplash()):this.editor.chromeless&&!this.editor.editable?(e.getHash=function(){return J+b},window.location.hash="#"+e.getHash()):c==e&&null==c.getMode()&&
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Menus.prototype.init=function(){function m(l,n,z){this.ui=l;this.previousExtFonts=this.extFonts=n;this.prevCustomFonts=this.customFonts=z}f.apply(this,arguments);var d=this.editorUi,u=d.editor.graph,v=mxUtils.bind(u,u.isEnabled),E=("1"!=urlParams.embed&&"0"!=urlParams.gapi||"1"==urlParams.embed&&"1"==urlParams.gapi)&&mxClient.IS_SVG&&isLocalStorage&&(null==document.documentMode||10<=document.documentMode),F=("1"!=urlParams.embed&&"0"!=urlParams.db||"1"==urlParams.embed&&"1"==urlParams.db)&&mxClient.IS_SVG&&
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
typeof window.mxUtilsBinaryToArray){Z=mxUtilsBinaryToArray(Z.request.responseBody).toArray();ca=Array(Z.length);for(var ha=0;ha<Z.length;ha++)ca[ha]=String.fromCharCode(Z[ha]);ca=ca.join("")}U=null!=U?U:"data:image/png;base64,";ca=U+Editor.base64Encode(ca)}y(ca)}}else null!=G&&(0==Z.getStatus()?G({message:mxResources.get("accessDenied")},Z):404==Z.getStatus()?G({code:Z.getStatus()},Z):G({message:mxResources.get("error")+" "+Z.getStatus()},Z))}),function(Z){null!=G&&G({message:mxResources.get("error")+ " "+Z.getStatus()})},X,this.timeout,function(){Q&&null!=G&&G({code:App.ERROR_TIMEOUT,retry:Y})},W)});Y()}catch(Z){null!=G&&G(Z)}};Editor.prototype.absoluteCssFonts=function(k){var y=null;if(null!=k){var G=k.split("url(");if(0<G.length){y=[G[0]];k=window.location.pathname;var P=null!=k?k.lastIndexOf("/"):-1;0<=P&&(k=k.substring(0,P+1));P=document.getElementsByTagName("base");var Q=null;null!=P&&0<P.length&&(Q=P[0].getAttribute("href"));for(var U=1;U<G.length;U++)if(P=G[U].indexOf(")"),0<P){var T=Editor.trimCssUrl(G[U].substring(0,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
ua,va,Ea,Da,Ta,Ia){if(0<Da){var Sa=Array(Da);ua=null!=ua?ua.split(","):[];for(var Ha=0;Ha<Da;Ha++)Sa[Ha]=null!=ua[Ha]?ua[Ha]:null!=Ea?Ea:"";ha.push({name:pa,values:Sa,type:va,defVal:Ea,parentRow:Ta,flipBkg:Ia,size:Da})}return document.createElement("div")}function X(pa,ua,va){var Ea=document.createElement("input");Ea.type="checkbox";Ea.checked="1"==ua;mxEvent.addListener(Ea,"change",function(){P(pa,Ea.checked?"1":"0",va)});return Ea}function Y(pa,ua,va,Ea,Da){var Ta=va.dispName,Ia=va.type,Sa=document.createElement("tr");
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
null;x=mxUtils.button("",mxUtils.bind(this,function(B){this.pickColor(t||"none",function(I){t=I;g()});mxEvent.consume(B)}));g();x.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";x.style.marginLeft="4px";x.style.height="22px";x.style.width="22px";x.style.position="relative";x.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";x.className="geColorBtn";c.appendChild(x);mxUtils.br(c);return{getColor:function(){return t},getTarget:function(){return q.value},focus:function(){q.focus()}}};
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Y&&Y()}}catch(Ma){this.handleError(Ma)}};EditorUi.prototype.getSearch=function(c){var e="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var g="?",q;for(q in urlParams)0>mxUtils.indexOf(c,q)&&null!=urlParams[q]&&(e+=g+q+"="+urlParams[q],g="&")}else e=window.location.search;return e};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var e=0<c.indexOf("?")?1:0;if("1"==urlParams.offline)c+=window.location.search;else{var g="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.isResampleImageSize=function(c,e){e=null!=e?e:this.resampleThreshold;return c>e};EditorUi.prototype.resizeImage=function(c,e,g,q,p,t,x){p=null!=p?p:this.maxImageSize;var B=Math.max(1,c.width),I=Math.max(1,c.height);if(q&&this.isResampleImageSize(null!=x?x:e.length,t))try{var A=Math.max(B/p,I/p);if(1<A){var S=Math.round(B/A),l=Math.round(I/A),n=document.createElement("canvas");n.width=S;n.height=l;n.getContext("2d").drawImage(c,0,0,S,l);var z=n.toDataURL();if(z.length<e.length){var C=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
App.prototype.createFile=function(b,f,m,d,u,v,E,F,L,N){d=F?null:null!=d?d:this.mode;if(null!=b&&this.spinner.spin(document.body,mxResources.get("inserting"))){f=null!=f?f:this.emptyDiagramXml;null==f||Editor.defaultCompressed||(f=this.uncompressPages(f));var H=mxUtils.bind(this,function(){this.spinner.stop()}),R=mxUtils.bind(this,function(J){H();null==J&&null==this.getCurrentFile()&&null==this.dialog?this.showSplash():null!=J&&this.handleError(J)});try{d==App.MODE_GOOGLE&&null!=this.drive?(null== E&&null!=this.stateArg&&null!=this.stateArg.folderId&&(E=this.stateArg.folderId),this.drive.insertFile(b,f,E,mxUtils.bind(this,function(J){H();this.fileCreated(J,m,v,u,L,N)}),R)):d==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.insertFile(b,f,mxUtils.bind(this,function(J){H();this.fileCreated(J,m,v,u,L,N)}),R,!1,E):d==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.insertFile(b,f,mxUtils.bind(this,function(J){H();this.fileCreated(J,m,v,u,L,N)}),R,!1,E):d==App.MODE_TRELLO&&null!=this.trello?this.trello.insertFile(b, f,mxUtils.bind(this,function(J){H();this.fileCreated(J,m,v,u,L,N)}),R,!1,E):d==App.MODE_DROPBOX&&null!=this.dropbox?this.dropbox.insertFile(b,f,mxUtils.bind(this,function(J){H();this.fileCreated(J,m,v,u,L,N)}),R):d==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.insertFile(b,f,mxUtils.bind(this,function(J){H();this.fileCreated(J,m,v,u,L,N)}),R,!1,E):d==App.MODE_BROWSER?StorageFile.insertFile(this,b,f,mxUtils.bind(this,function(J){H();this.fileCreated(J,m,v,u,L,N)}),R):!F&&d==App.MODE_DEVICE&& EditorUi.nativeFileSupport?(H(),this.showSaveFilePicker(mxUtils.bind(this,function(J,c){var e=new LocalFile(this,f,c.name,null,J,c);e.saveFile(c.name,!1,mxUtils.bind(this,function(){this.fileCreated(e,m,v,u,L,N)}),R,!0)}),mxUtils.bind(this,function(J){"AbortError"!=J.name&&R(J)}),this.createFileSystemOptions(b))):(H(),this.fileCreated(new LocalFile(this,f,b,null==d),m,v,u,L,N))}catch(J){H(),this.handleError(J)}}};
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.chromelessWindowResize=function(){};var N=Menus.prototype.init;Menus.prototype.init=function(){N.apply(this,arguments);var J=this.editorUi;EditorUi.enablePlantUml&&!J.isOffline()&&J.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var g=new ParseDialog(J,mxResources.get("plantUml")+"...","plantUml");J.showDialog(g.container,620,420,!0,!1);g.init()}));J.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var g=new ParseDialog(J,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
F.getGlobalVariable=function(W){return"page"==W&&null!=N&&null!=N[H]?N[H].getAttribute("name"):"pagenumber"==W?H+1:"pagecount"==W?null!=N?N.length:1:R.apply(this,arguments)};F.getLinkForCell=function(){return null};Editor.MathJaxRender&&F.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(W,X){b.editor.graph.mathEnabled&&Editor.MathJaxRender(F.container)}));var J={lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.4,trail:60,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(N){return this.isTreeEdge(N)}))};Graph.prototype.getIncomingTreeEdges=function(d,u){return this.getTreeEdges(d,u,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,u){return this.getTreeEdges(d,u,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function d(D){return g.isVertex(D)&&v(D)}function u(D){var M=!1;null!=D&&(M="1"==
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(){b.spinner.stop();d(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),d(x,null,null,J,c,e)):(x=b.convertDataUri(x),B=null==B?120:B,I=null==I?100:I,b.hideDialog(),d(x,B,I,J,c,e))},q=function(x,B){if(null!=x){var I=u?null:N.getModel().getGeometry(N.getSelectionCell());null!=I?g(x,I.width,I.height,B):g(x,null,null,B)}else b.hideDialog(),d(null)};this.init=function(){R.focus();if(Graph.fileSupport){R.setAttribute("placeholder",
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
f.appendChild(R);f.appendChild(m);H.appendChild(f);var J=F,c,e,g=function(x,B,I,A){var S="data:"==x.substring(0,5);!b.isOffline()||S&&"undefined"===typeof chrome?0<x.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(x,function(l){b.spinner.stop();b.hideDialog();var n=!1===A?1:null!=B&&null!=I?Math.max(B/l.width,I/l.height):Math.min(1,Math.min(520/l.width,520/l.height));v&&(x=b.convertDataUri(x));d(x,Math.round(Number(l.width)*n),Math.round(Number(l.height)*n),J,c,e)}, function(){b.spinner.stop();d(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),d(x,null,null,J,c,e)):(x=b.convertDataUri(x),B=null==B?120:B,I=null==I?100:I,b.hideDialog(),d(x,B,I,J,c,e))},q=function(x,B){if(null!=x){var I=u?null:N.getModel().getGeometry(N.getSelectionCell());null!=I?g(x,I.width,I.height,B):g(x,null,null,B)}else b.hideDialog(),d(null)};this.init=function(){R.focus();if(Graph.fileSupport){R.setAttribute("placeholder",
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
e;p.onerror=g;for(var t=0;t<q.length;t++)p.objectStore(q[t]).delete(c[t])}),g)};EditorUi.prototype.getDatabaseItem=function(c,e,g,q){this.openDatabase(mxUtils.bind(this,function(p){try{q=q||"objects";var t=p.transaction([q],"readonly").objectStore(q).get(c);t.onsuccess=function(){e(t.result)};t.onerror=g}catch(x){null!=g&&g(x)}}),g)};EditorUi.prototype.getDatabaseItems=function(c,e,g){this.openDatabase(mxUtils.bind(this,function(q){try{g=g||"objects";var p=q.transaction([g],"readonly").objectStore(g).openCursor(IDBKeyRange.lowerBound(0)), t=[];p.onsuccess=function(x){null==x.target.result?c(t):(t.push(x.target.result.value),x.target.result.continue())};p.onerror=e}catch(x){null!=e&&e(x)}}),e)};EditorUi.prototype.getDatabaseItemKeys=function(c,e,g){this.openDatabase(mxUtils.bind(this,function(q){try{g=g||"objects";var p=q.transaction([g],"readonly").objectStore(g).getAllKeys();p.onsuccess=function(){c(p.result)};p.onerror=e}catch(t){null!=e&&e(t)}}),e)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(c,e){var g=this.getCurrentFile();null!=g&&g.getRevisions?g.getRevisions(c,e):e({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.defaultFilename;L=new LocalFile(this,L,N,!0);null!=window.location.hash&&"#P"==window.location.hash.substring(0,2)&&(L.getHash=function(){return window.location.hash.substring(1)});this.fileLoaded(L);this.getCurrentFile().setModified(!this.editor.chromeless)}),E=window.opener||window.parent;if(E!=window){var F=urlParams.create;null!=F?v(E[decodeURIComponent(F)]):(F=urlParams.data,null!=F?v(decodeURIComponent(F)):this.installMessageHandler(mxUtils.bind(this,function(L,N){N.source==E&&v(L)})))}}else if(null==
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
za.push(ea[Ca]);T.setSelectionCells(za)}function Q(ea){T.setHiddenTags(ea?[]:W.slice());P();T.refresh()}function U(ea,za){Y.innerText="";if(0<ea.length){var Ca=document.createElement("table");Ca.setAttribute("cellpadding","2");Ca.style.boxSizing="border-box";Ca.style.tableLayout="fixed";Ca.style.width="100%";var Ba=document.createElement("tbody");if(null!=ea&&0<ea.length)for(var ba=0;ba<ea.length;ba++)(function(da){function qa(){var pa=T.getCellsForTags([da],null,null,!0);T.isEnabled()?T.setSelectionCells(pa): T.highlightCells(pa,null,null,70)}var ka=0>mxUtils.indexOf(T.hiddenTags,da),Aa=document.createElement("tr"),xa=document.createElement("td");xa.style.align="center";xa.style.width="16px";var wa=document.createElement("img");wa.setAttribute("src",ka?Editor.visibleImage:Editor.hiddenImage);wa.setAttribute("title",mxResources.get(ka?"hideIt":"show",[da]));mxUtils.setOpacity(wa,ka?75:25);wa.style.verticalAlign="middle";wa.style.cursor="pointer";wa.style.width="16px";if(y||Editor.isDarkMode())wa.style.filter=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
t.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return g.checked?"blank"===t.value?"_blank":p:null},getEditInput:function(){return g},getEditSelect:function(){return t}}};EditorUi.prototype.addLinkSection=function(c,e){function g(){var B=document.createElement("div");B.style.width="100%";B.style.height="100%";B.style.boxSizing="border-box";null!=t&&t!=mxConstants.NONE?(B.style.border="1px solid black",B.style.backgroundColor=t):(B.style.backgroundPosition="center center",
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
!1,!0)}finally{I.model.endUpdate()}}}catch(V){if(p)throw V;this.handleError(V)}return B};EditorUi.prototype.updatePageLinks=function(c,e){for(var g=0;g<e.length;g++)this.updatePageLinksForCell(c,e[g].root),null!=e[g].viewState&&this.updateBackgroundPageLink(c,e[g].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(c,e){try{if(null!=e&&Graph.isPageLink(e.originalSrc)){var g=c[e.originalSrc.substring(e.originalSrc.indexOf(",")+1)];null!=g&&(e.originalSrc="data:page/id,"+ g)}}catch(q){}};EditorUi.prototype.updatePageLinksForCell=function(c,e){var g=document.createElement("div"),q=this.editor.graph,p=q.getLinkForCell(e);null!=p&&q.setLinkForCell(e,this.updatePageLink(c,p));if(q.isHtmlLabel(e)){g.innerHTML=Graph.sanitizeHtml(q.getLabel(e));for(var t=g.getElementsByTagName("a"),x=!1,B=0;B<t.length;B++)p=t[B].getAttribute("href"),null!=p&&(t[B].setAttribute("href",this.updatePageLink(c,p)),x=!0);x&&q.labelChanged(e,g.innerHTML)}for(B=0;B<q.model.getChildCount(e);B++)this.updatePageLinksForCell(c,
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.graph.currentStyle);var P=this.graph.getBackgroundImageObject(this.graph.backgroundImage,y);null!=P&&G.setAttribute("backgroundImage",JSON.stringify(P));G.setAttribute("math",this.graph.mathEnabled?"1":"0");G.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(P=this.graph.extFonts.map(function(Q){return Q.name+"^"+Q.url}),G.setAttribute("extFonts",P.join("|")));return G};Editor.prototype.isDataSvg=function(k){try{var y=mxUtils.parseXml(k).documentElement.getAttribute("content"); if(null!=y&&(null!=y&&"<"!=y.charAt(0)&&"%"!=y.charAt(0)&&(y=unescape(window.atob?atob(y):Base64.decode(cont,y))),null!=y&&"%"==y.charAt(0)&&(y=decodeURIComponent(y)),null!=y&&0<y.length)){var G=mxUtils.parseXml(y).documentElement;return"mxfile"==G.nodeName||"mxGraphModel"==G.nodeName}}catch(P){}return!1};Editor.prototype.extractGraphModel=function(k,y,G){return Editor.extractGraphModel.apply(this,arguments)};var m=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled=
0
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
vulnerable