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 |
|---|---|---|---|---|---|---|---|
C)}}}};Editor.trimCssUrl=function(m){return m.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(m){m=null!=m?m:Editor.GUID_LENGTH;for(var C=[],M=0;M<m;M++)C.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return C.join("")};Editor.updateStatusInterval= | 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!=T.ownerSVGElement&&(T=T.ownerSVGElement);var F=this.gridSize*this.view.scale*this.view.gridSteps;F=-Math.round(F-mxUtils.mod(this.view.translate.x*this.view.scale+E,F))+"px "+-Math.round(F-mxUtils.mod(this.view.translate.y*this.view.scale+N,F))+"px";T.style.backgroundPosition=F}};mxGraph.prototype.updatePageBreaks=function(E,N,T){var F=this.view.scale,K=this.view.translate,R=this.pageFormat,W=F*this.pageScale,d=this.view.getBackgroundPageBounds();N=d.width;T=d.height;var f=new mxRectangle(F*
K.x,F*K.y,R.width*W,R.height*W),k=(E=E&&Math.min(f.width,f.height)>this.minPageBreakDist)?Math.ceil(T/f.height)-1:0,v=E?Math.ceil(N/f.width)-1:0,z=d.x+N,A=d.y+T;null==this.horizontalPageBreaks&&0<k&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<v&&(this.verticalPageBreaks=[]);E=mxUtils.bind(this,function(H){if(null!=H){for(var J=H==this.horizontalPageBreaks?k:v,O=0;O<=J;O++){var G=H==this.horizontalPageBreaks?[new mxPoint(Math.round(d.x),Math.round(d.y+(O+1)*f.height)),new mxPoint(Math.round(z),
Math.round(d.y+(O+1)*f.height))]:[new mxPoint(Math.round(d.x+(O+1)*f.width),Math.round(d.y)),new mxPoint(Math.round(d.x+(O+1)*f.width),Math.round(A))];null!=H[O]?(H[O].points=G,H[O].redraw()):(G=new mxPolyline(G,this.pageBreakColor),G.dialect=this.dialect,G.isDashed=this.pageBreakDashed,G.pointerEvents=!1,G.init(this.view.backgroundPane),G.redraw(),H[O]=G)}for(O=J;O<H.length;O++)null!=H[O]&&H[O].destroy();H.splice(J,H.length-J)}});E(this.horizontalPageBreaks);E(this.verticalPageBreaks)};var e=mxGraphHandler.prototype.shouldRemoveCellsFromParent; | 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,g);this.ui.actions.get("share").funct()}))}))}),null,mxResources.get("saveToGoogleDrive",null,"Save to Google Drive"),mxResources.get("cancel")):this.ui.alert(mxResources.get("sharingAvailable"),null,380)};DrawioFile.prototype.getHash=function(){return""};DrawioFile.prototype.getId=function(){return""};DrawioFile.prototype.isEditable=function(){return!this.ui.editor.isChromelessView()||this.ui.editor.editable};DrawioFile.prototype.getUi=function(){return this.ui};DrawioFile.prototype.getTitle=function(){return""}; | 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=null!=m?m:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var ba=null;Editor.doMathJaxRender=function(aa){try{null==ba?(MathJax.typesetClear([aa]),MathJax.typeset([aa]),M()):ba!=aa&&Editor.mathJaxQueue.push(aa)}catch(ka){MathJax.typesetClear([aa]),null!=ka.retry?(ba=aa,ka.retry.then(function(){MathJax.typesetPromise([aa]).then(M)["catch"](function(qa){console.log("Error in MathJax.typesetPromise: "+qa.toString());M()})})["catch"](function(qa){console.log("Error in MathJax.retry: "+qa.toString());
M()})):null!=window.console&&console.log("Error in MathJax.typeset: "+ka.toString())}};window.MathJax=null!=C?C:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var aa=0;aa<Editor.mathJaxQueue.length;aa++)Editor.doMathJaxRender(Editor.mathJaxQueue[aa])}}};Editor.MathJaxRender=function(aa){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(aa): | 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.showTextDialog=function(d,f){d=new TextareaDialog(this,d,f,null,null,mxResources.get("close"));this.showDialog(d.container,620,460,!0,!0,null,null,null,null,!0);d.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(d,f,k,v,z,A){"text/xml"!=k||/(\.drawio)$/i.test(f)||/(\.xml)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.html)$/i.test(f)||(f=f+"."+(null!=A?A:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)d=v?this.base64ToBlob(d,k):new Blob([d],
{type:k}),navigator.msSaveOrOpenBlob(d,f);else if(mxClient.IS_IE)k=window.open("about:blank","_blank"),null==k?mxUtils.popup(d,!0):(k.document.write(d),k.document.close(),k.document.execCommand("SaveAs",!0,f),k.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==k||"image/"!=k.substring(0,6)?this.showTextDialog(f+":",d):this.openInNewWindow(d,k,v);else{var H=document.createElement("a");A=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==
typeof H.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var J=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);A=65==(J?parseInt(J[2],10):!1)?!1:A}if(A||this.isOffline()){H.href=URL.createObjectURL(v?this.base64ToBlob(d,k):new Blob([d],{type:k}));A?H.download=f:H.setAttribute("target","_blank");document.body.appendChild(H);try{window.setTimeout(function(){URL.revokeObjectURL(H.href)},2E4),H.click(),H.parentNode.removeChild(H)}catch(O){}}else this.createEchoRequest(d,f,k,v,z).simulate(document,
"_blank")}};EditorUi.prototype.createEchoRequest=function(d,f,k,v,z,A){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,d+(null!=k?"&mime="+k:"")+(null!=z?"&format="+z:"")+(null!=A?"&base64="+A:"")+(null!=f?"&filename="+encodeURIComponent(f):"")+(v?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(d,f){f=f||"";d=atob(d);for(var k=d.length,v=Math.ceil(k/1024),z=Array(v),A=0;A<v;++A){for(var H=1024*A,J=Math.min(H+1024,k),O=Array(J-H),G=0;H<J;++G,++H)O[G]=d[H].charCodeAt(0);z[A]= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
t-D/2;c.begin();c.moveTo(l,u);c.lineTo(l,u+t);c.moveTo(l+B,ha);c.lineTo(l+B+D,ha-D/2);c.moveTo(l+B,ha);c.lineTo(l+B+D,ha+D/2);c.moveTo(l+B,ha);c.lineTo(l+p-B,ha);c.moveTo(l+p,u);c.lineTo(l+p,u+t);c.moveTo(l+p-B,ha);c.lineTo(l+p-D-B,ha-D/2);c.moveTo(l+p-B,ha);c.lineTo(l+p-D-B,ha+D/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",xa);mxUtils.extend(sa,mxEllipse);sa.prototype.drawHidden=!0;sa.prototype.paintVertexShape=function(c,l,u,p,t){this.outline||c.setStrokeColor(null);if(null!=
this.style){var B=c.pointerEvents,D=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||D||(c.pointerEvents=!1);var ha="1"==mxUtils.getValue(this.style,"top","1"),I="1"==mxUtils.getValue(this.style,"left","1"),ua="1"==mxUtils.getValue(this.style,"right","1"),na="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||D||this.outline||ha||ua||na||I?(c.rect(l,u,p,t),c.fill(),c.pointerEvents=B,c.setStrokeColor(this.stroke),c.setLineCap("square"),
c.begin(),c.moveTo(l,u),this.outline||ha?c.lineTo(l+p,u):c.moveTo(l+p,u),this.outline||ua?c.lineTo(l+p,u+t):c.moveTo(l+p,u+t),this.outline||na?c.lineTo(l,u+t):c.moveTo(l,u+t),(this.outline||I)&&c.lineTo(l,u),c.end(),c.stroke(),c.setLineCap("flat")):c.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",sa);mxUtils.extend(va,mxEllipse);va.prototype.paintVertexShape=function(c,l,u,p,t){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();"vertical"== | 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.extractGraphModelFromHtml=function(b){var e=null;try{var g=b.indexOf("<mxGraphModel ");if(0<=g){var n=b.lastIndexOf("</mxGraphModel>");n>g&&(e=b.substring(g,n+21).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}}catch(y){}return 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 |
function(K){y.apply(this,arguments);this.graph.model.isEdge(K.cell)&&1!=K.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(K)};mxGraphView.prototype.updateLineJumps=function(K){var R=K.absolutePoints;if(Graph.lineJumpsEnabled){var W=null!=K.routedPoints,d=null;if(null!=R&&null!=this.validEdges&&"none"!==mxUtils.getValue(K.style,"jumpStyle","none")){var f=function(ia,ma,da){var S=new mxPoint(ma,da);S.type=ia;d.push(S);S=null!=K.routedPoints?K.routedPoints[d.length-1]:null;return null==S||S.type!=
ia||S.x!=ma||S.y!=da},k=.5*this.scale;W=!1;d=[];for(var v=0;v<R.length-1;v++){for(var z=R[v+1],A=R[v],H=[],J=R[v+2];v<R.length-2&&mxUtils.ptSegDistSq(A.x,A.y,J.x,J.y,z.x,z.y)<1*this.scale*this.scale;)z=J,v++,J=R[v+2];W=f(0,A.x,A.y)||W;for(var O=0;O<this.validEdges.length;O++){var G=this.validEdges[O],ja=G.absolutePoints;if(null!=ja&&mxUtils.intersects(K,G)&&"1"!=G.style.noJump)for(G=0;G<ja.length-1;G++){var fa=ja[G+1],ca=ja[G];for(J=ja[G+2];G<ja.length-2&&mxUtils.ptSegDistSq(ca.x,ca.y,J.x,J.y,fa.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 |
DrawioFile.prototype.fileSaved=function(b,e,g,n,y){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;var q=this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(q),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=g&&g()):this.sync.fileSaved(q,e,g,n,y)}catch(T){this.invalidChecksum=this.inConflictState=
!0;this.descriptorChanged();null!=n&&n(T);try{if(this.errorReportsEnabled)this.sendErrorReport("Error in fileSaved",null,T);else{var E=this.getCurrentUser(),N=null!=E?E.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),N,T)}}catch(F){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(T){this.descriptorChanged(),null!=n&&n(T)}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
[mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_NORTH],Pa=mxUtils.getValue(lb.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);this.setCellStyles(mxConstants.STYLE_DIRECTION,kb[mxUtils.mod(mxUtils.indexOf(kb,Pa)+(L?-1:1),kb.length)],[la])}X.push(la)}}}finally{P.endUpdate()}return X};Graph.prototype.stencilHasPlaceholders=function(x){if(null!=x&&null!=x.fgNode)for(x=x.fgNode.firstChild;null!=x;){if("text"==x.nodeName&&"1"==x.getAttribute("placeholders"))return!0;
x=x.nextSibling}return!1};var f=Graph.prototype.processChange;Graph.prototype.processChange=function(x){if(x instanceof mxGeometryChange&&(this.isTableCell(x.cell)||this.isTableRow(x.cell))&&(null==x.previous&&null!=x.geometry||null!=x.previous&&!x.previous.equals(x.geometry))){var L=x.cell;this.isTableCell(L)&&(L=this.model.getParent(L));this.isTableRow(L)&&(L=this.model.getParent(L));var P=this.view.getState(L);null!=P&&null!=P.shape&&(this.view.invalidate(L),P.shape.bounds=null)}f.apply(this,arguments); | 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 |
new mxElbowEdgeHandler(c);u.snapToTerminals=!1;return u}return Cb.apply(this,arguments)};E.prototype.constraints=[];N.prototype.getConstraints=function(c,l,u){c=[];var p=Math.tan(mxUtils.toRadians(30)),t=(.5-p)/2;p=Math.min(l,u/(.5+p));l=(l-p)/2;u=(u-p)/2;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,u+.25*p));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+.5*p,u+p*t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+p,u+.25*p));c.push(new mxConnectionConstraint(new mxPoint(0, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.createCellLookup(x)),P);return la.encode(oa)};Graph.prototype.isSwimlane=function(x,L){var P=null;null==x||this.model.isEdge(x)||this.model.getParent(x)==this.model.getRoot()||(P=this.getCurrentCellStyle(x,L)[mxConstants.STYLE_SHAPE]);return P==mxConstants.SHAPE_SWIMLANE||"table"==P||"tableRow"==P};var N=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(x){return null!=x&&N.apply(this,arguments)?this.isTableCell(x)||this.isTableRow(x)?this.isCellEditable(this.model.getParent(x)):
!0:!1};var T=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=function(x){return null!=x&&T.apply(this,arguments)?this.isTableCell(x)||this.isTableRow(x)?this.isCellMovable(this.model.getParent(x)):!0:!1};var F=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(x){var L=this.model.getParent(x);if(null!=L){var P=this.getCurrentCellStyle(L);if(null!=P.expand)return"0"!=P.expand}return F.apply(this,arguments)&&(null==L||!this.isTable(L))};var K=Graph.prototype.splitEdge; | 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 |
ha+.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"==D&&"fold"==B)&&c.lineTo(I,ha+I):c.lineTo(0,0)};Na.prototype.paintFolds=function(c,l,u,p,t,B,D,ha,I,ua,na,Za,qb,fb,Ga){if("fold"==B||"fold"==D||"fold"==ha||"fold"==I||"fold"==ua)("fold"==D||"default"==D&&"fold"==B)&&Za&&Ga&&(c.moveTo(0,na),c.lineTo(na,na),c.lineTo(na,0)),("fold"==ha||"default"==ha&&"fold"==B)&&Za&&qb&&(c.moveTo(p-na,0),c.lineTo(p-na,na),c.lineTo(p,na)),("fold"==I||"default"==I&&"fold"==B)&&fb&&qb&&(c.moveTo(p-
na,t),c.lineTo(p-na,t-na),c.lineTo(p,t-na)),("fold"==ua||"default"==ua&&"fold"==B)&&fb&&Ga&&(c.moveTo(0,t-na),c.lineTo(na,t-na),c.lineTo(na,t))};mxCellRenderer.registerShape(Na.prototype.cst.RECT2,Na);Na.prototype.constraints=null;mxUtils.extend(bb,mxConnector);bb.prototype.origPaintEdgeShape=bb.prototype.paintEdgeShape;bb.prototype.paintEdgeShape=function(c,l,u){for(var p=[],t=0;t<l.length;t++)p.push(mxUtils.clone(l[t]));t=c.state.dashed;var B=c.state.fixDash;bb.prototype.origPaintEdgeShape.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 |
ha.positionChanged=function(){I.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return ha},Ab={link:function(c){return[mb(c,!0,10),mb(c,!1,10)]},flexArrow:function(c){var l=c.view.graph.gridSize/c.view.scale,u=[];mxUtils.getValue(c.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(u.push(wb(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(p,t,B,D,ha){p=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;ha=3*mxUtils.getNumber(c.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 |
mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(c,l,u,p){var t="0"!=mxUtils.getValue(l.style,"fixedSize","0"),B=t?da.prototype.fixedSize:da.prototype.size;null!=l&&(B=mxUtils.getValue(l.style,"size",B));t&&(B*=l.view.scale);var D=c.x,ha=c.y,I=c.width,ua=c.height,na=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(t=t?Math.max(0,Math.min(I,B)):I*Math.max(0,
Math.min(1,B)),ha=[new mxPoint(D,ha),new mxPoint(D+I-t,ha),new mxPoint(D+I,c),new mxPoint(D+I-t,ha+ua),new mxPoint(D,ha+ua),new mxPoint(D+t,c),new mxPoint(D,ha)]):l==mxConstants.DIRECTION_WEST?(t=t?Math.max(0,Math.min(I,B)):I*Math.max(0,Math.min(1,B)),ha=[new mxPoint(D+t,ha),new mxPoint(D+I,ha),new mxPoint(D+I-t,c),new mxPoint(D+I,ha+ua),new mxPoint(D+t,ha+ua),new mxPoint(D,c),new mxPoint(D+t,ha)]):l==mxConstants.DIRECTION_NORTH?(t=t?Math.max(0,Math.min(ua,B)):ua*Math.max(0,Math.min(1,B)),ha=[new mxPoint(D,
ha+t),new mxPoint(na,ha),new mxPoint(D+I,ha+t),new mxPoint(D+I,ha+ua),new mxPoint(na,ha+ua-t),new mxPoint(D,ha+ua),new mxPoint(D,ha+t)]):(t=t?Math.max(0,Math.min(ua,B)):ua*Math.max(0,Math.min(1,B)),ha=[new mxPoint(D,ha),new mxPoint(na,ha+t),new mxPoint(D+I,ha),new mxPoint(D+I,ha+ua-t),new mxPoint(na,ha+ua),new mxPoint(D,ha+ua-t),new mxPoint(D,ha)]);na=new mxPoint(na,c);p&&(u.x<D||u.x>D+I?na.y=u.y:na.x=u.x);return mxUtils.getPerimeterPoint(ha,na,u)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter); | 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");
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)&& | 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 |
HoverIcons.prototype.update=function(b,e,g){if(!this.graph.connectionArrowsEnabled||null!=this.graph.freehand&&this.graph.freehand.isDrawing()||null!=b&&"0"==mxUtils.getValue(b.style,"allowArrows","1"))this.reset();else{null!=b&&null!=b.cell.geometry&&b.cell.geometry.relative&&this.graph.model.isEdge(b.cell.parent)&&(b=null);var n=null;this.prev!=b||this.isActive()?(this.startTime=(new Date).getTime(),this.prev=b,n=0,null!=this.updateThread&&window.clearTimeout(this.updateThread),null!=b&&(this.updateThread=
window.setTimeout(mxUtils.bind(this,function(){this.isActive()||this.graph.isMouseDown||this.graph.panningHandler.isActive()||(this.prev=b,this.update(b,e,g))}),this.updateDelay+10))):null!=this.startTime&&(n=(new Date).getTime()-this.startTime);this.setDisplay("");null!=this.currentState&&this.currentState!=b&&n<this.activationDelay&&null!=this.bbox&&!mxUtils.contains(this.bbox,e,g)?this.reset(!1):(null!=this.currentState||n>this.activationDelay)&&this.currentState!=b&&(n>this.updateDelay&&null!=
b||null==this.bbox||null==e||null==g||!mxUtils.contains(this.bbox,e,g))&&(null!=b&&this.graph.isEnabled()?(this.removeNodes(),this.setCurrentState(b),this.repaint(),this.graph.connectionHandler.constraintHandler.currentFocus!=b&&this.graph.connectionHandler.constraintHandler.reset()):this.reset())}}; | 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.lineTo(0,t-ha);else c.lineTo(0,t)};Na.prototype.paintNWInner=function(c,l,u,p,t,B,D,ha,I){if("rounded"==D||"default"==D&&"rounded"==B)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,I,.5*I+ha);else if("invRound"==D||"default"==D&&"invRound"==B)c.arcTo(ha+I,ha+I,0,0,1,I,I+ha);else if("snip"==D||"default"==D&&"snip"==B)c.lineTo(I,.5*I+ha);else if("fold"==D||"default"==D&&"fold"==B)c.lineTo(I+ha,I+ha),c.lineTo(I,I+ha)};Na.prototype.paintTopInner=function(c,l,u,p,t,B,D,ha,I,ua,na){ua||na?!ua&&na?c.lineTo(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(S){if(!this.isEnabled()||this.isCellLocked(S)){if(null!=this.getClickableLinkForCell(S))return"pointer";if(this.isCellLocked(S))return"default"}return fa.apply(this,arguments)};this.selectRegion=function(S,U){var Q=mxEvent.isAltDown(U)?S:null;S=this.getCells(S.x,S.y,S.width,S.height,null,null,Q,null,!0);if(this.isToggleEvent(U))for(Q=0;Q<S.length;Q++)this.selectCellForEvent(S[Q],U);else this.selectCellsForEvent(S,U);return S};var ca=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent= | 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 ChangePageSetup(b,e,g,n,y){this.ui=b;this.previousColor=this.color=e;this.previousImage=this.image=g;this.previousFormat=this.format=n;this.previousPageScale=this.pageScale=y;this.ignoreImage=this.ignoreColor=!1} | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){var x=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+x.x/2,this.bounds.y+this.rotationHandleVSpacing-x.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(x,L){return this.graph.isRecursiveVertexResize(x)&&!mxEvent.isAltDown(L.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(x,L){return mxEvent.isControlDown(L.getEvent())||mxEvent.isMetaDown(L.getEvent())};var da=mxVertexHandler.prototype.isRotationHandleVisible; | 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.showError=function(b,e,g,n,y,q,E,N,T,F,K,R,W){b=new ErrorDialog(this,b,e,g||mxResources.get("ok"),n,y,q,E,R,N,T);e=Math.ceil(null!=e?e.length/50:1);this.showDialog(b.container,F||340,K||100+20*e,!0,!1,W);b.init()};EditorUi.prototype.showDialog=function(b,e,g,n,y,q,E,N,T,F){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,e,g,n,y,q,E,N,T,F);this.dialogs.push(this.dialog)}; | 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.zapGremlins=function(b){for(var e=0,g=[],n=0;n<b.length;n++){var y=b.charCodeAt(n);(32<=y||9==y||10==y||13==y)&&65535!=y&&65534!=y||(g.push(b.substring(e,n)),e=n+1)}0<e&&e<b.length&&g.push(b.substring(e));return 0==g.length?b:g.join("")};Graph.stringToBytes=function(b){for(var e=Array(b.length),g=0;g<b.length;g++)e[g]=b.charCodeAt(g);return e};Graph.bytesToString=function(b){for(var e=Array(b.length),g=0;g<b.length;g++)e[g]=String.fromCharCode(b[g]);return e.join("")}; | 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.executeLayout=function(b,e,g){var n=this.editor.graph;n.getModel().beginUpdate();try{b()}catch(y){throw y;}finally{this.allowAnimation&&e&&n.isEnabled()?(b=new mxMorphing(n),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){n.getModel().endUpdate();null!=g&&g()})),b.startAnimation()):(n.getModel().endUpdate(),null!=g&&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.rewritePageLinks=function(b){function e(n,y){var q=n.getAttribute(y);null!=q&&Graph.isPageLink(q)&&n.setAttribute(y,"#"+q.substring(q.indexOf(":")+1))}b=b.getElementsByTagName("a");for(var g=0;g<b.length;g++)e(b[g],"href"),e(b[g],"xlink:href")};Graph.isLink=function(b){return null!=b&&Graph.linkPattern.test(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 |
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"==
D&&"fold"==B)&&c.lineTo(I,t-ha-I):c.lineTo(0,t-I)};Na.prototype.moveSEInner=function(c,l,u,p,t,B,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==B?c.moveTo(p-I,t-I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.moveTo(p-I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"==D&&"fold"==B)&&c.moveTo(p-I,t-ha-I):c.moveTo(p-I,t)};Na.prototype.lineSEInner=function(c,l,u,p,t,B,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==B?c.lineTo(p-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 |
null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(C){this.resolvedFontCss=C;null!=m&&m()})):null!=m&&m()};Editor.prototype.createGoogleFontCache=function(){var m={},C;for(C in Graph.fontMapping)Graph.isCssFontUrl(C)&&(m[C]=Graph.fontMapping[C]);return m};Editor.prototype.embedExtFonts=function(m){var C=this.graph.getCustomFonts();if(0<C.length){var M=[],ba=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var V=mxUtils.bind(this,
function(){0==ba&&this.embedCssFonts(M.join(""),m)}),Z=0;Z<C.length;Z++)mxUtils.bind(this,function(aa,ka){Graph.isCssFontUrl(ka)?null==this.cachedGoogleFonts[ka]?(ba++,this.loadUrl(ka,mxUtils.bind(this,function(qa){this.cachedGoogleFonts[ka]=qa;M.push(qa+"\n");ba--;V()}),mxUtils.bind(this,function(qa){ba--;M.push("@import url("+ka+");\n");V()}))):M.push(this.cachedGoogleFonts[ka]+"\n"):M.push('@font-face {font-family: "'+aa+'";src: url("'+ka+'")}\n')})(C[Z].name,C[Z].url);V()}else m()};Editor.prototype.addMathCss= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
k())}),d.name):k()}):O||k()}},function(A){k(A)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?z():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",z,null,null,null,k))};EditorUi.prototype.importFile=function(d,f,k,v,z,A,H,J,O,G,ja,fa){G=null!=G?G:!0;var ca=!1,ia=null,ma=mxUtils.bind(this,function(da){var S=null;null!=da&&"<mxlibrary"==da.substring(0,10)?this.loadLibrary(new LocalLibrary(this,da,H)):S=this.importXml(da,k,v,G,null,null!=fa?mxEvent.isControlDown(fa):
null);null!=J&&J(S)});"image"==f.substring(0,5)?(O=!1,"image/png"==f.substring(0,9)&&(f=ja?null:this.extractGraphModelFromPng(d),null!=f&&0<f.length&&(ia=this.importXml(f,k,v,G,null,null!=fa?mxEvent.isControlDown(fa):null),O=!0)),O||(f=this.editor.graph,O=d.indexOf(";"),0<O&&(d=d.substring(0,O)+d.substring(d.indexOf(",",O+1))),G&&f.isGridEnabled()&&(k=f.snap(k),v=f.snap(v)),ia=[f.insertVertex(null,null,"",k,v,z,A,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
d+";")])):/(\.*<graphml )/.test(d)?(ca=!0,this.importGraphML(d,ma)):null!=O&&null!=H&&(/(\.v(dx|sdx?))($|\?)/i.test(H)||/(\.vs(x|sx?))($|\?)/i.test(H))?(ca=!0,this.importVisio(O,ma)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,H)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(ca=!0,z=mxUtils.bind(this,function(da){4==da.readyState&&(200<=da.status&&299>=da.status?ma(da.responseText):null!=J&&(J(null),this.showError(mxResources.get("error"),413== | 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 |
PageSetupDialog.addPageFormatPanel=function(b,e,g,n){function y(O,G,ja){if(ja||R!=document.activeElement&&W!=document.activeElement){O=!1;for(G=0;G<f.length;G++)ja=f[G],A?"custom"==ja.key&&(N.value=ja.key,A=!1):null!=ja.format&&("a4"==ja.key?826==g.width?(g=mxRectangle.fromRectangle(g),g.width=827):826==g.height&&(g=mxRectangle.fromRectangle(g),g.height=827):"a5"==ja.key&&(584==g.width?(g=mxRectangle.fromRectangle(g),g.width=583):584==g.height&&(g=mxRectangle.fromRectangle(g),g.height=583)),g.width==
ja.format.width&&g.height==ja.format.height?(N.value=ja.key,q.setAttribute("checked","checked"),q.defaultChecked=!0,q.checked=!0,E.removeAttribute("checked"),E.defaultChecked=!1,E.checked=!1,O=!0):g.width==ja.format.height&&g.height==ja.format.width&&(N.value=ja.key,q.removeAttribute("checked"),q.defaultChecked=!1,q.checked=!1,E.setAttribute("checked","checked"),E.defaultChecked=!0,O=E.checked=!0));O?(T.style.display="",K.style.display="none"):(R.value=g.width/100,W.value=g.height/100,q.setAttribute("checked",
"checked"),N.value="custom",T.style.display="none",K.style.display="")}}e="format-"+e;var q=document.createElement("input");q.setAttribute("name",e);q.setAttribute("type","radio");q.setAttribute("value","portrait");var E=document.createElement("input");E.setAttribute("name",e);E.setAttribute("type","radio");E.setAttribute("value","landscape");var N=document.createElement("select");N.style.marginBottom="8px";N.style.borderRadius="4px";N.style.borderWidth="1px";N.style.borderStyle="solid";N.style.width= | 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){if(!this.isEnabled()||this.isCellLocked(S)){if(null!=this.getClickableLinkForCell(S))return"pointer";if(this.isCellLocked(S))return"default"}return fa.apply(this,arguments)};this.selectRegion=function(S,U){var Q=mxEvent.isAltDown(U)?S:null;S=this.getCells(S.x,S.y,S.width,S.height,null,null,Q,null,!0);if(this.isToggleEvent(U))for(Q=0;Q<S.length;Q++)this.selectCellForEvent(S[Q],U);else this.selectCellsForEvent(S,U);return S};var ca=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent= | 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.getCellAt(eb.getGraphX(),eb.getGraphY())||oa.cell;X.graphHandler.selectCellForEvent(jb,eb)}kb=0};$a.positionChanged=function(){};$a.reset=function(){kb=0};x.push($a)})(ea)}}return null!=x?x.reverse():null};var C=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(x){C.apply(this,arguments);if(null!=this.moveHandles)for(var L=0;L<this.moveHandles.length;L++)null!=this.moveHandles[L]&&(this.moveHandles[L].node.style.visibility=x?"":"hidden");if(null!=this.cornerHandles)for(L=
0;L<this.cornerHandles.length;L++)this.cornerHandles[L].node.style.visibility=x?"":"hidden"};mxVertexHandler.prototype.isMoveHandlesVisible=function(){return this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)};mxVertexHandler.prototype.refreshMoveHandles=function(){var x=this.isMoveHandlesVisible();x&&null==this.moveHandles?this.moveHandles=this.createMoveHandles():x||null==this.moveHandles||this.destroyMoveHandles();if(x&&null==this.moveHandles){for(x=0;x<this.moveHandles.length;x++)null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(m){m=m.substring(m.indexOf(",")+1);m=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0);if("%PDF-1.7"==m.substring(0,8)){var C=m.indexOf("EmbeddedFile");if(-1<C){var M=m.indexOf("stream",C)+9;if(0<m.substring(C,M).indexOf("application#2Fvnd.jgraph.mxfile"))return C=m.indexOf("endstream",M-1),pako.inflateRaw(Graph.stringToArrayBuffer(m.substring(M,C)),{to:"string"})}return null}M=null;C="";for(var ba=0,V=0,Z=[],aa=null;V<m.length;){var ka=m.charCodeAt(V);V+=1;10!=ka&&(C+=String.fromCharCode(ka));
ka=="/Subject (%3Cmxfile".charCodeAt(ba)?ba++:ba=0;if(19==ba){var qa=m.indexOf("%3C%2Fmxfile%3E)",V)+15;V-=9;if(qa>V){M=m.substring(V,qa);break}}10==ka&&("endobj"==C?aa=null:"obj"==C.substring(C.length-3,C.length)||"xref"==C||"trailer"==C?(aa=[],Z[C.split(" ")[0]]=aa):null!=aa&&aa.push(C),C="")}null==M&&(M=Editor.extractGraphModelFromXref(Z));null!=M&&(M=decodeURIComponent(M.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return M};Editor.extractGraphModelFromXref=function(m){var C=m.trailer,M=null;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 |
mxConstants.STYLE_DASHED,"0")&&K[1].setAttribute("stroke-dasharray",8*this.state.view.scale);var R=this.state.view.graph.getFlowAnimationStyle();null!=R&&K[1].setAttribute("class",R.getAttribute("id"))}}};var n=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(K,R){return n.apply(this,arguments)||null!=K.routedPoints&&null!=R.routedPoints&&!mxUtils.equalPoints(R.routedPoints,K.routedPoints)};var y=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState= | 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;this.graph.setEnabled(!1);1==this.graphConfig["toolbar-nohide"]&&(this.editor.defaultGraphOverflow="visible");this.xmlNode=this.editor.extractGraphModel(this.xmlNode,!0);this.xmlNode!=e&&(this.xml=mxUtils.getXml(this.xmlNode),this.xmlDocument=this.xmlNode.ownerDocument);var N=this;this.graph.getImageFromBundles=function(k){return N.getImageUrl(k)};mxClient.IS_SVG&&this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement,null,!0);if("mxfile"==this.xmlNode.nodeName){var T=this.xmlNode.getElementsByTagName("diagram"); | 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 ba(){mxShape.call(this)}function V(){mxShape.call(this)}function Z(){mxRectangleShape.call(this)}function aa(){mxShape.call(this)}function ka(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function pa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Da(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function ya(){mxDoubleEllipse.call(this)}function Oa(){mxDoubleEllipse.call(this)}function Qa(){mxArrowConnector.call(this);
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Ca(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function P(){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(){return n.apply(this,arguments)||null!=e.shapePicker||null!=e.currentMenu};var y=b.dblClick;b.dblClick=function(T,F){if(this.isEnabled())if(null!=F||null==e.sidebar||mxEvent.isShiftDown(T)||b.isCellLocked(b.getDefaultParent()))y.apply(this,arguments);else{var K=mxUtils.convertPoint(this.container,mxEvent.getClientX(T),mxEvent.getClientY(T));mxEvent.consume(T);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(K.x,K.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset", | 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 |
38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},T=y.getFunction;mxKeyHandler.prototype.getFunction=function(R){if(n.isEnabled()){if(mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)){var W=g.actions.get(g.altShiftActions[R.keyCode]);if(null!=W)return W.funct}if(null!=N[R.keyCode]&&!n.isSelectionEmpty())if(!this.isControlDown(R)&&mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)){if(n.model.isVertex(n.getSelectionCell()))return function(){var d=n.connectVertex(n.getSelectionCell(),
N[R.keyCode],n.defaultEdgeLength,R,!0);null!=d&&0<d.length&&(1==d.length&&n.model.isEdge(d[0])?n.setSelectionCell(n.model.getTerminal(d[0],!1)):n.setSelectionCell(d[d.length-1]),n.scrollCellToVisible(n.getSelectionCell()),null!=g.hoverIcons&&g.hoverIcons.update(n.view.getState(n.getSelectionCell())))}}else return this.isControlDown(R)?function(){e(R.keyCode,mxEvent.isShiftDown(R)?n.gridSize:null,!0)}:function(){e(R.keyCode,mxEvent.isShiftDown(R)?n.gridSize:null)}}return T.apply(this,arguments)};y.bindAction= | 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,g);this.ui.actions.get("share").funct()}))}))}),null,mxResources.get("saveToGoogleDrive",null,"Save to Google Drive"),mxResources.get("cancel")):this.ui.alert(mxResources.get("sharingAvailable"),null,380)};DrawioFile.prototype.getHash=function(){return""};DrawioFile.prototype.getId=function(){return""};DrawioFile.prototype.isEditable=function(){return!this.ui.editor.isChromelessView()||this.ui.editor.editable};DrawioFile.prototype.getUi=function(){return this.ui};DrawioFile.prototype.getTitle=function(){return""}; | 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.style[mxConstants.STYLE_ROTATION]||"0"):this.state,L=null!=this.state.text?this.state.text.boundingBox:null,null==P&&(P=this.state),P=P.y+P.height,null!=L&&(P=Math.max(P,L.y+L.height)),this.linkHint.style.left=Math.max(0,Math.round(x.x+(x.width-this.linkHint.clientWidth)/2))+"px",this.linkHint.style.top=Math.round(P+this.verticalOffset/2+Editor.hintOffset)+"px")};var Ka=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){Ka.apply(this,arguments);this.destroyMoveHandles();
if(null!=this.cornerHandles){for(var x=0;x<this.cornerHandles.length;x++)null!=this.cornerHandles[x]&&null!=this.cornerHandles[x].node&&null!=this.cornerHandles[x].node.parentNode&&this.cornerHandles[x].node.parentNode.removeChild(this.cornerHandles[x].node);this.cornerHandles=null}null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),
this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var cb=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(cb.apply(this),null!=this.state&&null!=this.linkHint)){var x=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(x=new mxRectangle(x.x,x.y,x.width,x.height),x.add(this.state.text.bounds)); | 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 |
type:"bool",getDefaultValue:function(m,C){m=C.editorUi.editor.graph.getCellStyle(1==m.vertices.length&&0==m.edges.length?m.vertices[0]:null);return"1"==mxUtils.getValue(m,"resizeLastRow","0")},isVisible:function(m,C){C=C.editorUi.editor.graph;return 1==m.vertices.length&&0==m.edges.length&&C.isTable(m.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(m,C){m=C.editorUi.editor.graph.getCellStyle(1==m.vertices.length&&0==m.edges.length?m.vertices[0]: | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.path.push(this.canvas.format(this.lastY))};m.prototype.lineTo=function(Z,aa){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,Z,aa),this.lastX=Z,this.lastY=aa)};m.prototype.moveTo=function(Z,aa){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,Z,aa),this.lastX=Z,this.lastY=aa,this.firstX=Z,this.firstY=aa)};m.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)}; | 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=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(",
Z);0<ka&&(aa=Editor.trimCssUrl(M[m].substring(ka+7,M[m].indexOf(")",ka))));mxUtils.bind(this,function(qa){if(null==this.cachedFonts[qa]){this.cachedFonts[qa]=qa;ba++;var ra="application/x-font-ttf";if("svg"==aa||/(\.svg)($|\?)/i.test(qa))ra="image/svg+xml";else if("otf"==aa||"embedded-opentype"==aa||/(\.otf)($|\?)/i.test(qa))ra="application/x-font-opentype";else if("woff"==aa||/(\.woff)($|\?)/i.test(qa))ra="application/font-woff";else if("woff2"==aa||/(\.woff2)($|\?)/i.test(qa))ra="application/font-woff2";
else if("eot"==aa||/(\.eot)($|\?)/i.test(qa))ra="application/vnd.ms-fontobject";else if("sfnt"==aa||/(\.sfnt)($|\?)/i.test(qa))ra="application/font-sfnt";this.mapFontUrl(ra,qa,mxUtils.bind(this,function(pa,wa){this.loadUrl(wa,mxUtils.bind(this,function(Da){this.cachedFonts[qa]=Da;ba--;V()}),mxUtils.bind(this,function(Da){ba--;V()}),!0,null,"data:"+pa+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(M[m].substring(0,Z)),aa)}V()}else C(m)};Editor.prototype.loadFonts=function(m){null!=this.fontCss&& | 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.showImageDialog=function(b,e,g,n){n=this.editor.graph.cellEditor;var y=n.saveSelection(),q=mxUtils.prompt(b,e);n.restoreSelection(y);if(null!=q&&0<q.length){var E=new Image;E.onload=function(){g(q,E.width,E.height)};E.onerror=function(){g(null);mxUtils.alert(mxResources.get("fileNotFound"))};E.src=q}else g(null)};EditorUi.prototype.showLinkDialog=function(b,e,g){b=new LinkDialog(this,b,e,g);this.showDialog(b.container,420,90,!0,!0);b.init()}; | 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.getStencil=function(b){var e=mxStencilRegistry.stencils[b];if(null==e&&null==mxCellRenderer.defaultShapes[b]&&mxStencilRegistry.dynamicLoading){var g=mxStencilRegistry.getBasenameForStencil(b);if(null!=g){e=mxStencilRegistry.libraries[g];if(null!=e){if(null==mxStencilRegistry.packages[g]){for(var n=0;n<e.length;n++){var y=e[n];if(!mxStencilRegistry.filesLoaded[y])if(mxStencilRegistry.filesLoaded[y]=!0,".xml"==y.toLowerCase().substring(y.length-4,y.length))mxStencilRegistry.loadStencilSet(y,
null);else if(".js"==y.toLowerCase().substring(y.length-3,y.length))try{if(mxStencilRegistry.allowEval){var q=mxUtils.load(y);null!=q&&200<=q.getStatus()&&299>=q.getStatus()&&eval.call(window,q.getText())}}catch(E){null!=window.console&&console.log("error in getStencil:",b,g,e,y,E)}}mxStencilRegistry.packages[g]=1}}else g=g.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+g+".xml",null);e=mxStencilRegistry.stencils[b]}}return 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 |
null;if(null!=U){var Y=U.indexOf(",");if(0<Y)for(U=U.substring(Y+1),Q=Q.getProperty("patches"),Y=0;Y<Q.length;Y++)if(null!=Q[Y][EditorUi.DIFF_UPDATE]&&null!=Q[Y][EditorUi.DIFF_UPDATE][U]||null!=Q[Y][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(Q[Y][EditorUi.DIFF_REMOVE],U)){f.refreshBackgroundImage();break}}}));var A=f.getBackgroundImageObject;f.getBackgroundImageObject=function(U,Q){var Y=A.apply(this,arguments);if(null!=Y&&null!=Y.originalSrc)if(!Q)Y={src:Y.originalSrc};else if(Q&&null!=this.themes&&
"darkTheme"==this.defaultThemeName){var m=this.stylesheet,C=this.shapeForegroundColor,M=this.shapeBackgroundColor;this.stylesheet=this.getDefaultStylesheet();this.shapeBackgroundColor="#ffffff";this.shapeForegroundColor="#000000";Y=d.createImageForPageLink(Y.originalSrc);this.shapeBackgroundColor=M;this.shapeForegroundColor=C;this.stylesheet=m}return Y};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders"); | 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.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Ca(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function P(){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 |
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Ca(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function P(){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 |
mxUtils.extend(Ca,mxActor);Ca.prototype.redrawPath=function(c,l,u,p,t){c.moveTo(0,0);c.quadTo(p,0,p,t/2);c.quadTo(p,t,0,t);c.close();c.end()};mxCellRenderer.registerShape("or",Ca);mxUtils.extend(Ma,mxActor);Ma.prototype.redrawPath=function(c,l,u,p,t){c.moveTo(0,0);c.quadTo(p,0,p,t/2);c.quadTo(p,t,0,t);c.quadTo(p/2,t/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",Ma);mxUtils.extend(x,mxActor);x.prototype.size=20;x.prototype.isRoundable=function(){return!0};x.prototype.redrawPath=function(c,
l,u,p,t){l=Math.min(p/2,Math.min(t,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),new mxPoint(p-l,0),new mxPoint(p,.8*l),new mxPoint(p,t),new mxPoint(0,t),new mxPoint(0,.8*l)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("loopLimit",x);mxUtils.extend(L,mxActor);L.prototype.size=.375;L.prototype.isRoundable=function(){return!0};L.prototype.redrawPath=function(c, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(Z){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?C.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(Z):this.createRoughCanvas(Z)};var M=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(Z,aa,ka,qa,ra){null!=Z.handJiggle&&Z.handJiggle.passThrough||M.apply(this,arguments)};var ba=mxShape.prototype.paint;mxShape.prototype.paint=function(Z){var aa=Z.addTolerance, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.executeLayout=function(b,e,g){var n=this.editor.graph;n.getModel().beginUpdate();try{b()}catch(y){throw y;}finally{this.allowAnimation&&e&&n.isEnabled()?(b=new mxMorphing(n),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){n.getModel().endUpdate();null!=g&&g()})),b.startAnimation()):(n.getModel().endUpdate(),null!=g&&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 |
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 |
X[xa].height)}}finally{this.getModel().endUpdate()}}}return L};Graph.prototype.isCloneEvent=function(x){return mxClient.IS_MAC&&mxEvent.isMetaDown(x)||mxEvent.isControlDown(x)};Graph.prototype.createSvgImageExport=function(){var x=new mxImageExport;x.getLinkForCellState=mxUtils.bind(this,function(L,P){return this.getLinkForCell(L.cell)});return x};Graph.prototype.parseBackgroundImage=function(x){var L=null;null!=x&&0<x.length&&(x=JSON.parse(x),L=new mxImage(x.src,x.width,x.height));return L};Graph.prototype.getBackgroundImageObject= | 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()}));var S=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(fa.style,"transform",H);window.setTimeout(mxUtils.bind(this,function(){da()}),ja)});mxEvent.addListener(fa,"click",mxUtils.bind(this,function(U){var Q=mxEvent.getSource(U);Q!=ia&&Q!=ma?(null!=k&&k(),da(),mxEvent.consume(U)):S()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(fa.style,"transform",J)}),ja/2);window.setTimeout(S,z?4E3:3E4);G=!0}return G};EditorUi.prototype.setCurrentFile=function(d){null!=
d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,f,k,v){d=d.toDataURL("image/"+k);if(null!=d&&6<d.length)null!=f&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(f))),0<v&&(d=Editor.writeGraphModelToPng(d,"pHYs","dpi",v));else throw{message:mxResources.get("unknownError")};return 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 |
HoverIcons.prototype.createArrow=function(b,e,g){var n=null;n=mxUtils.createImage(b.src);n.style.width=b.width+"px";n.style.height=b.height+"px";n.style.padding=this.tolerance+"px";null!=e&&n.setAttribute("title",e);n.style.position="absolute";n.style.cursor=this.cssCursor;mxEvent.addGestureListeners(n,mxUtils.bind(this,function(y){null==this.currentState||this.isResetEvent(y)||(this.mouseDownPoint=mxUtils.convertPoint(this.graph.container,mxEvent.getClientX(y),mxEvent.getClientY(y)),this.drag(y,
this.mouseDownPoint.x,this.mouseDownPoint.y),this.activeArrow=n,this.setDisplay("none"),mxEvent.consume(y))}));mxEvent.redirectMouseEvents(n,this.graph,this.currentState);mxEvent.addListener(n,"mouseenter",mxUtils.bind(this,function(y){mxEvent.isMouseEvent(y)&&(null!=this.activeArrow&&this.activeArrow!=n&&mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.graph.connectionHandler.constraintHandler.reset(),mxUtils.setOpacity(n,100),this.activeArrow=n,this.fireEvent(new mxEventObject("focus",
"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 |
Editor=function(b,e,g,n,y){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=n||this.createGraph(e,g);this.editable=null!=y?y:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(q,E){this.status=q;this.statusFunction=E;this.fireEvent(new mxEventObject("statusChanged"))}; | 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,!0)}else this.graph.openLink(this.getEditBlankUrl(e)+"#R"+encodeURIComponent(b))};Editor.prototype.createGraph=function(b,e){b=new Graph(null,e,null,null,b);b.transparentBackground=!1;var g=b.isCssTransformsSupported,n=this;b.isCssTransformsSupported=function(){return g.apply(this,arguments)&&(!n.chromeless||!mxClient.IS_SF)};this.chromeless||(b.isBlankLink=function(y){return!this.isExternalProtocol(y)});return 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 |
".scratchpad"==d.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(d){var f=this.sidebar.palettes[d];if(null!=f){for(var k=0;k<f.length;k++)f[k].parentNode.removeChild(f[k]);delete this.sidebar.palettes[d]}};EditorUi.prototype.repositionLibrary=function(d){var f=this.sidebar.getEntryContainer();if(null==d){var k=this.sidebar.palettes["L.scratchpad"];null==k&&(k=this.sidebar.palettes.search);null!=k&&(d=k[k.length-1].nextSibling)}d=null!=d?d:f.firstChild.nextSibling.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 |
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 |
"_blank")}};EditorUi.prototype.createEchoRequest=function(d,f,k,v,z,A){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,d+(null!=k?"&mime="+k:"")+(null!=z?"&format="+z:"")+(null!=A?"&base64="+A:"")+(null!=f?"&filename="+encodeURIComponent(f):"")+(v?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(d,f){f=f||"";d=atob(d);for(var k=d.length,v=Math.ceil(k/1024),z=Array(v),A=0;A<v;++A){for(var H=1024*A,J=Math.min(H+1024,k),O=Array(J-H),G=0;H<J;++G,++H)O[G]=d[H].charCodeAt(0);z[A]= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function Action(b,e,g,n,y){mxEventSource.call(this);this.label=b;this.funct=this.createFunction(e);this.enabled=null!=g?g:!0;this.iconCls=n;this.shortcut=y;this.visible=!0}mxUtils.extend(Action,mxEventSource);Action.prototype.createFunction=function(b){return b};Action.prototype.setEnabled=function(b){this.enabled!=b&&(this.enabled=b,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled}; | 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.lastY,Z,aa,ka,qa,ra,pa,wa);if(null!=Da)for(var Ba=0;Ba<Da.length;Ba+=6)this.curveTo(Da[Ba],Da[Ba+1],Da[Ba+2],Da[Ba+3],Da[Ba+4],Da[Ba+5]);this.lastX=pa;this.lastY=wa}};m.prototype.rect=function(Z,aa,ka,qa){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(Z,aa,ka,qa,this.getStyle(!0,!0)))};m.prototype.ellipse=function(Z,aa,ka,qa){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=
this.rc.generator.ellipse(Z+ka/2,aa+qa/2,ka,qa,this.getStyle(!0,!0)))};m.prototype.roundrect=function(Z,aa,ka,qa,ra,pa){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(Z+ra,aa),this.lineTo(Z+ka-ra,aa),this.quadTo(Z+ka,aa,Z+ka,aa+pa),this.lineTo(Z+ka,aa+qa-pa),this.quadTo(Z+ka,aa+qa,Z+ka-ra,aa+qa),this.lineTo(Z+ra,aa+qa),this.quadTo(Z,aa+qa,Z,aa+qa-pa),this.lineTo(Z,aa+pa),this.quadTo(Z,aa,Z+ra,aa))};m.prototype.drawPath=function(Z){if(0<this.path.length){this.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 |
this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(ba=this.graph.extFonts.map(function(V){return V.name+"^"+V.url}),M.setAttribute("extFonts",ba.join("|")));return M};Editor.prototype.isDataSvg=function(m){try{var C=mxUtils.parseXml(m).documentElement.getAttribute("content");if(null!=C&&(null!=C&&"<"!=C.charAt(0)&&"%"!=C.charAt(0)&&(C=unescape(window.atob?atob(C):Base64.decode(cont,C))),null!=C&&"%"==C.charAt(0)&&(C=decodeURIComponent(C)),null!=C&&0<C.length)){var M=
mxUtils.parseXml(C).documentElement;return"mxfile"==M.nodeName||"mxGraphModel"==M.nodeName}}catch(ba){}return!1};Editor.prototype.extractGraphModel=function(m,C,M){return Editor.extractGraphModel.apply(this,arguments)};var g=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform(); | 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(Ea,za,Va){V(aa,mxUtils.bind(this,function(){if(null!=Ea&&Ea.length<G){var La=ma&&this.isResampleImageSize(ka.size,ja)?Math.min(1,Math.min(v/za,v/Va)):1;return z(Ea,ka.type,f+aa*m,k+aa*m,Math.round(za*La),Math.round(Va*La),ka.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),ma,v,ja,ka.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else pa=ra.target.result,z(pa,ka.type,f+aa*m,k+aa*m,240,160,ka.name, | 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 |
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 |
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 |
function(x){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=b(),this.graph.container.appendChild(this.hint));var L=this.graph.view.translate,P=this.graph.view.scale;x=this.roundLength((this.bounds.x+this.currentDx)/P-L.x);L=this.roundLength((this.bounds.y+this.currentDy)/P-L.y);P=this.graph.view.unit;this.hint.innerHTML=e(x,P)+", "+e(L,P);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";
this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(this.hint.parentNode.removeChild(this.hint),this.hint=null)};var ja=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=function(x,L){ja.apply(this,arguments);var P=this.graph.getCellStyle(x);if(null==P.childLayout){var X=this.graph.model.getParent(x),ea=null!=X?this.graph.getCellGeometry(X):null;if(null!=ea&&(P=this.graph.getCellStyle(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 |
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 |
Z?new mxPoint(V,Z):new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C)),Q=ba,ba=b.zoomFactor,V=null,C.ctrlKey&&null!=C.deltaY&&40>Math.abs(C.deltaY)&&Math.round(C.deltaY)!=C.deltaY?ba=1+Math.abs(C.deltaY)/20*(ba-1):null!=C.movementY&&"pointermove"==C.type&&(ba=1+Math.max(1,Math.abs(C.movementY))/20*(ba-1),V=-1),b.lazyZoom(M,null,V,ba),mxEvent.consume(C),!1;aa=aa.parentNode}}),b.container);b.panningHandler.zoomGraph=function(C){b.cumulativeZoomFactor=C.scale;b.lazyZoom(0<C.scale,!0);mxEvent.consume(C)}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(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, | 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 ba(){mxShape.call(this)}function V(){mxShape.call(this)}function Z(){mxRectangleShape.call(this)}function aa(){mxShape.call(this)}function ka(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function pa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Da(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function ya(){mxDoubleEllipse.call(this)}function Oa(){mxDoubleEllipse.call(this)}function Qa(){mxArrowConnector.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 |
B,u),c.lineTo(l+p-B,u),c.quadTo(l+p,u,l+p,u+B),c.lineTo(l+p,u+t-B),c.quadTo(l+p,u+t,l+p-B,u+t),c.lineTo(l+B,u+t),c.quadTo(l,u+t,l,u+t-B),c.lineTo(l,u+B),c.quadTo(l,u,l+B,u)):(c.moveTo(l,u),c.lineTo(l+p,u),c.lineTo(l+p,u+t),c.lineTo(l,u+t),c.lineTo(l,u)),c.close(),c.end(),c.fillAndStroke()}};mxUtils.extend(ca,mxRectangleShape);ca.prototype.size=.1;ca.prototype.fixedSize=!1;ca.prototype.isHtmlAllowed=function(){return!1};ca.prototype.getLabelBounds=function(c){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL, | 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.visitTableCells=function(b,e){var g=null,n=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var y=0;y<n.length;y++){for(var q=this.getActualStartSize(n[y],!0),E=this.model.getChildCells(n[y],!0),N=this.getCellStyle(n[y],!0),T=null,F=[],K=0;K<E.length;K++){var R=this.getCellGeometry(E[K]),W={cell:E[K],rospan:1,colspan:1,row:y,col:K,geo:R};R=null!=R.alternateBounds?R.alternateBounds:R;W.point=new mxPoint(R.width+(null!=T?T.point.x:b.x+q.x),R.height+(null!=g&&null!=
g[0]?g[0].point.y:b.y+q.y));W.actual=W;null!=g&&null!=g[K]&&1<g[K].rowspan?(W.rowspan=g[K].rowspan-1,W.colspan=g[K].colspan,W.actual=g[K].actual):null!=T&&1<T.colspan?(W.rowspan=T.rowspan,W.colspan=T.colspan-1,W.actual=T.actual):(T=this.getCurrentCellStyle(E[K],!0),null!=T&&(W.rowspan=parseInt(T.rowspan||1),W.colspan=parseInt(T.colspan||1)));T=1==mxUtils.getValue(N,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(N,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;e(W,E.length,
n.length,b.x+(T?q.x:0),b.y+(T?q.y:0));F.push(W);T=W}g=F}};Graph.prototype.getTableLines=function(b,e,g){var n=[],y=[];(e||g)&&this.visitTableCells(b,mxUtils.bind(this,function(q,E,N,T,F){e&&q.row<N-1&&(null==n[q.row]&&(n[q.row]=[new mxPoint(T,q.point.y)]),1<q.rowspan&&n[q.row].push(null),n[q.row].push(q.point));g&&q.col<E-1&&(null==y[q.col]&&(y[q.col]=[new mxPoint(q.point.x,F)]),1<q.colspan&&y[q.col].push(null),y[q.col].push(q.point))}));return n.concat(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(){var c=this.state.style.shape;null==mxCellRenderer.defaultShapes[c]&&null==mxStencilRegistry.getStencil(c)&&(c=mxConstants.SHAPE_CONNECTOR);c=Ab[c];return null!=c?c(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var Bb=new mxPoint(1,0),vb=new mxPoint(1,0),zb=mxUtils.toRadians(-30);Bb=mxUtils.getRotatedPoint(Bb,Math.cos(zb),Math.sin(zb));var yb=mxUtils.toRadians(-150);vb=mxUtils.getRotatedPoint(vb,Math.cos(yb),Math.sin(yb));mxEdgeStyle.IsometricConnector=function(c,
l,u,p,t){var B=c.view;p=null!=p&&0<p.length?p[0]:null;var D=c.absolutePoints,ha=D[0];D=D[D.length-1];null!=p&&(p=B.transformControlPoint(c,p));null==ha&&null!=l&&(ha=new mxPoint(l.getCenterX(),l.getCenterY()));null==D&&null!=u&&(D=new mxPoint(u.getCenterX(),u.getCenterY()));var I=Bb.x,ua=Bb.y,na=vb.x,Za=vb.y,qb="horizontal"==mxUtils.getValue(c.style,"elbow","horizontal");if(null!=D&&null!=ha){c=function(Ga,Ja,Ia){Ga-=fb.x;var Ha=Ja-fb.y;Ja=(Za*Ga-na*Ha)/(I*Za-ua*na);Ga=(ua*Ga-I*Ha)/(ua*na-I*Za);qb?
(Ia&&(fb=new mxPoint(fb.x+I*Ja,fb.y+ua*Ja),t.push(fb)),fb=new mxPoint(fb.x+na*Ga,fb.y+Za*Ga)):(Ia&&(fb=new mxPoint(fb.x+na*Ga,fb.y+Za*Ga),t.push(fb)),fb=new mxPoint(fb.x+I*Ja,fb.y+ua*Ja));t.push(fb)};var fb=ha;null==p&&(p=new mxPoint(ha.x+(D.x-ha.x)/2,ha.y+(D.y-ha.y)/2));c(p.x,p.y,!0);c(D.x,D.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var Cb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(c,l){if(l==mxEdgeStyle.IsometricConnector){var u= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
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 |
function(J){H.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(J)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(v)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(d,f,k,v,z){this.isLocalFileSave()?this.saveLocalFile(k,d,v,z,f):this.saveRequest(d,f,mxUtils.bind(this,function(A,H){return this.createEchoRequest(k,
A,v,z,f,H)}),k,z,v)};EditorUi.prototype.saveRequest=function(d,f,k,v,z,A,H){H=null!=H?H:!mxClient.IS_IOS||!navigator.standalone;var J=this.getServiceCount(!1);isLocalStorage&&J++;var O=4>=J?2:6<J?4:3;d=new CreateDialog(this,d,mxUtils.bind(this,function(G,ja){if("_blank"==ja||null!=G&&0<G.length){var fa=k("_blank"==ja?null:G,ja==App.MODE_DEVICE||"download"==ja||null==ja||"_blank"==ja?"0":"1");null!=fa&&(ja==App.MODE_DEVICE||"download"==ja||"_blank"==ja?fa.simulate(document,"_blank"):this.pickFolder(ja, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){k.checked&&(null==f||f.checked)?A.removeAttribute("disabled"):A.setAttribute("disabled","disabled")}));mxUtils.br(d);return{getLink:function(){return k.checked?"blank"===A.value?"_blank":z:null},getEditInput:function(){return k},getEditSelect:function(){return A}}};EditorUi.prototype.addLinkSection=function(d,f){function k(){var J=document.createElement("div");J.style.width="100%";J.style.height="100%";J.style.boxSizing="border-box";null!=A&&A!=mxConstants.NONE?(J.style.border="1px solid black", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(this.graph.isCellSelected(S)?m=!0:S=this.graph.model.getParent(S));m||this.graph.isTableRow(S)&&this.graph.isCellSelected(S)||(S=this.graph.getCompositeParent(S));d.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(S,U){U=this.graph.getCompositeParent(U);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(S,U,Q,Y,m,C){var M=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=Y&&this.graph.applyNewEdgeStyle(Y,
[M]);return M};var f=new mxRubberband(this);this.getRubberband=function(){return f};var k=(new Date).getTime(),v=0,z=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var S=this.currentState;z.apply(this,arguments);S!=this.currentState?(k=(new Date).getTime(),v=0):v=(new Date).getTime()-k};var A=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(S){return mxEvent.isShiftDown(S.getEvent())&&mxEvent.isAltDown(S.getEvent())?!1: | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
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 |
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 |
xa),sa,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",sa))}finally{X.endUpdate()}return la};Graph.prototype.insertImage=function(x,L,P){if(null!=x&&null!=this.cellEditor.textarea){for(var X=this.cellEditor.textarea.getElementsByTagName("img"),ea=[],la=0;la<X.length;la++)ea.push(X[la]);document.execCommand("insertimage",!1,x);x=this.cellEditor.textarea.getElementsByTagName("img");if(x.length==ea.length+1)for(la=x.length-1;0<=la;la--)if(0==la||x[la]!=ea[la-1]){x[la].setAttribute("width",
L);x[la].setAttribute("height",P);break}}};Graph.prototype.insertLink=function(x){if(null!=this.cellEditor.textarea)if(0==x.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var L=this.cellEditor.textarea.getElementsByTagName("a"),P=[],X=0;X<L.length;X++)P.push(L[X]);document.execCommand("createlink",!1,mxUtils.trim(x));L=this.cellEditor.textarea.getElementsByTagName("a");if(L.length==P.length+1)for(X=L.length-1;0<=X;X--)if(L[X]!=P[X-1]){for(L=L[X].getElementsByTagName("a");0<L.length;){for(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 |
mxEvent.getClientX(S),mxEvent.getClientY(S)),f.start(S.x,S.y)):null!=da?this.addSelectionCells(da):1<this.getSelectionCount()&&this.isCellSelected(Q)&&this.removeSelectionCell(Q);da=null;U.consume()}}));this.connectionHandler.selectCells=function(S,U){this.graph.setSelectionCell(U||S)};this.connectionHandler.constraintHandler.isStateIgnored=function(S,U){var Q=S.view.graph;return U&&(Q.isCellSelected(S.cell)||Q.isTableRow(S.cell)&&Q.selectionCellsHandler.isHandled(Q.model.getParent(S.cell)))};this.selectionModel.addListener(mxEvent.CHANGE, | 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.saveFile=function(b,e,g,n){};DrawioFile.prototype.getFileUrl=function(){return null};DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified}; | 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=function(b,e,g,n,y){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=n||this.createGraph(e,g);this.editable=null!=y?y:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(q,E){this.status=q;this.statusFunction=E;this.fireEvent(new mxEventObject("statusChanged"))}; | 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 |
l.style.shape&&u.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return u}}();mxMarker.addMarker("dash",function(c,l,u,p,t,B,D,ha,I,ua){var na=t*(D+I+1),Za=B*(D+I+1);return function(){c.begin();c.moveTo(p.x-na/2-Za/2,p.y-Za/2+na/2);c.lineTo(p.x+Za/2-3*na/2,p.y-3*Za/2-na/2);c.stroke()}});mxMarker.addMarker("box",function(c,l,u,p,t,B,D,ha,I,ua){var na=t*(D+I+1),Za=B*(D+I+1),qb=p.x+na/2,fb=p.y+Za/2;p.x-=na;p.y-=Za;return function(){c.begin();c.moveTo(qb-na/2- | 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,g);this.replaceDefaultColor(e,mxConstants.STYLE_LABEL_BORDERCOLOR,g,b);this.replaceDefaultColor(e,mxConstants.STYLE_SWIMLANE_FILLCOLOR,b,g);this.replaceDefaultColor(e,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,b,g)}return e};Graph.prototype.replaceDefaultColor=function(b,e,g,n){null!=b&&"default"==b[e]&&null!=g&&(b[e]=this.getDefaultColor(b,e,g,n))};Graph.prototype.getDefaultColor=function(b,e,g,n){e="default"+e.charAt(0).toUpperCase()+e.substring(1);"invert"==b[e]&&(g=n);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 |
this.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=F&&this.setLayersVisible(F);this.graph.customLinkClicked=function(k){try{if(Graph.isPageLink(k)){var v=k.indexOf(",");N.selectPageById(k.substring(v+1))||alert(mxResources.get("pageNotFound")||"Page not found")}else this.handleCustomLink(k)}catch(z){alert(z.message)}return!0};var f=this.graph.foldTreeCell;this.graph.foldTreeCell=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 |
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Ca(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function P(){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(){T&&b.hideDialog();null!=y&&y()});d.className="geBtn";g.appendChild(d);null!=E&&(n=mxUtils.button(E,function(){T&&b.hideDialog();null!=N&&N()}),n.className="geBtn gePrimaryBtn",g.appendChild(n));this.init=function(){d.focus()};R.appendChild(g);this.container=R},PrintDialog=function(b,e){this.create(b,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 |
EditorUi.prototype.pickColor=function(b,e){var g=this.editor.graph,n=g.cellEditor.saveSelection(),y=230+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,mxUtils.rgba2hex(b)||"none",function(q){g.cellEditor.restoreSelection(n);e(q)},function(){g.cellEditor.restoreSelection(n)});this.showDialog(b.container,230,y,!0,!1);b.init()}; | 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= | 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,0,0,0):null};K.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,Math.max(0,l*this.scale))}return null};mxUtils.extend(J,mxActor);J.prototype.size=.2;J.prototype.fixedSize=20;J.prototype.isRoundable=function(){return!0};J.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, | 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(Da){null!=Da&&(Z[pa]=Da,ra.setAttribute(ka,Da));V--;0==V&&C(m)})):ra.setAttribute(ka,wa)}else null!=pa&&ra.setAttribute(ka,pa)}}catch(Da){}})(aa[qa])});M("image","xlink:href");M("img","src");0==V&&C(m)};Editor.base64Encode=function(m){for(var C="",M=0,ba=m.length,V,Z,aa;M<ba;){V=m.charCodeAt(M++)&255;if(M==ba){C+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(V>>2);C+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((V&3)<<4);C+="==";break}Z=
m.charCodeAt(M++);if(M==ba){C+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(V>>2);C+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((V&3)<<4|(Z&240)>>4);C+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Z&15)<<2);C+="=";break}aa=m.charCodeAt(M++);C+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(V>>2);C+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((V&3)<<4|(Z&
240)>>4);C+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Z&15)<<2|(aa&192)>>6);C+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(aa&63)}return C};Editor.prototype.loadUrl=function(m,C,M,ba,V,Z,aa,ka){try{var qa=!aa&&(ba||/(\.png)($|\?)/i.test(m)||/(\.jpe?g)($|\?)/i.test(m)||/(\.gif)($|\?)/i.test(m)||/(\.pdf)($|\?)/i.test(m));V=null!=V?V:!0;var ra=mxUtils.bind(this,function(){mxUtils.get(m,mxUtils.bind(this,function(pa){if(200<=pa.getStatus()&& | 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.createSvgImage=function(b,e,g,n,y){g=unescape(encodeURIComponent(Graph.svgDoctype+'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+b+'px" height="'+e+'px" '+(null!=n&&null!=y?'viewBox="0 0 '+n+" "+y+'" ':"")+'version="1.1">'+g+"</svg>"));return new mxImage("data:image/svg+xml;base64,"+(window.btoa?btoa(g):Base64.encode(g,!0)),b,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 |
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 |
0),!1,null,l+p,u+.75*p));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+.5*p,u+(1-t)*p));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,u+.75*p));return c};R.prototype.getConstraints=function(c,l,u){c=[];var p=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;p=Math.min(l*Math.tan(p),.5*u);c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,p));c.push(new mxConnectionConstraint(new mxPoint(1,
.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,u-p));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u-p));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,p));return c};ma.prototype.getConstraints=function(c,l,u){c=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var p=Math.max(0,Math.min(u,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 |
Graph.prototype.dblClick=function(x,L){this.isEnabled()&&(L=this.insertTextForEvent(x,L),mxGraph.prototype.dblClick.call(this,x,L))};Graph.prototype.insertTextForEvent=function(x,L){var P=mxUtils.convertPoint(this.container,mxEvent.getClientX(x),mxEvent.getClientY(x));if(null!=x&&!this.model.isVertex(L)){var X=this.model.isEdge(L)?this.view.getState(L):null,ea=mxEvent.getSource(x);this.firstClickState!=X||this.firstClickSource!=ea||null!=X&&null!=X.text&&null!=X.text.node&&null!=X.text.boundingBox&&
(mxUtils.contains(X.text.boundingBox,P.x,P.y)||mxUtils.isAncestorNode(X.text.node,mxEvent.getSource(x)))||(null!=X||this.isCellLocked(this.getDefaultParent()))&&(null==X||this.isCellLocked(X.cell))||!(null!=X||mxClient.IS_SVG&&ea==this.view.getCanvas().ownerSVGElement)||(null==X&&(X=this.view.getState(this.getCellAt(P.x,P.y))),L=this.addText(P.x,P.y,X))}return L};Graph.prototype.getInsertPoint=function(){var x=this.getGridSize(),L=this.container.scrollLeft/this.view.scale-this.view.translate.x,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 |
n.length,b.x+(T?q.x:0),b.y+(T?q.y:0));F.push(W);T=W}g=F}};Graph.prototype.getTableLines=function(b,e,g){var n=[],y=[];(e||g)&&this.visitTableCells(b,mxUtils.bind(this,function(q,E,N,T,F){e&&q.row<N-1&&(null==n[q.row]&&(n[q.row]=[new mxPoint(T,q.point.y)]),1<q.rowspan&&n[q.row].push(null),n[q.row].push(q.point));g&&q.col<E-1&&(null==y[q.col]&&(y[q.col]=[new mxPoint(q.point.x,F)]),1<q.colspan&&y[q.col].push(null),y[q.col].push(q.point))}));return n.concat(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 |
mxConstraintHandler.prototype.update=function(x,L){this.isKeepFocusEvent(x)||!mxEvent.isAltDown(x.getEvent())?z.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(x){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var A=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(x,L){x=this.graph.getStartEditingCell(x,L);A.apply(this,arguments);var P=this.graph.view.getState(x);
this.textarea.className=null!=P&&1==P.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(x);P=this.graph.getModel().getParent(x);var X=this.graph.getCellGeometry(x);if(this.graph.getModel().isEdge(P)&&null!=X&&X.relative||this.graph.getModel().isEdge(x))this.textarea.style.outline=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":""};var H=mxCellEditor.prototype.installListeners; | 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 |
R.keyCode&&n.destroy()}),q=this.initialOverflow,E=n.destroy;n.destroy=function(){mxEvent.removeListener(document.documentElement,"keydown",y);document.body.removeChild(b);document.body.removeChild(e);document.body.style.overflow=q;GraphViewer.resizeSensorEnabled=!0;E.apply(this,arguments)};var N=n.editor.graph,T=N.container;T.style.overflow="hidden";this.lightboxChrome?(T.style.border="1px solid #c0c0c0",T.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",y)):(b.style.display= | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.