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
Graph.prototype.createLayersDialog=function(b,e){var g=document.createElement("div");g.style.position="absolute";for(var n=this.getModel(),y=n.getChildCount(n.root),q=0;q<y;q++)mxUtils.bind(this,function(E){function N(){n.isVisible(E)?(K.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(F,75)):(K.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(F,25))}var T=this.convertValueToString(E)||mxResources.get("background")||"Background",F=document.createElement("div");F.style.overflow=
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.cellsRemoved=function(x){if(null!=x){for(var L=new mxDictionary,P=0;P<x.length;P++)L.put(x[P],!0);var X=[];for(P=0;P<x.length;P++){var ea=this.model.getParent(x[P]);null==ea||L.get(ea)||(L.put(ea,!0),X.push(ea))}for(P=0;P<X.length;P++)if(ea=this.view.getState(X[P]),null!=ea&&(this.model.isEdge(ea.cell)||this.model.isVertex(ea.cell))&&this.isCellDeletable(ea.cell)&&this.isTransparentState(ea)){for(var la=!0,oa=0;oa<this.model.getChildCount(ea.cell)&&la;oa++)L.get(this.model.getChildAt(ea.cell, oa))||(la=!1);la&&x.push(ea.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(x){for(var L=[],P=0;P<x.length;P++)this.isCellDeletable(x[P])&&this.isTransparentState(this.view.getState(x[P]))&&L.push(x[P]);x=L;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(x,L){this.setAttributeForCell(x,"link",L)};Graph.prototype.setTooltipForCell=function(x,L){var P="tooltip";Graph.translateDiagram&&
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
oa))}}finally{L.endUpdate()}};Graph.prototype.insertRow=function(x,L){for(var P=x.tBodies[0],X=P.rows[0].cells,ea=x=0;ea<X.length;ea++){var la=X[ea].getAttribute("colspan");x+=null!=la?parseInt(la):1}L=P.insertRow(L);for(ea=0;ea<x;ea++)mxUtils.br(L.insertCell(-1));return L.cells[0]};Graph.prototype.deleteRow=function(x,L){x.tBodies[0].deleteRow(L)};Graph.prototype.insertColumn=function(x,L){var P=x.tHead;if(null!=P)for(var X=0;X<P.rows.length;X++){var ea=document.createElement("th");P.rows[X].appendChild(ea);
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 W(){mxShape.call(this)}function d(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function z(){mxActor.call(this)}function A(){mxActor.call(this)}function H(){mxActor.call(this)}function J(){mxActor.call(this)}function O(){mxActor.call(this)}function G(){mxActor.call(this)}function ja(){mxActor.call(this)}function fa(c,l){this.canvas=c;this.canvas.setLineJoin("round");
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?c=u:c.add(u))}this.bounds=null!=c?c:new mxRectangle};b.prototype.paintVertexShape=function(c,l,u,p,t){this.paintTableLine(c,this.line,0,0)};b.prototype.paintTableLine=function(c,l,u,p){if(null!=l){var t=null;c.begin();for(var B=0;B<l.length;B++){var D=l[B];null!=D&&(null==t?c.moveTo(D.x+u,D.y+p):null!=t&&c.lineTo(D.x+u,D.y+p));t=D}c.end();c.stroke()}};b.prototype.intersectsRectangle=function(c){var l=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var u=null, p=0;p<this.line.length&&!l;p++){var t=this.line[p];null!=t&&null!=u&&(l=mxUtils.rectangleIntersectsSegment(c,u,t));u=t}return l};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(e,mxSwimlane);e.prototype.getLabelBounds=function(c){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};e.prototype.paintVertexShape=function(c,l,u,p,t){var B=null!=this.state?this.state.view.graph.isCellCollapsed(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
Graph.svgDoctype+"\n"+mxUtils.getXml(m))});this.editor.graph.mathEnabled&&this.editor.addMathCss(S);var Y=mxUtils.bind(this,function(m){A?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(m,Q,this.thumbImageCache)):Q(m)});ca?this.embedFonts(S,Y):(this.editor.addFontCss(S),Y(S))}catch(m){this.handleError(m)}};EditorUi.prototype.addRadiobox=function(d,f,k,v,z,A,H){return this.addCheckbox(d,k,v,z,A,H,!0,f)};EditorUi.prototype.addCheckbox=function(d,f,k,v,z,A,H,J){A=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
N=T}return N};var b=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(E){if(this.useCssTransforms){var N=this.currentScale,T=this.currentTranslate;E=new mxRectangle((E.x+2*T.x)*N-T.x,(E.y+2*T.y)*N-T.y,E.width*N,E.height*N)}b.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=function(E){E=this.strokeWidth;this.graph.useCssTransforms&&(E/=this.graph.currentScale);return E};mxGraphView.prototype.getGraphBounds=function(){var E=this.graphBounds;if(this.graph.useCssTransforms){var N= this.graph.currentTranslate,T=this.graph.currentScale;E=new mxRectangle((E.x+N.x)*T,(E.y+N.y)*T,E.width*T,E.height*T)}return E};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(E){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.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
function(){return!this.outline&&(null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")&&"0"==mxUtils.getValue(this.style,"sketch","1"==urlParams.rough?"1":"0"))&&eb.apply(this,arguments)};var jb=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(c,l,u,p,t){if(null==c.handJiggle||c.handJiggle.constructor!=fa)jb.apply(this,arguments);else{var B=!0;null!=this.style&&(B="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(B||
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.updateFile=function(b,e,g,n){null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():this.getLatestVersion(mxUtils.bind(this,function(y){try{null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[y]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():null!=y?this.mergeFile(y,b,e,n):this.reloadFile(b,e))}catch(q){null!= e&&e(q)}}),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
this.state.x+(db.width+kb)*la;this.shape.bounds.y=oa.y+(bb==Ua.length-1?0:eb.y*la);this.shape.bounds.height=oa.height-(bb==Ua.length-1?0:(eb.height+eb.y)*la)}this.shape.redraw()}};var Pa=!1;$a.setPosition=function(eb,jb,ib){kb=Math.max(Graph.minTableColumnWidth-db.width,jb.x-eb.x-db.width);Pa=mxEvent.isShiftDown(ib.getEvent());null==lb||Pa||(kb=Math.min(kb,lb.width-Graph.minTableColumnWidth))};$a.execute=function(eb){if(0!=kb)X.setTableColumnWidth(this.state.cell,kb,Pa);else if(!P.blockDelayedSelection){var jb=
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
x.pointerEvents=!0;return x};Graph.prototype.getSelectedTextBlocks=function(){function x(oa){if(oa.firstChild)return oa.firstChild;for(;oa;){if(oa.nextSibling)return oa.nextSibling;oa=oa.parentNode}}function L(oa){var xa=oa.startContainer,sa=oa.endContainer;oa=oa.commonAncestorContainer;var va=[],Fa;for(Fa=xa.parentNode;Fa&&(va.push(Fa),Fa!=oa);Fa=Fa.parentNode);va.reverse();for(Fa=xa;Fa&&(va.push(Fa),Fa!=sa);Fa=x(Fa));return va}var P=[this.getSelectedElement()];if(window.getSelection){var X=window.getSelection(); X.getRangeAt&&X.rangeCount&&(P=L(X.getRangeAt(0)))}X=[];for(var ea=0;ea<P.length;ea++)for(var la=P[ea];null!=this.cellEditor.textarea&&this.cellEditor.textarea.contains(la)&&la!=this.cellEditor.textarea&&null!=la.parentNode;)if(la.nodeType==mxConstants.NODETYPE_ELEMENT&&"block"==mxUtils.getCurrentStyle(la).display){0>mxUtils.indexOf(X,la)&&X.push(la);break}else la=la.parentNode;return X};Graph.prototype.getSelectedElement=function(){var x=null;if(window.getSelection){var L=window.getSelection();L.getRangeAt&&
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
ja.prototype.redrawPath=function(c,l,u,p,t){c.setStrokeWidth(1);c.setFillColor(this.stroke);l=p/5;c.rect(0,0,l,t);c.fillAndStroke();c.rect(2*l,0,l,t);c.fillAndStroke();c.rect(4*l,0,l,t);c.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",ja);fa.prototype.moveTo=function(c,l){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;this.firstX=c;this.firstY=l};fa.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,
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));this.originalClose.apply(this.canvas,arguments)};fa.prototype.quadTo=function(c,l,u,p){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=u;this.lastY=p};fa.prototype.curveTo=function(c,l,u,p,t,B){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=B};fa.prototype.arcTo=function(c,l,u,p,t,B,D){this.originalArcTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=D};fa.prototype.lineTo=function(c,l){if(null!=this.lastX&&null!=this.lastY){var u=function(na){return"number"===
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){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,c.height*l),0,0)}return null};d.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(l/=2);return new mxRectangle(0,Math.min(c.height*this.scale,2*l*this.scale),0,Math.max(0,.3*l*this.scale))}return null};k.prototype.getLabelMargins=
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.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),n=b.segments,y=b.length,q=g.length;return{execute:mxUtils.bind(this,function(E,N){if(null!=b.shape){var T=[g[0]];N=E/N;e||(N=1-N);for(var F=y*N,K=1;K<q;K++)if(F<=n[K-1]){T.push(new mxPoint(g[K-1].x+(g[K].x-g[K-1].x)*F/n[K-1],g[K-1].y+(g[K].y-g[K-1].y)*F/n[K-1]));break}else F-=n[K-1],T.push(g[K]);b.shape.points=T;b.shape.redraw();0==E&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!= b.text.node&&(b.text.node.style.opacity=N)}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.points=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1: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
EditorUi.prototype.createTimeout=function(b,e,g){var n=!0,y=null,q=mxUtils.bind(this,function(N){y.clear()&&(n=!1,N=null!=N?N:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,e,g)})},null!=g?g(N):this.handleError(N))}),E=window.setTimeout(q,null!=b?b:this.timeout);y={clear:function(){window.clearTimeout(E);return n},isAlive:function(){return n}};null!=e&&this.tryAndHandle(mxUtils.bind(this,function(){e(y)}),q);return 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.editor.fireEvent(new mxEventObject("resetGraphView"))};EditorUi.prototype.showPopupMenu=function(b,e,g,n){this.editor.graph.popupMenuHandler.hideMenu();var y=new mxPopupMenu(b);y.div.className+=" geMenubarMenu";y.smartSeparators=!0;y.showDisabled=!0;y.autoExpand=!0;y.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(y,arguments);y.destroy()});y.popup(e,g,null,n);this.setCurrentMenu(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
C);mxUtils.extend(M,mxEllipse);M.prototype.paintVertexShape=function(c,l,u,p,t){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(l+p/8,u+t);c.lineTo(l+7*p/8,u+t);c.end();c.stroke()};mxCellRenderer.registerShape("umlEntity",M);mxUtils.extend(ba,mxShape);ba.prototype.paintVertexShape=function(c,l,u,p,t){c.translate(l,u);c.begin();c.moveTo(p,0);c.lineTo(0,t);c.moveTo(0,0);c.lineTo(p,t);c.end();c.stroke()};mxCellRenderer.registerShape("umlDestroy",ba);mxUtils.extend(V,mxShape);
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
if(W==g.getChildAt(n,q+T)&&null!=d&&1==mxUtils.getValue(d.style,"colspan",1)&&1==mxUtils.getValue(d.style,"rowspan",1))T++;else break}K==F*T-1&&(b.mergeCell=e[0],b.colspan=T,b.rowspan=F)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),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
function X(){mxEllipse.call(this)}function ea(){mxEllipse.call(this)}function la(){mxRhombus.call(this)}function oa(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function sa(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Fa(){mxActor.call(this)}function Ua(){mxActor.call(this)}function ab(){mxActor.call(this)}function Na(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
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.handleError({message:mxResources.get("errorLoadingFile")}));null!=A&&null!=A.parentNode&&0<f.length&&(A.parentNode.removeChild(A),A=null)});null!=ka&&null!=Z&&(/(\.v(dx|sdx?))($|\?)/i.test(Z)||/(\.vs(x|sx?))($|\?)/i.test(Z))?this.importVisio(ka,function(pa){ra(pa,"text/xml")},null,Z):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(Y,Z)&&null!=ka?this.isExternalDataComms()?this.parseFile(ka,mxUtils.bind(this,function(pa){4==pa.readyState&&(this.spinner.stop(),200<=pa.status&&299>=pa.status?
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(E,N,T){T=null!=T?T:Graph.pasteStyles;Graph.removeKeys(E,function(F){return 0>mxUtils.indexOf(T,F)});this.updateCellStyles(E,N)};Graph.prototype.updateCellStyles=function(E,N){this.model.beginUpdate();try{for(var T=0;T<N.length;T++)if(this.model.isVertex(N[T])||this.model.isEdge(N[T])){var F=this.getCellStyle(N[T],!1),K=F[mxConstants.STYLE_PERIMETER],R=!1;for(d in E){var W=E[d];if(F[d]!=W){if(d==mxConstants.STYLE_SHAPE&&"umlLifeline"==F[d]&&"umlLifeline"!=W){R=!0;var d="participant"}this.setCellStyles(d,
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
M({code:pa.getStatus()},pa):M({message:mxResources.get("error")+" "+pa.getStatus()},pa))}),function(pa){null!=M&&M({message:mxResources.get("error")+" "+pa.getStatus()})},qa,this.timeout,function(){V&&null!=M&&M({code:App.ERROR_TIMEOUT,retry:ra})},ka)});ra()}catch(pa){null!=M&&M(pa)}};Editor.prototype.absoluteCssFonts=function(m){var C=null;if(null!=m){var M=m.split("url(");if(0<M.length){C=[M[0]];m=window.location.pathname;var ba=null!=m?m.lastIndexOf("/"):-1;0<=ba&&(m=m.substring(0,ba+1));ba=document.getElementsByTagName("base");
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
Actions.prototype.addAction=function(b,e,g,n,y){if("..."==b.substring(b.length-3)){b=b.substring(0,b.length-3);var q=mxResources.get(b)+"..."}else q=mxResources.get(b);return this.put(b,new Action(q,e,g,n,y))};Actions.prototype.put=function(b,e){return this.actions[b]=e};Actions.prototype.get=function(b){return this.actions[b]};
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=[];null!=Q;){var m=Q.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,Q)&&(Q.parentNode.removeChild(Q),Y.push(Q));Q=m}Q=this.toolbar.fontMenu;m=this.toolbar.sizeMenu;if(null==fa)this.toolbar.createTextToolbar();else{for(var C=0;C<fa.length;C++)this.toolbar.container.appendChild(fa[C]);this.toolbar.fontMenu=G;this.toolbar.sizeMenu=ja}O=y.cellEditor.isContentEditing();G=Q;ja=m;fa=Y}}),ia=y.cellEditor.startEditing;y.cellEditor.startEditing=function(){ia.apply(this,arguments);ca();if(y.cellEditor.isContentEditing()){var Q= !1,Y=function(){Q||(Q=!0,window.setTimeout(function(){var m=y.getSelectedEditingElement();null!=m&&(m=mxUtils.getCurrentStyle(m),null!=m&&null!=n.toolbar&&(n.toolbar.setFontName(Graph.stripQuotes(m.fontFamily)),n.toolbar.setFontSize(parseInt(m.fontSize))));Q=!1},0))};mxEvent.addListener(y.cellEditor.textarea,"input",Y);mxEvent.addListener(y.cellEditor.textarea,"touchend",Y);mxEvent.addListener(y.cellEditor.textarea,"mouseup",Y);mxEvent.addListener(y.cellEditor.textarea,"keyup",Y);Y()}};var ma=y.cellEditor.stopEditing;
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
"arrow",n,"direction",g,"event",y)))}));mxEvent.addListener(n,"mouseleave",mxUtils.bind(this,function(y){mxEvent.isMouseEvent(y)&&this.fireEvent(new mxEventObject("blur","arrow",n,"direction",g,"event",y));this.graph.isMouseDown||this.resetActiveArrow()}));return n};HoverIcons.prototype.resetActiveArrow=function(){null!=this.activeArrow&&(mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.activeArrow=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
"text/javascript");Z.setAttribute("src",m);C[0].parentNode.appendChild(Z)}}};Editor.prototype.csvToArray=function(m){if(0<m.length){var C="",M=[""],ba=0,V=!0,Z;m=$jscomp.makeIterator(m);for(Z=m.next();!Z.done;Z=m.next())Z=Z.value,'"'===Z?(V&&Z===C&&(M[ba]+=Z),V=!V):","===Z&&V?Z=M[++ba]="":M[ba]+=Z,C=Z;return M}return[]};Editor.prototype.getProxiedUrl=function(m){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(m)){var C= /(\.v(dx|sdx?))($|\?)/i.test(m)||/(\.vs(x|sx?))($|\?)/i.test(m);C=/\.png$/i.test(m)||/\.pdf$/i.test(m)||C;var M="t="+(new Date).getTime();m=PROXY_URL+"?url="+encodeURIComponent(m)+"&"+M+(C?"&base64=1":"")}return m};Editor.prototype.isCorsEnabledForUrl=function(m){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||m.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));
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 null};mxCellEditor.prototype.restoreSelection=function(x){try{if(x)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var L=0,P=x.length;L<P;++L)sel.addRange(x[L])}else document.selection&&x.select&&x.select()}catch(X){}};var v=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(x){null!=x.text&&(x.text.replaceLinefeeds="0"!=mxUtils.getValue(x.style,"nl2Br","1"));v.apply(this,arguments)};var z=mxConstraintHandler.prototype.update;
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(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,f,k,v,z,A,H){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(d){null==d&&(d=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,d,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
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.getValue(this.style,"line")?(c.moveTo(l+p/2,u),c.lineTo(l+p/2,u+t)):(c.moveTo(l,u+t/2),c.lineTo(l+p,u+t/2));c.end();c.stroke()};mxCellRenderer.registerShape("lineEllipse",va);mxUtils.extend(Fa,mxActor);Fa.prototype.redrawPath=function(c,l,u,p,t){l=Math.min(p,t/2);c.moveTo(0,0);c.lineTo(p-l,0);c.quadTo(p,0,p,t/2);c.quadTo(p,t,p-l,t);c.lineTo(0,t);c.close();c.end()};mxCellRenderer.registerShape("delay",Fa);mxUtils.extend(Ua,mxActor);Ua.prototype.size=.2;Ua.prototype.redrawPath=function(c,l, u,p,t){l=Math.min(t,p);var B=Math.max(0,Math.min(l,l*parseFloat(mxUtils.getValue(this.style,"size",this.size))));l=(t-B)/2;u=l+B;var D=(p-B)/2;B=D+B;c.moveTo(0,l);c.lineTo(D,l);c.lineTo(D,0);c.lineTo(B,0);c.lineTo(B,l);c.lineTo(p,l);c.lineTo(p,u);c.lineTo(B,u);c.lineTo(B,t);c.lineTo(D,t);c.lineTo(D,u);c.lineTo(0,u);c.close();c.end()};mxCellRenderer.registerShape("cross",Ua);mxUtils.extend(ab,mxActor);ab.prototype.size=.25;ab.prototype.redrawPath=function(c,l,u,p,t){l=Math.min(p,t/2);u=Math.min(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
Graph.prototype.getCommonStyle=function(E){for(var N={},T=0;T<E.length;T++){var F=this.view.getState(E[T]);null!=F&&this.mergeStyle(F.style,N,0==T)}return N};Graph.prototype.mergeStyle=function(E,N,T){if(null!=E){var F={},K;for(K in E){var R=E[K];null!=R&&(F[K]=!0,null==N[K]&&T?N[K]=R:N[K]!=R&&delete N[K])}for(K in N)F[K]||delete N[K]}};Graph.prototype.getStartEditingCell=function(E,N){N=this.getCellStyle(E);N=parseInt(mxUtils.getValue(N,mxConstants.STYLE_STARTSIZE,0));this.isTable(E)&&(!this.isSwimlane(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
db);return db}finally{Na&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(x,L){if("0"!=urlParams["svg-warning"]&&0<L.getElementsByTagName("foreignObject").length){var P=x.createElement("switch"),X=x.createElement("g");X.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var ea=x.createElement("a");ea.setAttribute("transform","translate(0,-5)");null==ea.setAttributeNS||L.ownerDocument!=document&&
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("download"),!1,A,H,null,1<z,O,d,k,v);A=this.isServices(z)?z>O?390:280:160;this.showDialog(f.container,420,A,!0,!0);f.init()};EditorUi.prototype.openInNewWindow=function(d,f,k){var v=window.open("about:blank");null==v||null==v.document?mxUtils.popup(d,!0):("image/svg+xml"!=f||mxClient.IS_SVG?"image/svg+xml"!=f||k?(d=k?d:btoa(unescape(encodeURIComponent(d))),v.document.write('<html><img style="max-width:100%;" src="data:'+f+";base64,"+d+'"/></html>')):v.document.write("<html>"+d+"</html>"): v.document.write("<html><pre>"+mxUtils.htmlEntities(d,!1)+"</pre></html>"),v.document.close())};var n=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(d){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=null;var f=d(mxUtils.bind(this,function(v){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
da);mxUtils.extend(S,mxHexagon);S.prototype.size=.25;S.prototype.fixedSize=20;S.prototype.isRoundable=function(){return!0};S.prototype.redrawPath=function(c,l,u,p,t){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*p,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):p*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(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
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,n,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title};
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==N)&&""==this.getLabel(E)&&0<this.model.getChildCount(E)&&(E=this.model.getChildAt(E,0),N=this.getCellStyle(E),N=parseInt(mxUtils.getValue(N,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(E)&&(!this.isSwimlane(E)||0==N)&&""==this.getLabel(E)&&0<this.model.getChildCount(E))for(N=0;N<this.model.getChildCount(E);N++){var T=this.model.getChildAt(E,N);if(this.isCellEditable(T)){E=T;break}}return E};Graph.prototype.copyStyle=function(E){return this.getCellStyle(E,!1)};Graph.prototype.pasteStyle=
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
mxCellEditor.prototype.installListeners=function(x){function L(ea,la){la.originalNode=ea;ea=ea.firstChild;for(var oa=la.firstChild;null!=ea&&null!=oa;)L(ea,oa),ea=ea.nextSibling,oa=oa.nextSibling;return la}function P(ea,la){if(null!=ea)if(la.originalNode!=ea)X(ea);else for(ea=ea.firstChild,la=la.firstChild;null!=ea;){var oa=ea.nextSibling;null==la?X(ea):(P(ea,la),la=la.nextSibling);ea=oa}}function X(ea){for(var la=ea.firstChild;null!=la;){var oa=la.nextSibling;X(la);la=oa}1==ea.nodeType&&("BR"=== ea.nodeName||null!=ea.firstChild)||3==ea.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(ea)).length?(3==ea.nodeType&&mxUtils.setTextContent(ea,mxUtils.getTextContent(ea).replace(/\n|\r/g,"")),1==ea.nodeType&&(ea.removeAttribute("style"),ea.removeAttribute("class"),ea.removeAttribute("width"),ea.removeAttribute("cellpadding"),ea.removeAttribute("cellspacing"),ea.removeAttribute("border"))):ea.parentNode.removeChild(ea)}H.apply(this,arguments);7!==document.documentMode&&8!==document.documentMode&&
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.br(ea)}x=x.tBodies[0];for(P=0;P<x.rows.length;P++)X=x.rows[P].insertCell(L),mxUtils.br(X);return x.rows[0].cells[0<=L?L:x.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(x,L){if(0<=L){x=x.tBodies[0].rows;for(var P=0;P<x.length;P++)x[P].cells.length>L&&x[P].deleteCell(L)}};Graph.prototype.pasteHtmlAtCaret=function(x){if(window.getSelection){var L=window.getSelection();if(L.getRangeAt&&L.rangeCount){L=L.getRangeAt(0);L.deleteContents();var P=document.createElement("div");P.innerHTML= x;x=document.createDocumentFragment();for(var X;X=P.firstChild;)lastNode=x.appendChild(X);L.insertNode(x)}}else(L=document.selection)&&"Control"!=L.type&&L.createRange().pasteHTML(x)};Graph.prototype.createLinkForHint=function(x,L){function P(ea,la){ea.length>la&&(ea=ea.substring(0,Math.round(la/2))+"..."+ea.substring(ea.length-Math.round(la/4)));return ea}x=null!=x?x:"javascript:void(0);";if(null==L||0==L.length)L=this.isCustomLink(x)?this.getLinkTitle(x):x;var X=document.createElement("a");X.setAttribute("rel",
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.position2)))),ha=Math.max(0,Math.min(p,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(p,0),new mxPoint(p,t-u),new mxPoint(Math.min(p,B+ha),t-u),new mxPoint(D,t),new mxPoint(Math.max(0,B),t-u),new mxPoint(0,t-u)],this.isRounded,l,!0,[4])};mxCellRenderer.registerShape("callout",ma);mxUtils.extend(da,mxActor);da.prototype.size=.2;da.prototype.fixedSize=20;da.prototype.isRoundable=function(){return!0};da.prototype.redrawPath=function(c, l,u,p,t){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(p,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):p*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(p-l,0),new mxPoint(p,t/2),new mxPoint(p-l,t),new mxPoint(0,t),new mxPoint(l,t/2)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("step",
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(C^-1)>>>0};Editor.writeGraphModelToPng=function(m,C,M,ba,V){function Z(pa,wa){var Da=qa;qa+=wa;return pa.substring(Da,qa)}function aa(pa){pa=Z(pa,4);return pa.charCodeAt(3)+(pa.charCodeAt(2)<<8)+(pa.charCodeAt(1)<<16)+(pa.charCodeAt(0)<<24)}function ka(pa){return String.fromCharCode(pa>>24&255,pa>>16&255,pa>>8&255,pa&255)}m=m.substring(m.indexOf(",")+1);m=window.atob?atob(m):Base64.decode(m,!0);var qa=0;if(Z(m,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=V&&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
0,z.x,z.y));null!=z&&v.appendChild(this.sidebar.createVertexTemplateFromCells([k],z.width,z.height,"",!0,!1,null,!1,mxUtils.bind(this,function(A){if(!mxEvent.isShiftDown(A)||null==g&&R.isSelectionEmpty()){var H=R.cloneCell(k);if(null!=n)n(H);else{var J=T([H]);R.model.isEdge(H)?H.geometry.translate(J.x,J.y):(H.geometry.x=J.x,H.geometry.y=J.y);R.model.beginUpdate();try{R.addCell(H),R.model.isVertex(H)&&R.isAutoSizeCell(H)&&R.updateCellSize(H)}finally{R.model.endUpdate()}R.setSelectionCell(H);R.scrollCellToVisible(H); K&&R.startEditing(H);null!=d.hoverIcons&&d.hoverIcons.update(R.view.getState(H))}}else H=R.getEditableCells(null!=g?[g]:R.getSelectionCells()),R.updateShapes(k,H);null!=q&&q(A);mxEvent.consume(A)}),25,25,null,null,g))});for(F=0;F<(N?Math.min(E.length,4):E.length);F++)y(E[F]);E=W.offsetTop+W.clientHeight-(R.container.scrollTop+R.container.offsetHeight);0<E&&(W.style.top=Math.max(R.container.scrollTop+22,e-E)+"px");E=W.offsetLeft+W.clientWidth-(R.container.scrollLeft+R.container.offsetWidth);0<E&&(W.style.left=
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&&(H.responseType="blob");H.onload=function(J){if(200<=this.status&&300>this.status)if("txt"==f)k(this.response);else{var O=new FileReader;O.readAsDataURL(this.response);O.onloadend=function(G){var ja=new Image;ja.onload=function(){try{var fa=ja.width,ca=ja.height;if(0==fa&&0==ca){var ia=O.result,ma=ia.indexOf(","),da=decodeURIComponent(escape(atob(ia.substring(ma+1)))),S=mxUtils.parseXml(da).getElementsByTagName("svg");0<S.length&&(fa=parseFloat(S[0].getAttribute("width")),ca=parseFloat(S[0].getAttribute("height")))}k(O.result, fa,ca)}catch(U){v(U)}};ja.src=O.result};O.onerror=function(G){v(G)}}else v(J)};H.onerror=function(J){v(J)};H.send()};EditorUi.prototype.insertAsPreText=function(d,f,k){var v=this.editor.graph,z=null;v.getModel().beginUpdate();try{z=v.insertVertex(null,null,"<pre>"+d+"</pre>",f,k,1,1,"text;html=1;align=left;verticalAlign=top;"),v.updateCellSize(z,!0)}finally{v.getModel().endUpdate()}return z};EditorUi.prototype.insertTextAt=function(d,f,k,v,z,A,H,J){A=null!=A?A:!0;H=null!=H?H:!0;if(null!=d)if(Graph.fileSupport&&
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 V=null;null!=ba&&0<ba.length&&(V=ba[0].getAttribute("href"));for(var Z=1;Z<M.length;Z++)if(ba=M[Z].indexOf(")"),0<ba){var aa=Editor.trimCssUrl(M[Z].substring(0,ba));this.graph.isRelativeUrl(aa)&&(aa=null!=V?V+aa:window.location.protocol+"//"+window.location.hostname+("/"==aa.charAt(0)?"":m)+aa);C.push('url("'+aa+'"'+M[Z].substring(ba))}else C.push(M[Z])}else C=[m]}return null!=C?C.join(""):null};Editor.prototype.mapFontUrl=function(m,C,M){/^https?:\/\//.test(C)&&!this.isCorsEnabledForUrl(C)&& (C=PROXY_URL+"?url="+encodeURIComponent(C));M(m,C)};Editor.prototype.embedCssFonts=function(m,C){var M=m.split("url("),ba=0;null==this.cachedFonts&&(this.cachedFonts={});var V=mxUtils.bind(this,function(){if(0==ba){for(var qa=[M[0]],ra=1;ra<M.length;ra++){var pa=M[ra].indexOf(")");qa.push('url("');qa.push(this.cachedFonts[Editor.trimCssUrl(M[ra].substring(0,pa))]);qa.push('"'+M[ra].substring(pa))}C(qa.join(""))}});if(0<M.length){for(m=1;m<M.length;m++){var Z=M[m].indexOf(")"),aa=null,ka=M[m].indexOf("format(",
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
m.baseUrl.length)==m.baseUrl||M.crossOriginImages&&M.isCorsEnabledForUrl(ba)?"chrome-extension://"==ba.substring(0,19)||mxClient.IS_CHROMEAPP||(ba=C.apply(this,arguments)):ba=PROXY_URL+"?url="+encodeURIComponent(ba)}return ba};return m};Editor.createSvgDataUri=function(m){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(m)))};Editor.prototype.convertImageToDataUri=function(m,C){try{var M=!0,ba=window.setTimeout(mxUtils.bind(this,function(){M=!1;C(Editor.svgBrokenImage.src)}),this.timeout); if(/(\.svg)$/i.test(m))mxUtils.get(m,mxUtils.bind(this,function(Z){window.clearTimeout(ba);M&&C(Editor.createSvgDataUri(Z.getText()))}),function(){window.clearTimeout(ba);M&&C(Editor.svgBrokenImage.src)});else{var V=new Image;this.crossOriginImages&&(V.crossOrigin="anonymous");V.onload=function(){window.clearTimeout(ba);if(M)try{var Z=document.createElement("canvas"),aa=Z.getContext("2d");Z.height=V.height;Z.width=V.width;aa.drawImage(V,0,0);C(Z.toDataURL())}catch(ka){C(Editor.svgBrokenImage.src)}}; V.onerror=function(){window.clearTimeout(ba);M&&C(Editor.svgBrokenImage.src)};V.src=m}}catch(Z){C(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(m,C,M,ba){null==ba&&(ba=this.createImageUrlConverter());var V=0,Z=M||{};M=mxUtils.bind(this,function(aa,ka){aa=m.getElementsByTagName(aa);for(var qa=0;qa<aa.length;qa++)mxUtils.bind(this,function(ra){try{if(null!=ra){var pa=ba.convert(ra.getAttribute(ka));if(null!=pa&&"data:"!=pa.substring(0,5)){var wa=Z[pa];null==wa?(V++,this.convertImageToDataUri(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
null!=Graph.diagramLanguage&&mxUtils.isNode(x.value)&&x.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(P="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(x,P,L)};Graph.prototype.getAttributeForCell=function(x,L,P){x=null!=x.value&&"object"===typeof x.value?x.value.getAttribute(L):null;return null!=x?x:P};Graph.prototype.setAttributeForCell=function(x,L,P){if(null!=x.value&&"object"==typeof x.value)var X=x.value.cloneNode(!0);else X=mxUtils.createXmlDocument().createElement("UserObject"),
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
ka=!0;null!=this.style&&(ka="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=Z.handJiggle&&Z.handJiggle.constructor==m&&!this.outline){Z.save();var qa=this.fill,ra=this.stroke;this.stroke=this.fill=null;var pa=this.configurePointerEvents,wa=Z.setStrokeColor;Z.setStrokeColor=function(){};var Da=Z.setFillColor;Z.setFillColor=function(){};ka||null==qa||(this.configurePointerEvents=function(){});Z.handJiggle.passThrough=!0;ba.apply(this,arguments);Z.handJiggle.passThrough=
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.addUndoListener=function(){var b=this.editor.undoManager,e=mxUtils.bind(this,function(){this.updateActionStates()});b.addListener(mxEvent.ADD,e);b.addListener(mxEvent.UNDO,e);b.addListener(mxEvent.REDO,e);b.addListener(mxEvent.CLEAR,e);var g=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){g.apply(this,arguments);e()};var n=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(y,q){n.apply(this,arguments); e()};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
var G=this.click;this.click=function(S){var U=null==S.state&&null!=S.sourceState&&this.isCellLocked(this.getLayerForCell(S.sourceState.cell));if(this.isEnabled()&&!U||S.isConsumed())return G.apply(this,arguments);U=U?S.sourceState.cell:S.getCell();null!=U&&(U=this.getClickableLinkForCell(U),null!=U&&(this.isCustomLink(U)?this.customLinkClicked(U):this.openLink(U)))};this.tooltipHandler.getStateForEvent=function(S){return S.sourceState};var ja=this.tooltipHandler.show;this.tooltipHandler.show=function(){ja.apply(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.mathJaxQueue.push(aa)};Editor.onMathJaxDone=function(){};var V=Editor.prototype.init;Editor.prototype.init=function(){V.apply(this,arguments);var aa=mxUtils.bind(this,function(ka,qa){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,aa);this.graph.addListener(mxEvent.REFRESH,aa)};C=document.getElementsByTagName("script");if(null!=C&&0<C.length){var Z=document.createElement("script");Z.setAttribute("type",
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
mxVertexHandler.prototype.isRotationHandleVisible=function(){return da.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var S=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=
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;Ra.setPosition=function(Pa,eb,jb){lb=Math.max(Graph.minTableRowHeight-Pa.height,eb.y-Pa.y-Pa.height);kb=mxEvent.isShiftDown(jb.getEvent());null!=db&&kb&&(lb=Math.min(lb,db.height-Graph.minTableRowHeight))};Ra.execute=function(Pa){if(0!=lb)X.setTableRowHeight(this.state.cell,lb,!kb);else if(!P.blockDelayedSelection){var eb=X.getCellAt(Pa.getGraphX(),Pa.getGraphY())||oa.cell;X.graphHandler.selectCellForEvent(eb,Pa)}lb=0};Ra.reset=function(){lb=0}}x.push(Ra)})(ea);for(ea=0;ea<Ua.length;ea++)mxUtils.bind(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
c.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",e);mxUtils.extend(g,e);g.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",g);mxUtils.extend(n,mxCylinder);n.prototype.size=20;n.prototype.darkOpacity=0;n.prototype.darkOpacity2=0;n.prototype.paintVertexShape=function(c,l,u,p,t){var B=Math.max(0,Math.min(p,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),D=Math.max(-1,Math.min(1, parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),ha=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));c.translate(l,u);c.begin();c.moveTo(0,0);c.lineTo(p-B,0);c.lineTo(p,B);c.lineTo(p,t);c.lineTo(B,t);c.lineTo(0,t-B);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=D&&(c.setFillAlpha(Math.abs(D)),c.setFillColor(0>D?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(p-B,0),c.lineTo(p,B), c.lineTo(B,B),c.close(),c.fill()),0!=ha&&(c.setFillAlpha(Math.abs(ha)),c.setFillColor(0>ha?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(B,B),c.lineTo(B,t),c.lineTo(0,t-B),c.close(),c.fill()),c.begin(),c.moveTo(B,t),c.lineTo(B,B),c.lineTo(0,0),c.moveTo(B,B),c.lineTo(p,B),c.end(),c.stroke())};n.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?(c=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(c,c,0,0)):null};mxCellRenderer.registerShape("cube",
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
D&&"fold"==B)&&c.moveTo(p-I,ha+I):c.moveTo(p,I)};Na.prototype.lineNEInner=function(c,l,u,p,t,B,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==B||ua?c.lineTo(p-I,I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.lineTo(p-I,ha+.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"==D&&"fold"==B)&&c.lineTo(p-I,ha+I):c.lineTo(p,I)};Na.prototype.moveNWInner=function(c,l,u,p,t,B,D,ha,I,ua,na){ua||na?!ua&&na?c.moveTo(I,0):ua&&!na?c.moveTo(0,I):"square"== D||"default"==D&&"square"==B?c.moveTo(I,I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.moveTo(I,ha+.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"==D&&"fold"==B)&&c.moveTo(I,ha+I):c.moveTo(0,0)};Na.prototype.lineNWInner=function(c,l,u,p,t,B,D,ha,I,ua,na){ua||na?!ua&&na?c.lineTo(I,0):ua&&!na?c.lineTo(0,I):"square"==D||"default"==D&&"square"==B?c.lineTo(I,I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.lineTo(I,
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.outerStroke&&(c.ellipse(l,u,p,t),c.stroke())};mxCellRenderer.registerShape("endState",ya);mxUtils.extend(Oa,ya);Oa.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",Oa);mxUtils.extend(Qa,mxArrowConnector);Qa.prototype.defaultWidth=4;Qa.prototype.isOpenEnded=function(){return!0};Qa.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};Qa.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",
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 X(){mxEllipse.call(this)}function ea(){mxEllipse.call(this)}function la(){mxRhombus.call(this)}function oa(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function sa(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Fa(){mxActor.call(this)}function Ua(){mxActor.call(this)}function ab(){mxActor.call(this)}function Na(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
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
"change",J);mxEvent.addListener(q,"change",J);mxEvent.addListener(N,"change",function(O){A="custom"==N.value;J(O,!0)});J();return{set:function(O){g=O;y(null,null,!0)},get:function(){return H},widthInput:R,heightInput:W}};
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.scale*C.height*M.height)};b.getPreferredPageSize=function(C,M,ba){C=this.getPageLayout();M=this.getPageSize();return new mxRectangle(0,0,C.width*M.width,C.height*M.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(C,M,ba,V){if(null!=b.container&&!b.isViewer()){ba=null!=ba?ba:0;V=null!=V?V:0;var Z=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),aa=mxUtils.hasScrollbars(b.container),ka=b.view.translate,qa=b.view.scale,
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
la&&Math.abs(this.scrollTop-oa.container.scrollTop)<la&&Math.abs(this.startX-va.getGraphX())<la&&Math.abs(this.startY-va.getGraphY())<la&&P(va.getEvent()));this.clear()},activate:function(sa){this.currentLink=oa.getAbsoluteUrl(oa.getLinkForCell(sa.cell));null!=this.currentLink&&(this.currentTarget=oa.getLinkTargetForCell(sa.cell),oa.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(sa))},clear:function(){null!=oa.container&&(oa.container.style.cursor=ea);this.currentLink=
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,[N[T]])}}R&&this.setCellStyles(mxConstants.STYLE_PERIMETER,K,[N[T]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(E,N,T,F,K,R){this.useCssTransforms&&
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
ka=!0;null!=this.style&&(ka="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=Z.handJiggle&&Z.handJiggle.constructor==m&&!this.outline){Z.save();var qa=this.fill,ra=this.stroke;this.stroke=this.fill=null;var pa=this.configurePointerEvents,wa=Z.setStrokeColor;Z.setStrokeColor=function(){};var Da=Z.setFillColor;Z.setFillColor=function(){};ka||null==qa||(this.configurePointerEvents=function(){});Z.handJiggle.passThrough=!0;ba.apply(this,arguments);Z.handJiggle.passThrough=
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(E){if(null!=E){var N=this.getCellGeometry(E);null!=N&&N.relative&&(E=this.model.getParent(E))}null!=E&&this.model.isEdge(E)&&(E=this.model.getParent(E));null!=E&&(E=this.getCompositeParent(E));return E};Graph.prototype.getCompositeParent=function(E){for(;this.isPart(E);){var N=this.model.getParent(E);if(!this.model.isVertex(N))break;E=N}return E};Graph.prototype.filterSelectionCells=function(E){var N=this.getSelectionCells();if(null!=E){for(var T=[],F=0;F<N.length;F++)E(N[F])||T.push(N[F]);
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
mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(x){return!mxEvent.isAltDown(x)};var g=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(x){return g.apply(this,arguments)||this.graph.isTableRow(x)||this.graph.isTableCell(x)};var n=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
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.getHashObject=function(){var d=window.location.hash,f={};if(null!=d&&0<d.length){var k=d.lastIndexOf("#");if(0<k){d=decodeURIComponent(d.substring(k+1));try{f=JSON.parse(d)}catch(v){}}}return f};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&""!=this.currentFile.getHash()&&null!=this.currentPage&&0<this.getSelectedPageIndex()){var d=this.getHashObject();d.pageId=this.currentPage.getId();this.setHashObject(d)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=
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));this.originalClose.apply(this.canvas,arguments)};fa.prototype.quadTo=function(c,l,u,p){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=u;this.lastY=p};fa.prototype.curveTo=function(c,l,u,p,t,B){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=B};fa.prototype.arcTo=function(c,l,u,p,t,B,D){this.originalArcTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=D};fa.prototype.lineTo=function(c,l){if(null!=this.lastX&&null!=this.lastY){var u=function(na){return"number"=== typeof na?na?0>na?-1:1:na===na?0:NaN:NaN},p=Math.abs(c-this.lastX),t=Math.abs(l-this.lastY),B=Math.sqrt(p*p+t*t);if(2>B){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;return}var D=Math.round(B/10),ha=this.defaultVariation;5>D&&(D=5,ha/=3);var I=u(c-this.lastX)*p/D;u=u(l-this.lastY)*t/D;p/=B;t/=B;for(B=0;B<D;B++){var ua=(Math.random()-.5)*ha;this.originalLineTo.call(this.canvas,I*B+this.lastX-ua*t,u*B+this.lastY-ua*p)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,
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,e){try{this.ui.spinner.stop();var g=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()}),e);else{var n=this.ui.editor.graph,y=n.getSelectionCells(),q=n.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,q,y);null!=this.backupPatch&&this.patch([this.backupPatch]);var N=this.ui.getCurrentFile();null!=N&&(N.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)}),g,mxResources.get("cancel"),mxResources.get("discardChanges")): g()}catch(n){null!=e&&e(n)}};DrawioFile.prototype.mergeLatestVersion=function(b,e,g){this.getLatestVersion(mxUtils.bind(this,function(n){this.ui.editor.graph.model.beginUpdate();try{this.ui.replaceFileData(n.getData()),null!=b&&this.patch(b)}finally{this.ui.editor.graph.model.endUpdate()}this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(n.getDescriptor());this.descriptorChanged();null!=e&&e()}),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
function(d,f){f=null!=f?f:this.resampleThreshold;return d>f};EditorUi.prototype.resizeImage=function(d,f,k,v,z,A,H){z=null!=z?z:this.maxImageSize;var J=Math.max(1,d.width),O=Math.max(1,d.height);if(v&&this.isResampleImageSize(null!=H?H:f.length,A))try{var G=Math.max(J/z,O/z);if(1<G){var ja=Math.round(J/G),fa=Math.round(O/G),ca=document.createElement("canvas");ca.width=ja;ca.height=fa;ca.getContext("2d").drawImage(d,0,0,ja,fa);var ia=ca.toDataURL();if(ia.length<f.length){var ma=document.createElement("canvas"); ma.width=ja;ma.height=fa;var da=ma.toDataURL();ia!==da&&(f=ia,J=ja,O=fa)}}}catch(S){}k(f,J,O)};EditorUi.prototype.extractGraphModelFromPng=function(d){return Editor.extractGraphModelFromPng(d)};EditorUi.prototype.loadImage=function(d,f,k){try{var v=new Image;v.onload=function(){v.width=0<v.width?v.width:120;v.height=0<v.height?v.height:120;f(v)};null!=k&&(v.onerror=k);v.src=d}catch(z){if(null!=k)k(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=function(){var d="1"==urlParams.sketch;return"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
null!=Y)this.editMermaidData(U,Q,Y);else{var m=f.getCellStyle(U);"1"==mxUtils.getValue(m,"metaEdit","0")?d.showDataDialog(U):k.apply(this,arguments)}}catch(C){d.handleError(C)}};f.getLinkTitle=function(U){return d.getLinkTitle(U)};f.customLinkClicked=function(U){var Q=!1;try{d.handleCustomLink(U),Q=!0}catch(Y){d.handleError(Y)}return Q};var v=f.parseBackgroundImage;f.parseBackgroundImage=function(U){var Q=v.apply(this,arguments);null!=Q&&null!=Q.src&&Graph.isPageLink(Q.src)&&(Q={originalSrc:Q.src});
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);else if("square"==D||"default"==D&&"square"==B)c.lineTo(I,t-I);else if("rounded"==D||"default"==D&&"rounded"==B)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,ha+.5*I,t-I);else if("invRound"==D||"default"==D&&"invRound"==B)c.arcTo(ha+I,ha+I,0,0,1,ha+I,t-I);else if("snip"==D||"default"==D&&"snip"==B)c.lineTo(ha+.5*I,t-I);else if("fold"==D||"default"==D&&"fold"==B)c.lineTo(I+ha,t-ha-I),c.lineTo(I+ha,t-I)};Na.prototype.moveSWInner=function(c,l,u,p,t,B,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==B?c.moveTo(I, t-I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.moveTo(I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"==D&&"fold"==B)&&c.moveTo(I,t-ha-I):c.moveTo(0,t-I)};Na.prototype.lineSWInner=function(c,l,u,p,t,B,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==B?c.lineTo(I,t-I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.lineTo(I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"==
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
mxStencilRegistry.loadStencilSet=function(b,e,g,n){var y=mxStencilRegistry.packages[b];if(null!=g&&g||null==y){var q=!1;if(null==y)try{if(n){mxStencilRegistry.loadStencil(b,mxUtils.bind(this,function(E){null!=E&&null!=E.documentElement&&(mxStencilRegistry.packages[b]=E,q=!0,mxStencilRegistry.parseStencilSet(E.documentElement,e,q))}));return}y=mxStencilRegistry.loadStencil(b);mxStencilRegistry.packages[b]=y;q=!0}catch(E){null!=window.console&&console.log("error in loadStencilSet:",b,E)}null!=y&&null!= y.documentElement&&mxStencilRegistry.parseStencilSet(y.documentElement,e,q)}};mxStencilRegistry.loadStencil=function(b,e){if(null!=e)mxUtils.get(b,mxUtils.bind(this,function(g){e(200<=g.getStatus()&&299>=g.getStatus()?g.getXml():null)}),mxUtils.bind(this,function(g){e(null)}));else return mxUtils.load(b).getXml()};mxStencilRegistry.parseStencilSets=function(b){for(var e=0;e<b.length;e++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(b[e]).documentElement)};
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
fa,ca)}catch(U){v(U)}};ja.src=O.result};O.onerror=function(G){v(G)}}else v(J)};H.onerror=function(J){v(J)};H.send()};EditorUi.prototype.insertAsPreText=function(d,f,k){var v=this.editor.graph,z=null;v.getModel().beginUpdate();try{z=v.insertVertex(null,null,"<pre>"+d+"</pre>",f,k,1,1,"text;html=1;align=left;verticalAlign=top;"),v.updateCellSize(z,!0)}finally{v.getModel().endUpdate()}return z};EditorUi.prototype.insertTextAt=function(d,f,k,v,z,A,H,J){A=null!=A?A:!0;H=null!=H?H:!0;if(null!=d)if(Graph.fileSupport&&
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;try{this.rc.path(this.path.join(" "),Z)}catch(ka){}this.passThrough=!1}else if(null!=this.nextShape){for(var aa in Z)this.nextShape.options[aa]=Z[aa];Z.stroke!=mxConstants.NONE&&null!=Z.stroke||delete this.nextShape.options.stroke;Z.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};m.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};m.prototype.fill=function(){this.passThrough? this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};m.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};m.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=
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
3,EditorUi.prototype.menubarHeight=41,EditorUi.prototype.toolbarHeight=38);"sketch"==Editor.currentTheme&&(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(d,f,k,v,z,A,H){d=new ImageDialog(this,d,f,k,v,z,A,H);this.showDialog(d.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);d.init()};EditorUi.prototype.showLocalStorageDialog=function(d,f,k,v,z,A){var H=localStorage.getItem(f); d=new TextareaDialog(this,d,null!=H?JSON.stringify(JSON.parse(H),null,2):"",mxUtils.bind(this,function(J){if(null!=J)try{if(null!=A&&A(J),J==H)this.hideDialog();else{if(0<J.length){var O=JSON.parse(J);localStorage.setItem(f,JSON.stringify(O))}else localStorage.removeItem(f);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(G){this.handleError(G)}}),null,mxResources.get("close"),null,null,null,!0,null,null,z,k,v);this.showDialog(d.container,620,460,!0,!1);d.init()};EditorUi.prototype.showBackgroundImageDialog=
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.synchronizeFile(g,n)}))};DrawioFile.prototype.getErrorMessage=function(b){var e=null!=b?null!=b.error?b.error.message:b.message:null;null==e&&null!=b&&b.code==App.ERROR_TIMEOUT?e=mxResources.get("timeout"):"0"==e&&(e=mxResources.get("noResponse"));return e};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval};
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
x&&(new mxCodec(x.ownerDocument)).decode(x,this.getStylesheet())};Graph.prototype.createCellLookup=function(x,L){L=null!=L?L:{};for(var P=0;P<x.length;P++){var X=x[P];L[mxObjectIdentity.get(X)]=X.getId();for(var ea=this.model.getChildCount(X),la=0;la<ea;la++)this.createCellLookup([this.model.getChildAt(X,la)],L)}return L};Graph.prototype.createCellMapping=function(x,L,P){P=null!=P?P:{};for(var X in x){var ea=L[X];null==P[ea]&&(P[ea]=x[X].getId()||"")}return P};Graph.prototype.importGraphModel=function(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
x;x=document.createDocumentFragment();for(var X;X=P.firstChild;)lastNode=x.appendChild(X);L.insertNode(x)}}else(L=document.selection)&&"Control"!=L.type&&L.createRange().pasteHTML(x)};Graph.prototype.createLinkForHint=function(x,L){function P(ea,la){ea.length>la&&(ea=ea.substring(0,Math.round(la/2))+"..."+ea.substring(ea.length-Math.round(la/4)));return ea}x=null!=x?x:"javascript:void(0);";if(null==L||0==L.length)L=this.isCustomLink(x)?this.getLinkTitle(x):x;var X=document.createElement("a");X.setAttribute("rel", this.linkRelation);X.setAttribute("href",this.getAbsoluteUrl(x));X.setAttribute("title",P(this.isCustomLink(x)?this.getLinkTitle(x):x,80));null!=this.linkTarget&&X.setAttribute("target",this.linkTarget);mxUtils.write(X,P(L,40));this.isCustomLink(x)&&mxEvent.addListener(X,"click",mxUtils.bind(this,function(ea){this.customLinkClicked(x);mxEvent.consume(ea)}));return X};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};
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),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxArrow.prototype.constraints=null;Va.prototype.getConstraints=function(c,l,u){c=[];var p=Math.max(0,Math.min(l,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),t=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(1, 0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.75*l+.25*p,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+p),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+p),.5*(u+t)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+p),u));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0, 0),!1,null,.5*(l-p),u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-p),.5*(u+t)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-p),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*l-.25*p,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*t));return c};Ea.prototype.getConstraints=function(c,l,u){c=[];var p=Math.max(0,Math.min(l,parseFloat(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
mxStencilRegistry.parseStencilSet=function(b,e,g){if("stencils"==b.nodeName)for(var n=b.firstChild;null!=n;)"shapes"==n.nodeName&&mxStencilRegistry.parseStencilSet(n,e,g),n=n.nextSibling;else{g=null!=g?g:!0;n=b.firstChild;var y="";b=b.getAttribute("name");for(null!=b&&(y=b+".");null!=n;){if(n.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=n.getAttribute("name"),null!=b)){y=y.toLowerCase();var q=b.replace(/ /g,"_");g&&mxStencilRegistry.addStencil(y+q.toLowerCase(),new mxStencil(n));if(null!=e){var E=n.getAttribute("w"), N=n.getAttribute("h");E=null==E?80:parseInt(E,10);N=null==N?80:parseInt(N,10);e(y,q,b,E,N)}}n=n.nextSibling}}};
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
mxVertexHandler.prototype.getSelectionBounds=function(x){var L=this.graph.getModel(),P=L.getParent(x.cell),X=this.graph.getCellGeometry(x.cell);return L.isEdge(P)&&null!=X&&X.relative&&2>x.width&&2>x.height&&null!=x.text&&null!=x.text.boundingBox?(L=x.text.unrotatedBoundingBox||x.text.boundingBox,new mxRectangle(Math.round(L.x),Math.round(L.y),Math.round(L.width),Math.round(L.height))):Oa.apply(this,arguments)};var Qa=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(x, L){var P=this.graph.getModel(),X=P.getParent(this.state.cell),ea=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(L)==mxEvent.ROTATION_HANDLE||!P.isEdge(X)||null==ea||!ea.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Qa.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var x=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),L=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);
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
"none",e.style.display="none");var F=this;N.getImageFromBundles=function(R){return F.getImageUrl(R)};var K=n.createTemporaryGraph;n.createTemporaryGraph=function(){var R=K.apply(this,arguments);R.getImageFromBundles=function(W){return F.getImageUrl(W)};return R};this.graphConfig.move&&(N.isMoveCellsEvent=function(R){return!0});mxUtils.setPrefixedStyle(T.style,"border-radius","4px");T.style.position="fixed";GraphViewer.resizeSensorEnabled=!1;document.body.style.overflow="hidden";mxClient.IS_SF||mxClient.IS_EDGE||
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
B))};mxCellRenderer.registerShape("umlLifeline",Z);mxUtils.extend(aa,mxShape);aa.prototype.width=60;aa.prototype.height=30;aa.prototype.corner=10;aa.prototype.configurePointerEvents=function(c){var l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=l&&l!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(c.pointerEvents=!1)};aa.prototype.getLabelMargins=function(c){return new mxRectangle(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
Graph.createSvgNode=function(b,e,g,n,y){var q=mxUtils.createXmlDocument(),E=null!=q.createElementNS?q.createElementNS(mxConstants.NS_SVG,"svg"):q.createElement("svg");null!=y&&(null!=E.style?E.style.backgroundColor=y:E.setAttribute("style","background-color:"+y));null==q.createElementNS?(E.setAttribute("xmlns",mxConstants.NS_SVG),E.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):E.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);E.setAttribute("version","1.1"); E.setAttribute("width",g+"px");E.setAttribute("height",n+"px");E.setAttribute("viewBox",b+" "+e+" "+g+" "+n);q.appendChild(E);return E};Graph.htmlToPng=function(b,e,g,n){var y=document.createElement("canvas");y.width=e;y.height=g;var q=document.createElement("img");q.onload=mxUtils.bind(this,function(){y.getContext("2d").drawImage(q,0,0);n(y.toDataURL())});q.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml"><style>em{color:red;}</style><em>I</em> lick <span>cheese</span></div></foreignObject></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
EditorUi.prototype.createSelectionState=function(){for(var b=this.editor.graph,e=b.getSelectionCells(),g=this.initSelectionState(),n=!0,y=0;y<e.length;y++){var q=b.getCurrentCellStyle(e[y]);"0"!=mxUtils.getValue(q,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(g,e[y],e,n),n=!1)}this.updateSelectionStateForTableCells(g);return 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
Graph=function(b,e,g,n,y,q){mxGraph.call(this,b,e,g,n);this.themes=y||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=q?q:!1;b=this.baseUrl;e=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<e&&(e=b.indexOf("/",e+2),0<e&&(this.domainUrl=b.substring(0,e)),e=b.lastIndexOf("/"),0<e&&(this.domainPathUrl=b.substring(0,e+1)));this.isHtmlLabel=function(S){S=this.getCurrentCellStyle(S); return null!=S?"1"==S.html||"wrap"==S[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var E=null,N=null,T=null,F=null,K=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(S,U){if("mouseDown"==U.getProperty("eventName")&&this.isEnabled()){S=U.getProperty("event");var Q=S.getState();U=this.view.scale;if(!mxEvent.isAltDown(S.getEvent())&&null!=Q&&!this.panningHandler.isActive()&&!mxEvent.isControlDown(S.getEvent())){var Y=this.selectionCellsHandler.getHandler(Q.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
this.editor.getOrCreateFilename=function(){var U=d.defaultFilename,Q=d.getCurrentFile();null!=Q&&(U=null!=Q.getTitle()?Q.getTitle():U);return U};var ma=this.actions.get("print");ma.setEnabled(!mxClient.IS_IOS||!navigator.standalone);ma.visible=ma.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,"insertText"),this.keyHandler.bindAction(83,
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(S,U){return!1};this.alternateEdgeStyle="vertical";null==n&&this.loadStylesheet();var R=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var S=R.apply(this,arguments);if(this.graph.pageVisible){var U=[],Q=this.graph.pageFormat,Y=this.graph.pageScale,m=Q.width*Y;Q=Q.height*Y;Y=this.graph.view.translate;for(var C=this.graph.view.scale,M=this.graph.getPageLayout(),ba=0;ba<M.width;ba++)U.push(new mxRectangle(((M.x+ba)*m+Y.x)*C,(M.y*Q+Y.y)*C,m*C,Q*C));for(ba=1;ba<M.height;ba++)U.push(new mxRectangle((M.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
arguments);var P=this.graph.getEditingValue(x.cell,L);"1"==mxUtils.getValue(x.style,"nl2Br","1")&&(P=P.replace(/\n/g,"<br/>"));return P=Graph.sanitizeHtml(P,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(x){if("0"==mxUtils.getValue(x.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var L=Graph.sanitizeHtml(this.textarea.innerHTML,!0);return L="1"==mxUtils.getValue(x.style,"nl2Br","1")?L.replace(/\r\n/g, "<br/>").replace(/\n/g,"<br/>"):L.replace(/\r\n/g,"").replace(/\n/g,"")};var O=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(x){this.codeViewMode&&this.toggleViewMode();O.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(x){}};var G=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(x,L){this.graph.getModel().beginUpdate();try{G.apply(this,arguments),""==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
function W(){mxShape.call(this)}function d(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function z(){mxActor.call(this)}function A(){mxActor.call(this)}function H(){mxActor.call(this)}function J(){mxActor.call(this)}function O(){mxActor.call(this)}function G(){mxActor.call(this)}function ja(){mxActor.call(this)}function fa(c,l){this.canvas=c;this.canvas.setLineJoin("round");
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("loading")))for(var C=d.length,M=C,ba=[],V=mxUtils.bind(this,function(aa,ka){ba[aa]=ka;if(0==--M){this.spinner.stop();if(null!=J)J(ba);else{var qa=[];Y.getModel().beginUpdate();try{for(aa=0;aa<ba.length;aa++){var ra=ba[aa]();null!=ra&&(qa=qa.concat(ra))}}finally{Y.getModel().endUpdate()}}A(qa)}}),Z=0;Z<C;Z++)mxUtils.bind(this,function(aa){var ka=d[aa];if(null!=ka){var qa=new FileReader;qa.onload=mxUtils.bind(this,function(ra){if(null==H||H(ka))try{if("image/"==ka.type.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
return null!=this.corsRegExp&&this.corsRegExp.test(m)||"https://raw.githubusercontent.com/"===m.substring(0,34)||"https://fonts.googleapis.com/"===m.substring(0,29)||"https://fonts.gstatic.com/"===m.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var m=new mxUrlConverter;m.updateBaseUrl();var C=m.convert,M=this;m.convert=function(ba){if(null!=ba){var V="http://"==ba.substring(0,7)||"https://"==ba.substring(0,8);V&&!navigator.onLine?ba=Editor.svgBrokenImage.src:!V||ba.substring(0, m.baseUrl.length)==m.baseUrl||M.crossOriginImages&&M.isCorsEnabledForUrl(ba)?"chrome-extension://"==ba.substring(0,19)||mxClient.IS_CHROMEAPP||(ba=C.apply(this,arguments)):ba=PROXY_URL+"?url="+encodeURIComponent(ba)}return ba};return m};Editor.createSvgDataUri=function(m){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(m)))};Editor.prototype.convertImageToDataUri=function(m,C){try{var M=!0,ba=window.setTimeout(mxUtils.bind(this,function(){M=!1;C(Editor.svgBrokenImage.src)}),this.timeout);
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
(x=2);return x};var Q=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=function(){return Q.apply(this,arguments).grow(-this.getSelectionBorderInset())};var Y=null,m=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==Y&&(Y=mxCellRenderer.defaultShapes.tableLine);var x=m.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var L=function(bb, $a,Ra){for(var db=[],lb=0;lb<bb.length;lb++){var kb=bb[lb];db.push(null==kb?null:new mxPoint((sa+kb.x+$a)*la,(va+kb.y+Ra)*la))}return db},P=this,X=this.graph,ea=X.model,la=X.view.scale,oa=this.state,xa=this.selectionBorder,sa=this.state.origin.x+X.view.translate.x,va=this.state.origin.y+X.view.translate.y;null==x&&(x=[]);var Fa=X.view.getCellStates(ea.getChildCells(this.state.cell,!0));if(0<Fa.length){var Ua=ea.getChildCells(Fa[0].cell,!0),ab=X.getTableLines(this.state.cell,!1,!0),Na=X.getTableLines(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
!0;Editor.enableRealtime=!0;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.config=null;Editor.configVersion=null;Editor.defaultBorder=5;Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(m){m.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(m,C){return"1"==mxUtils.getValue(m.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
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,n,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title};
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);this.lastX=c;this.lastY=l};fa.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};var kb=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(c){kb.apply(this,arguments);null==c.handJiggle&&(c.handJiggle=this.createHandJiggle(c))};var Pa=mxShape.prototype.afterPaint;
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.createWipeAnimations=function(b,e){for(var g=[],n=0;n<b.length;n++){var y=this.view.getState(b[n]);null!=y&&null!=y.shape&&(this.model.isEdge(y.cell)&&null!=y.absolutePoints&&1<y.absolutePoints.length?g.push(this.createEdgeWipeAnimation(y,e)):this.model.isVertex(y.cell)&&null!=y.shape.bounds&&g.push(this.createVertexWipeAnimation(y,e)))}return 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
Editor.createRoughCanvas=function(m){var C=rough.canvas({getContext:function(){return m}});C.draw=function(M){var ba=M.sets||[];M=M.options||this.getDefaultOptions();for(var V=0;V<ba.length;V++){var Z=ba[V];switch(Z.type){case "path":null!=M.stroke&&this._drawToContext(m,Z,M);break;case "fillPath":this._drawToContext(m,Z,M);break;case "fillSketch":this.fillSketch(m,Z,M)}}};C.fillSketch=function(M,ba,V){var Z=m.state.strokeColor,aa=m.state.strokeWidth,ka=m.state.strokeAlpha,qa=m.state.dashed,ra=V.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
Graph.prototype.isViewer=function(){return!1};Graph.prototype.labelLinkClicked=function(b,e,g){var n=e.getAttribute("href");n!=Graph.sanitizeLink(n)&&Graph.sanitizeNode(e);if(null!=n&&!this.isCustomLink(n)&&(mxEvent.isLeftMouseButton(g)&&!mxEvent.isPopupTrigger(g)||mxEvent.isTouchEvent(g))){if(!this.isEnabled()||this.isCellLocked(b.cell))b=this.isBlankLink(n)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(n),b);mxEvent.consume(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
EditorUi.prototype.createTimeout=function(b,e,g){var n=!0,y=null,q=mxUtils.bind(this,function(N){y.clear()&&(n=!1,N=null!=N?N:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,e,g)})},null!=g?g(N):this.handleError(N))}),E=window.setTimeout(q,null!=b?b:this.timeout);y={clear:function(){window.clearTimeout(E);return n},isAlive:function(){return n}};null!=e&&this.tryAndHandle(mxUtils.bind(this,function(){e(y)}),q);return 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
mxUtils.bind(this,fa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,fa.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function ia(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function da(){mxActor.call(this)}function S(){mxActor.call(this)}function U(){mxRectangleShape.call(this)}function Q(){mxRectangleShape.call(this)}function Y(){mxCylinder.call(this)}function m(){mxShape.call(this)}function C(){mxShape.call(this)}function M(){mxEllipse.call(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
function X(){mxEllipse.call(this)}function ea(){mxEllipse.call(this)}function la(){mxRhombus.call(this)}function oa(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function sa(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Fa(){mxActor.call(this)}function Ua(){mxActor.call(this)}function ab(){mxActor.call(this)}function Na(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
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.resolvedFontCss&&this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(d,k),f(d)}catch(v){f(d)}}))}catch(k){f(d)}}))};EditorUi.prototype.exportImage=function(d,f,k,v,z,A,H,J,O,G,ja,fa,ca){O=null!=O?O:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var ia=this.editor.graph.isSelectionEmpty();k=null!=k?k:ia;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this, function(ma){this.spinner.stop();try{this.saveCanvas(ma,z?this.getFileData(!0,null,null,null,k,J):null,O,null==this.pages||0==this.pages.length,ja)}catch(da){this.handleError(da)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(ma){this.spinner.stop();this.handleError(ma)}),null,k,d||1,f,v,null,null,A,H,G,fa,ca)}catch(ma){this.spinner.stop(),this.handleError(ma)}}};EditorUi.prototype.isCorsEnabledForUrl=function(d){return this.editor.isCorsEnabledForUrl(d)};EditorUi.prototype.importXml=
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