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
y.editor.graph.shadowId="lightboxDropShadow";Graph.prototype.shadowId=p;y.refresh=function(){};var q=mxUtils.bind(this,function(W){27==W.keyCode&&y.destroy()}),E=this.initialOverflow,M=y.destroy;y.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",q),document.body.removeChild(e),document.body.removeChild(g),document.body.style.overflow=E,GraphViewer.resizeSensorEnabled=!0,M.apply(this,arguments))};var T=y.editor.graph,F=T.container;F.style.overflow="hidden";this.lightboxChrome&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
l&&l()};Editor.prototype.createGoogleFontCache=function(){var l={},B;for(B in Graph.fontMapping)Graph.isCssFontUrl(B)&&(l[B]=Graph.fontMapping[B]);return l};Editor.prototype.embedExtFonts=function(l){var B=this.graph.getCustomFonts();if(0<B.length){var N=[],Z=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var U=mxUtils.bind(this,function(){0==Z&&this.embedCssFonts(N.join(""),l)}),aa=0;aa<B.length;aa++)mxUtils.bind(this,function(Y,ka){Graph.isCssFontUrl(ka)?
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(x){return p.apply(this,arguments)||this.graph.isEdgeIgnored(x)};var y=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(x){return this.graph.isCloneEvent(x)!=y.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var x=new mxEllipse(null,this.highlightColor,this.highlightColor,0);x.opacity=mxConstants.HIGHLIGHT_OPACITY;return x};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null;q.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):E=g.apply(this,arguments);b.updatePasteActionStates();return E};var p=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){p.apply(this,arguments);b.updatePasteActionStates()};var y=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(q,E){y.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
arguments)};mxCellRenderer.registerShape("process",ca);mxCellRenderer.registerShape("process2",ca);mxUtils.extend(ia,mxRectangleShape);ia.prototype.paintBackground=function(c,m,u,n,t){c.setFillColor(mxConstants.NONE);c.rect(m,u,n,t);c.fill()};ia.prototype.paintForeground=function(c,m,u,n,t){};mxCellRenderer.registerShape("transparent",ia);mxUtils.extend(ma,mxHexagon);ma.prototype.size=30;ma.prototype.position=.5;ma.prototype.position2=.5;ma.prototype.base=20;ma.prototype.getLabelMargins=function(){return new mxRectangle(0,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.write(ia,mxResources.get("timeAgo",[ma],"{1} ago"));ia.setAttribute("title",ca.toLocaleDateString()+" "+ca.toLocaleTimeString())}function F(ca){var ia=document.createElement("img");ia.className="geCommentBusyImg";ia.src=IMAGE_PATH+"/spin.gif";ca.appendChild(ia);ca.busyImg=ia}function K(ca){ca.style.border="1px solid red";ca.removeChild(ca.busyImg)}function R(ca){ca.style.border="";ca.removeChild(ca.busyImg)}function W(ca,ia,ma,ba,S){function da(aa,Y,ka){var qa=document.createElement("li"); qa.className="geCommentAction";var ra=document.createElement("a");ra.className="geCommentActionLnk";mxUtils.write(ra,aa);qa.appendChild(ra);mxEvent.addListener(ra,"click",function(pa){Y(pa,ca);pa.preventDefault();mxEvent.consume(pa)});U.appendChild(qa);ka&&(qa.style.display="none")}function P(){function aa(qa){Y.push(ka);if(null!=qa.replies)for(var ra=0;ra<qa.replies.length;ra++)ka=ka.nextSibling,aa(qa.replies[ra])}var Y=[],ka=l;aa(ca);return{pdiv:ka,replies:Y}}function V(aa,Y,ka,qa,ra){function pa(){F(ya);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
1)};mxCellRenderer.registerShape("flexArrow",Ta);mxUtils.extend(ta,mxActor);ta.prototype.size=30;ta.prototype.isRoundable=function(){return!0};ta.prototype.redrawPath=function(c,m,u,n,t){m=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(0,t),new mxPoint(0,m),new mxPoint(n,0),new mxPoint(n,t)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("manualInput",
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
eb){eb=PrintDialog.createPrintPreview(Pa,pb,ob,0,gb,tb,hb);eb.pageSelector=!1;eb.mathEnabled=!1;Ba.checked&&(eb.isCellVisible=function(vb){return Pa.isCellSelected(vb)});gb=l.getCurrentFile();null!=gb&&(eb.title=gb.getTitle());var Db=eb.writeHead;eb.writeHead=function(vb){Db.apply(this,arguments);mxClient.IS_GC&&(vb.writeln('<style type="text/css">'),vb.writeln("@media print {"),vb.writeln(".MathJax svg { shape-rendering: crispEdges; }"),vb.writeln("}"),vb.writeln("</style>"));null!=l.editor.fontCss&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ChangePageSetup.prototype.execute=function(){var b=this.ui.editor.graph;if(!this.ignoreColor){this.color=this.previousColor;var e=b.background;this.ui.setBackgroundColor(this.previousColor);this.previousColor=e}if(!this.ignoreImage){this.image=this.previousImage;e=b.backgroundImage;var g=this.previousImage;null!=g&&null!=g.src&&"data:page/id,"==g.src.substring(0,13)&&(g=this.ui.createImageForPageLink(g.src,this.ui.currentPage));this.ui.setBackgroundImage(g);this.previousImage=e}null!=this.previousFormat&& (this.format=this.previousFormat,e=b.pageFormat,this.previousFormat.width!=e.width||this.previousFormat.height!=e.height)&&(this.ui.setPageFormat(this.previousFormat),this.previousFormat=e);null!=this.foldingEnabled&&this.foldingEnabled!=this.ui.editor.graph.foldingEnabled&&(this.ui.setFoldingEnabled(this.foldingEnabled),this.foldingEnabled=!this.foldingEnabled);null!=this.previousPageScale&&(b=this.ui.editor.graph.pageScale,this.previousPageScale!=b&&(this.ui.setPageScale(this.previousPageScale), this.previousPageScale=b))};(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat","previousPageScale"]);b.afterDecode=function(e,g,p){p.previousColor=p.color;p.previousImage=p.image;p.previousFormat=p.format;p.previousPageScale=p.pageScale;null!=p.foldingEnabled&&(p.foldingEnabled=!p.foldingEnabled);return p};mxCodecRegistry.register(b)})();
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(g){return window.setTimeout(g,20)},e=function(g,p){function y(){this.q=[];this.add=function(k){this.q.push(k)};var d,f;this.call=function(){d=0;for(f=this.q.length;d<f;d++)this.q[d].call()}}function q(d,f){return d.currentStyle?d.currentStyle[f]:window.getComputedStyle?window.getComputedStyle(d,null).getPropertyValue(f):d.style[f]}function E(d,f){if(!d.resizedAttached)d.resizedAttached=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
qa.length>=l.length)){for(var pa=ra=0;pa<qa.length&&ra<aa;pa++)null!=Y[qa[pa]]&&ra++;ra=ra==aa}ra&&(1!=Z||this.isCellVisible(B[ka]))&&U.push(B[ka])}}return U};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var B=null,N=[],Z=0;Z<l.length;Z++){var U=this.getTagsForCell(l[Z]);N=[];if(0<U.length){U=U.split(" ");for(var aa={},Y=0;Y<U.length;Y++)if(null==B||null!=B[U[Y]])aa[U[Y]]=!0,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"change",J);mxEvent.addListener(q,"change",J);mxEvent.addListener(M,"change",function(O){A="custom"==M.value;J(O,!0)});J();return{set:function(O){g=O;y(null,null,!0)},get:function(){return H},widthInput:R,heightInput:W}};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
!0;this.graph.processElements(this.textarea,function(ea){Q||window.getSelection().containsNode(ea,!0)?(ea.removeAttribute("align"),ea.style.textAlign=null):X=!1});X&&this.graph.cellEditor.setAlign(x)}document.execCommand("justify"+x.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var x=window.getSelection();if(x.getRangeAt&&x.rangeCount){for(var L=[],Q=0,X=x.rangeCount;Q<X;++Q)L.push(x.getRangeAt(Q));return L}}else if(document.selection&&document.selection.createRange)return document.selection.createRange(); return null};mxCellEditor.prototype.restoreSelection=function(x){try{if(x)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var L=0,Q=x.length;L<Q;++L)sel.addRange(x[L])}else document.selection&&x.select&&x.select()}catch(X){}};var v=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(x){null!=x.text&&(x.text.replaceLinefeeds="0"!=mxUtils.getValue(x.style,"nl2Br","1"));v.apply(this,arguments)};var z=mxConstraintHandler.prototype.update;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Editor.createRoughCanvas=function(l){var B=rough.canvas({getContext:function(){return l}});B.draw=function(N){var Z=N.sets||[];N=N.options||this.getDefaultOptions();for(var U=0;U<Z.length;U++){var aa=Z[U];switch(aa.type){case "path":null!=N.stroke&&this._drawToContext(l,aa,N);break;case "fillPath":this._drawToContext(l,aa,N);break;case "fillSketch":this.fillSketch(l,aa,N)}}};B.fillSketch=function(N,Z,U){var aa=l.state.strokeColor,Y=l.state.strokeWidth,ka=l.state.strokeAlpha,qa=l.state.dashed,ra=U.fillWeight; 0>ra&&(ra=U.strokeWidth/2);l.setStrokeAlpha(l.state.fillAlpha);l.setStrokeColor(U.fill||"");l.setStrokeWidth(ra);l.setDashed(!1);this._drawToContext(N,Z,U);l.setDashed(qa);l.setStrokeWidth(Y);l.setStrokeColor(aa);l.setStrokeAlpha(ka)};B._drawToContext=function(N,Z,U){N.begin();for(var aa=0;aa<Z.ops.length;aa++){var Y=Z.ops[aa],ka=Y.data;switch(Y.op){case "move":N.moveTo(ka[0],ka[1]);break;case "bcurveTo":N.curveTo(ka[0],ka[1],ka[2],ka[3],ka[4],ka[5]);break;case "lineTo":N.lineTo(ka[0],ka[1])}}N.end(); "fillPath"===Z.type&&U.filled?N.fill():N.stroke()};return B};(function(){function l(aa,Y,ka){this.canvas=aa;this.rc=Y;this.shape=ka;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,l.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,l.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,l.prototype.rect);this.originalRoundrect=this.canvas.roundrect;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.parsePng=function(b,e,g){function p(M,T){var F=q;q+=T;return M.substring(F,q)}function y(M){M=p(M,4);return M.charCodeAt(3)+(M.charCodeAt(2)<<8)+(M.charCodeAt(1)<<16)+(M.charCodeAt(0)<<24)}var q=0;if(p(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(p(b,4),"IHDR"!=p(b,4))null!=g&&g();else{p(b,17);do{g=y(b);var E=p(b,4);if(null!=e&&e(q-8,E,g))break;value=p(b,g);p(b,4);if("IEND"==E)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
oa))}}finally{L.endUpdate()}};Graph.prototype.insertRow=function(x,L){for(var Q=x.tBodies[0],X=Q.rows[0].cells,ea=x=0;ea<X.length;ea++){var la=X[ea].getAttribute("colspan");x+=null!=la?parseInt(la):1}L=Q.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 Q=x.tHead;if(null!=Q)for(var X=0;X<Q.rows.length;X++){var ea=document.createElement("th");Q.rows[X].appendChild(ea);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(c,m,u){mxShape.call(this);this.line=c;this.stroke=m;this.strokewidth=null!=u?u:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function p(){mxCylinder.call(this)}function y(){mxConnector.call(this)}function q(){mxCylinder.call(this)}function E(){mxActor.call(this)}function M(){mxCylinder.call(this)}function T(){mxCylinder.call(this)}function F(){mxCylinder.call(this)}function K(){mxCylinder.call(this)}function R(){mxShape.call(this)}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
if(W==g.getChildAt(p,q+T)&&null!=d&&1==mxUtils.getValue(d.style,"colspan",1)&&1==mxUtils.getValue(d.style,"rowspan",1))T++;else break}K==F*T-1&&(b.mergeCell=e[0],b.colspan=T,b.rowspan=F)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
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,m,u,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=u;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Actions.prototype.addAction=function(b,e,g,p,y){if("..."==b.substring(b.length-3)){b=b.substring(0,b.length-3);var q=mxResources.get(b)+"..."}else q=mxResources.get(b);return this.put(b,new Action(q,e,g,p,y))};Actions.prototype.put=function(b,e){return this.actions[b]=e};Actions.prototype.get=function(b){return this.actions[b]};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0;v^=f}return v};EditorUi.prototype.descriptorChanged=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))};EditorUi.prototype.createLibraryDataFromImages=function(d){if(!Editor.defaultCompressed)for(var f=0;f<d.length;f++)null!=d[f].xml&&"<"!=d[f].xml.charAt(0)&&(d[f].xml=mxUtils.trim(Graph.decompress(d[f].xml)));f=mxUtils.createXmlDocument();var k=f.createElement("mxlibrary");mxUtils.setTextContent(k,JSON.stringify(d,null,2));f.appendChild(k);return mxUtils.getXml(f,"\n")};EditorUi.prototype.closeLibrary=function(d){null!=d&&(this.removeLibrarySidebar(d.getHash()),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var H=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(P){P=null!=P?P:"";"1"==urlParams.dev&&(P+=(0<P.length?"&":"?")+"dev=1");return H.apply(this,arguments)};var J=f.addClickHandler;f.addClickHandler=function(P,V,l){var B=V;V=function(N,Z){if(null==Z){var U=mxEvent.getSource(N);"a"==U.nodeName.toLowerCase()&&(Z=U.getAttribute("href"))}null!= Z&&f.isCustomLink(Z)&&(mxEvent.isTouchEvent(N)||!mxEvent.isPopupTrigger(N))&&f.customLinkClicked(Z)&&mxEvent.consume(N);null!=B&&B(N,Z)};J.call(this,P,V,l)};q.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var O=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(P,V,l){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(P,["zoomIn","zoomOut","-"],null,l);O.apply(this,arguments);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
[];for(var y=0;256>y;y++)for(var q=y,E=0;8>E;E++)q=1==(q&1)?3988292384^q>>>1:q>>>1,Editor.crcTable[y]=q;Editor.updateCRC=function(l,B,N,Z){for(var U=0;U<Z;U++)l=Editor.crcTable[(l^B.charCodeAt(N+U))&255]^l>>>8;return l};Editor.crc32=function(l){for(var B=-1,N=0;N<l.length;N++)B=B>>>8^Editor.crcTable[(B^l.charCodeAt(N))&255];return(B^-1)>>>0};Editor.writeGraphModelToPng=function(l,B,N,Z,U){function aa(pa,wa){var Ca=qa;qa+=wa;return pa.substring(Ca,qa)}function Y(pa){pa=aa(pa,4);return pa.charCodeAt(3)+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var g=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(T){this.renamePage(b);mxEvent.consume(T)}));var p=document.createElement("div");p.className="geTabMenuButton";p.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";p.style.backgroundPosition="center center";p.style.backgroundRepeat="no-repeat";p.style.backgroundSize="10px";e.appendChild(p);var y=!1,q=!1,E=mxUtils.bind(this, function(T){y=null!=this.currentMenu;q=b==this.currentPage;g.isMouseDown||q||this.selectPage(b);this.scrollToPage()}),M=mxUtils.bind(this,function(T){if(g.isEnabled()&&!g.isMouseDown&&(q&&(mxEvent.isTouchEvent(T)||mxEvent.getSource(T)==p)||mxEvent.isPopupTrigger(T))&&(g.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(T)||!y)){var F=new mxPopupMenu(this.createPageMenu(b));F.div.className+=" geMenubarMenu";F.smartSeparators=!0;F.showDisabled=!0;F.autoExpand=!0;F.hideMenu=mxUtils.bind(this, function(){mxPopupMenu.prototype.hideMenu.apply(F,arguments);this.resetCurrentMenu();F.destroy()});var K=mxEvent.getClientX(T),R=mxEvent.getClientY(T);F.popup(K,R,null,T);this.setCurrentMenu(F,e)}mxEvent.consume(T)});mxEvent.addGestureListeners(p,E,null,M);mxEvent.addGestureListeners(e,E,null,M)};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
m,u,n,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.moveTo(n,t):c.moveTo(n,t-ha)};Na.prototype.moveSW=function(c,m,u,n,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.moveTo(0,t):c.moveTo(ha,t)};Na.prototype.paintNW=function(c,m,u,n,t,C,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==C||"invRound"==D||"default"==D&&"invRound"==C){m=0;if("rounded"==D||"default"==D&&"rounded"==C)m=1;c.arcTo(ha,ha,0,0,m,ha,0)}else("snip"==D||"default"==D&&"snip"==C||"fold"==D||"default"==D&& "fold"==C)&&c.lineTo(ha,0);else c.lineTo(0,0)};Na.prototype.paintTop=function(c,m,u,n,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.lineTo(n,0):c.lineTo(n-ha,0)};Na.prototype.paintNE=function(c,m,u,n,t,C,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==C||"invRound"==D||"default"==D&&"invRound"==C){m=0;if("rounded"==D||"default"==D&&"rounded"==C)m=1;c.arcTo(ha,ha,0,0,m,n,ha)}else("snip"==D||"default"==D&&"snip"==C||"fold"==D||"default"==D&&"fold"==C)&&c.lineTo(n,ha);else c.lineTo(n,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.prototype.saveViewState=function(b,e,g,p){g||(e.setAttribute("grid",(null==b?this.defaultGridEnabled:b.gridEnabled)?"1":"0"),e.setAttribute("page",(null==b?this.defaultPageVisible:b.pageVisible)?"1":"0"),e.setAttribute("gridSize",null!=b?b.gridSize:mxGraph.prototype.gridSize),e.setAttribute("guides",null==b||b.guidesEnabled?"1":"0"),e.setAttribute("tooltips",null==b||b.tooltips?"1":"0"),e.setAttribute("connect",null==b||b.connect?"1":"0"),e.setAttribute("arrows",null==b||b.arrows?"1":"0"),e.setAttribute("fold", null==b||b.foldingEnabled?"1":"0"));e.setAttribute("pageScale",null!=b&&null!=b.pageScale?b.pageScale:mxGraph.prototype.pageScale);g=null!=b?b.pageFormat:"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat();null!=g&&(e.setAttribute("pageWidth",g.width),e.setAttribute("pageHeight",g.height));null!=b&&(null!=b.background&&e.setAttribute("background",b.background),p=this.getBackgroundImageObject(b.backgroundImage,p),null!=p&&e.setAttribute("backgroundImage", JSON.stringify(p)));e.setAttribute("math",(null==b?this.defaultMathEnabled:b.mathEnabled)?"1":"0");e.setAttribute("shadow",null!=b&&b.shadowVisible?"1":"0");null!=b&&null!=b.extFonts&&0<b.extFonts.length&&e.setAttribute("extFonts",b.extFonts.map(function(y){return y.name+"^"+y.url}).join("|"))};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.prototype.updateCustomLinkActions=function(l,B){for(var N=0;N<B.length;N++){var Z=B[N],U;for(U in Z)this.updateCustomLinkAction(l,Z[U],"cells"),this.updateCustomLinkAction(l,Z[U],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(l,B,N){if(null!=B&&null!=B[N]){for(var Z=[],U=0;U<B[N].length;U++)if("*"==B[N][U])Z.push(B[N][U]);else{var aa=l[B[N][U]];null!=aa?""!=aa&&Z.push(aa):Z.push(B[N][U])}B[N]=Z}};Graph.prototype.getCellsForAction=function(l,B){B=this.getCellsById(l.cells).concat(this.getCellsForTags(l.tags, null,B));if(null!=l.excludeCells){for(var N=[],Z=0;Z<B.length;Z++)0>l.excludeCells.indexOf(B[Z].id)&&N.push(B[Z]);B=N}return B};Graph.prototype.getCellsById=function(l){var B=[];if(null!=l)for(var N=0;N<l.length;N++)if("*"==l[N]){var Z=this.model.getRoot();B=B.concat(this.model.filterDescendants(function(aa){return aa!=Z},Z))}else{var U=this.model.getCell(l[N]);null!=U&&B.push(U)}return B};var ma=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(l){return ma.apply(this,arguments)&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
n,C,0,0,1,0,C),c.stroke())};mxCellRenderer.registerShape("cylinder2",W);mxUtils.extend(d,mxCylinder);d.prototype.size=15;d.prototype.paintVertexShape=function(c,m,u,n,t){var C=Math.max(0,Math.min(.5*t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),D=mxUtils.getValue(this.style,"lid",!0);c.translate(m,u);0==C?(c.rect(0,0,n,t),c.fillAndStroke()):(c.begin(),D?(c.moveTo(0,C),c.arcTo(.5*n,C,0,0,1,.5*n,0),c.arcTo(.5*n,C,0,0,1,n,C)):(c.moveTo(0,0),c.arcTo(.5*n,C,0,0,0,.5*n,C),c.arcTo(.5*n,C, 0,0,0,n,0)),c.lineTo(n,t-C),c.arcTo(.5*n,C,0,0,1,.5*n,t),c.arcTo(.5*n,C,0,0,1,0,t-C),c.close(),c.fillAndStroke(),c.setShadow(!1),D&&(c.begin(),c.moveTo(n,C),c.arcTo(.5*n,C,0,0,1,.5*n,2*C),c.arcTo(.5*n,C,0,0,1,0,C),c.stroke()))};mxCellRenderer.registerShape("cylinder3",d);mxUtils.extend(f,mxActor);f.prototype.redrawPath=function(c,m,u,n,t){c.moveTo(0,0);c.quadTo(n/2,.5*t,n,0);c.quadTo(.5*n,t/2,n,t);c.quadTo(n/2,.5*t,0,t);c.quadTo(.5*n,t/2,0,0);c.end()};mxCellRenderer.registerShape("switch",f);mxUtils.extend(k,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.createImageForPageLink=function(b,e,g){var p=b.indexOf(","),y=null;0<p&&(p=this.getPageById(b.substring(p+1)),null!=p&&p!=e&&(y=this.getImageForPage(p,e,g),y.originalSrc=b));null==y&&(y={originalSrc:b});return y};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0,z.x,z.y));null!=z&&v.appendChild(this.sidebar.createVertexTemplateFromCells([k],z.width,z.height,"",!0,!1,null,!1,mxUtils.bind(this,function(A){if(!mxEvent.isShiftDown(A)||null==g&&R.isSelectionEmpty()){var H=R.cloneCell(k);if(null!=p)p(H);else{var J=T([H]);R.model.isEdge(H)?H.geometry.translate(J.x,J.y):(H.geometry.x=J.x,H.geometry.y=J.y);R.model.beginUpdate();try{R.addCell(H),R.model.isVertex(H)&&R.isAutoSizeCell(H)&&R.updateCellSize(H)}finally{R.model.endUpdate()}R.setSelectionCell(H);R.scrollCellToVisible(H); K&&R.startEditing(H);null!=d.hoverIcons&&d.hoverIcons.update(R.view.getState(H))}}else H=R.getEditableCells(null!=g?[g]:R.getSelectionCells()),R.updateShapes(k,H);null!=q&&q(A);mxEvent.consume(A)}),25,25,null,null,g))});for(F=0;F<(M?Math.min(E.length,4):E.length);F++)y(E[F]);E=W.offsetTop+W.clientHeight-(R.container.scrollTop+R.container.offsetHeight);0<E&&(W.style.top=Math.max(R.container.scrollTop+22,e-E)+"px");E=W.offsetLeft+W.clientWidth-(R.container.scrollLeft+R.container.offsetWidth);0<E&&(W.style.left=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
f&&(H.responseType="blob");H.onload=function(J){if(200<=this.status&&300>this.status)if("txt"==f)k(this.response);else{var O=new FileReader;O.readAsDataURL(this.response);O.onloadend=function(G){var ja=new Image;ja.onload=function(){try{var fa=ja.width,ca=ja.height;if(0==fa&&0==ca){var ia=O.result,ma=ia.indexOf(","),ba=decodeURIComponent(escape(atob(ia.substring(ma+1)))),S=mxUtils.parseXml(ba).getElementsByTagName("svg");0<S.length&&(fa=parseFloat(S[0].getAttribute("width")),ca=parseFloat(S[0].getAttribute("height")))}k(O.result, fa,ca)}catch(da){v(da)}};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&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
d&&1<d.length){var f=d.indexOf("#");0<=f&&(d=d.substring(0,f))}return d};EditorUi.prototype.getHashObject=function(){var d=window.location.hash,f={};if(null!=d&&0<d.length){var k=d.lastIndexOf("#");if(0<k){d=decodeURIComponent(d.substring(k+1));try{f=JSON.parse(d)}catch(v){}}}return f};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&""!=this.currentFile.getHash()&&null!=this.currentPage&&0<this.getSelectedPageIndex()){var d=this.getHashObject();d.pageId=this.currentPage.getId(); this.setHashObject(d)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(d){if(Editor.enableHashObjects){var f=window.location.hash;if(null==f||""==f)f="#";var k=f.lastIndexOf("#");0<k&&(f=f.substring(0,k));try{null==d||mxUtils.isEmptyObject(d)||(f=f+"#"+encodeURIComponent(JSON.stringify(d)))}catch(v){}window.location.hash=f}};EditorUi.prototype.loadDescriptor=function(d,f,k){var v=window.location.hash,z=mxUtils.bind(this,function(H){var J=null!=d.data?d.data:"";null!=H&&0<H.length&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
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 p=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
arguments));this.originalClose.apply(this.canvas,arguments)};fa.prototype.quadTo=function(c,m,u,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=u;this.lastY=n};fa.prototype.curveTo=function(c,m,u,n,t,C){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=C};fa.prototype.arcTo=function(c,m,u,n,t,C,D){this.originalArcTo.apply(this.canvas,arguments);this.lastX=C;this.lastY=D};fa.prototype.lineTo=function(c,m){if(null!=this.lastX&&null!=this.lastY){var u=function(na){return"number"=== typeof na?na?0>na?-1:1:na===na?0:NaN:NaN},n=Math.abs(c-this.lastX),t=Math.abs(m-this.lastY),C=Math.sqrt(n*n+t*t);if(2>C){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=m;return}var D=Math.round(C/10),ha=this.defaultVariation;5>D&&(D=5,ha/=3);var I=u(c-this.lastX)*n/D;u=u(m-this.lastY)*t/D;n/=C;t/=C;for(C=0;C<D;C++){var ua=(Math.random()-.5)*ha;this.originalLineTo.call(this.canvas,I*C+this.lastX-ua*t,u*C+this.lastY-ua*n)}this.originalLineTo.call(this.canvas,c,m)}else this.originalLineTo.apply(this.canvas,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
/(\.vs(x|sx?))($|\?)/i.test(l);B=/\.png$/i.test(l)||/\.pdf$/i.test(l)||B;var N="t="+(new Date).getTime();l=PROXY_URL+"?url="+encodeURIComponent(l)+"&"+N+(B?"&base64=1":"")}return l};Editor.prototype.isCorsEnabledForUrl=function(l){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||l.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(l)|| "https://raw.githubusercontent.com/"===l.substring(0,34)||"https://fonts.googleapis.com/"===l.substring(0,29)||"https://fonts.gstatic.com/"===l.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var l=new mxUrlConverter;l.updateBaseUrl();var B=l.convert,N=this;l.convert=function(Z){if(null!=Z){var U="http://"==Z.substring(0,7)||"https://"==Z.substring(0,8);U&&!navigator.onLine?Z=Editor.svgBrokenImage.src:!U||Z.substring(0,l.baseUrl.length)==l.baseUrl||N.crossOriginImages&&N.isCorsEnabledForUrl(Z)?
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.createSelectionState=function(){for(var b=this.editor.graph,e=b.getSelectionCells(),g=this.initSelectionState(),p=!0,y=0;y<e.length;y++){var q=b.getCurrentCellStyle(e[y]);"0"!=mxUtils.getValue(q,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(g,e[y],e,p),p=!1)}this.updateSelectionStateForTableCells(g);return g};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph=function(b,e,g,p,y,q){mxGraph.call(this,b,e,g,p);this.themes=y||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=q?q:!1;b=this.baseUrl;e=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<e&&(e=b.indexOf("/",e+2),0<e&&(this.domainUrl=b.substring(0,e)),e=b.lastIndexOf("/"),0<e&&(this.domainPathUrl=b.substring(0,e+1)));this.isHtmlLabel=function(S){S=this.getCurrentCellStyle(S); return null!=S?"1"==S.html||"wrap"==S[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var E=null,M=null,T=null,F=null,K=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(S,da){if("mouseDown"==da.getProperty("eventName")&&this.isEnabled()){S=da.getProperty("event");var P=S.getState();da=this.view.scale;if(!mxEvent.isAltDown(S.getEvent())&&null!=P&&!this.panningHandler.isActive()&&!mxEvent.isControlDown(S.getEvent())){var V=this.selectionCellsHandler.getHandler(P.cell);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxEvent.consume(l)}};this.editor.getOrCreateFilename=function(){var P=d.defaultFilename,V=d.getCurrentFile();null!=V&&(P=null!=V.getTitle()?V.getTitle():P);return P};var ba=this.actions.get("print");ba.setEnabled(!mxClient.IS_IOS||!navigator.standalone);ba.visible=ba.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
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,m,u,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=u;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(aa){return new l(aa,Editor.createRoughCanvas(aa),this)};var B=mxShape.prototype.createHandJiggle;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
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,m,u,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=u;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
v.getAttribute("placeholders"));null!=F&&mxEvent.isShiftDown(F)||k.setAttribute("label",q.convertValueToString(f));W.setValue(f,k)}F=null!=K?K:F;var W=q.getModel();if(q.isEnabled()&&!q.isSelectionEmpty()&&null!=p.copiedValue){W.beginUpdate();try{var d=q.getEditableCells(q.getSelectionCells());if(0==d.length)R(W.getRoot(),p.copiedValue);else for(K=0;K<d.length;K++)R(d[K],p.copiedValue)}finally{W.endUpdate()}}},null,null,"Alt+Shift+E");this.addAction("delete",function(F,K){F=null!=K?K:F;null!=F&&mxEvent.isShiftDown(F)?
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=O)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(S){return mxEvent.isMouseEvent(S.getEvent())};var G=this.click;this.click=function(S){var da=null==S.state&&null!=S.sourceState&&this.isCellLocked(this.getLayerForCell(S.sourceState.cell));if(this.isEnabled()&&!da||S.isConsumed())return G.apply(this,arguments);da=da?S.sourceState.cell:S.getCell();null!=da&&(da=this.getClickableLinkForCell(da), null!=da&&(this.isCustomLink(da)?this.customLinkClicked(da):this.openLink(da)))};this.tooltipHandler.getStateForEvent=function(S){return S.sourceState};var ja=this.tooltipHandler.show;this.tooltipHandler.show=function(){ja.apply(this,arguments);if(null!=this.div)for(var S=this.div.getElementsByTagName("a"),da=0;da<S.length;da++)null!=S[da].getAttribute("href")&&null==S[da].getAttribute("target")&&S[da].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(S){return S.sourceState};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.prototype.replaceElement=function(x,L){L=x.ownerDocument.createElement(null!=L?L:"span");for(var Q=Array.prototype.slice.call(x.attributes);attr=Q.pop();)L.setAttribute(attr.nodeName,attr.nodeValue);L.innerHTML=x.innerHTML;x.parentNode.replaceChild(L,x)};Graph.prototype.processElements=function(x,L){if(null!=x){x=x.getElementsByTagName("*");for(var Q=0;Q<x.length;Q++)L(x[Q])}};Graph.prototype.updateLabelElements=function(x,L,Q){x=null!=x?x:this.getSelectionCells();for(var X=document.createElement("div"),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
N&&B(Editor.createSvgDataUri(aa.getText()))}),function(){window.clearTimeout(Z);N&&B(Editor.svgBrokenImage.src)});else{var U=new Image;this.crossOriginImages&&(U.crossOrigin="anonymous");U.onload=function(){window.clearTimeout(Z);if(N)try{var aa=document.createElement("canvas"),Y=aa.getContext("2d");aa.height=U.height;aa.width=U.width;Y.drawImage(U,0,0);B(aa.toDataURL())}catch(ka){B(Editor.svgBrokenImage.src)}};U.onerror=function(){window.clearTimeout(Z);N&&B(Editor.svgBrokenImage.src)};U.src=l}}catch(aa){B(Editor.svgBrokenImage.src)}};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.clonePages=function(b){for(var e=[],g=[],p=0;p<b.length;p++)try{g.push(this.clonePage(b[p]))}catch(y){e.push(mxResources.get("pageWithNumber",[p+1])+" ("+b[p].getName()+"): "+y.message)}if(0<e.length)throw Error(e.join("\n"));return g};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null!=Graph.diagramLanguage&&mxUtils.isNode(x.value)&&x.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(Q="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(x,Q,L)};Graph.prototype.getAttributeForCell=function(x,L,Q){x=null!=x.value&&"object"===typeof x.value?x.value.getAttribute(L):null;return null!=x?x:Q};Graph.prototype.setAttributeForCell=function(x,L,Q){if(null!=x.value&&"object"==typeof x.value)var X=x.value.cloneNode(!0);else X=mxUtils.createXmlDocument().createElement("UserObject"), X.setAttribute("label",x.value||"");null!=Q?X.setAttribute(L,Q):X.removeAttribute(L);this.model.setValue(x,X)};Graph.prototype.isTargetShape=function(x,L,Q){x=mxUtils.getValue(this.getCurrentCellStyle(x),mxConstants.STYLE_SHAPE,"");for(Q=0;Q<L.length;Q++){var X=mxUtils.getValue(this.getCurrentCellStyle(L[Q]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(X,x))return!0}return!1};var k=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(x,L,Q,X){if(mxEvent.isAltDown(L))return null;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
na,t),c.lineTo(n-na,t-na),c.lineTo(n,t-na)),("fold"==ua||"default"==ua&&"fold"==C)&&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,m,u){for(var n=[],t=0;t<m.length;t++)n.push(mxUtils.clone(m[t]));t=c.state.dashed;var C=c.state.fixDash;bb.prototype.origPaintEdgeShape.apply(this, [c,n,u]);3<=c.state.strokeWidth&&(n=mxUtils.getValue(this.style,"fillColor",null),null!=n&&(c.setStrokeColor(n),c.setStrokeWidth(c.state.strokeWidth-2),c.setDashed(t,C),bb.prototype.origPaintEdgeShape.apply(this,[c,m,u])))};mxCellRenderer.registerShape("filledEdge",bb);"undefined"!==typeof StyleFormatPanel&&function(){var c=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var m=this.editorUi.getSelectionState(),u=c.apply(this,arguments);"umlFrame"==
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
u,n,t,C,D,ha,I,ua,na){C*=ha+ua;D*=ha+ua;var Za=t.clone();return function(){m.begin();m.moveTo(Za.x,Za.y);I?m.lineTo(Za.x-C-D/c,Za.y-D+C/c):m.lineTo(Za.x+D/c-C,Za.y-D-C/c);m.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var mb=function(c,m,u){return wb(c,["width"],m,function(n,t,C,D,ha){ha=c.shape.getEdgeWidth()*c.view.scale+u;return new mxPoint(D.x+t*n/4+C*ha/2,D.y+C*n/4-t*ha/2)},function(n,t,C,D,ha,I){n=Math.sqrt(mxUtils.ptSegDistSq(D.x,D.y,ha.x,ha.y,I.x,I.y));c.style.width=Math.round(2* n)/c.view.scale-u})},wb=function(c,m,u,n,t){return hb(c,m,function(C){var D=c.absolutePoints;if(null!=D&&0<D.length){var ha=D.length-1;C=c.view.translate;var I=c.view.scale,ua=u?D[0]:D[ha];D=u?D[1]:D[ha-1];ha=D.x-ua.x;var na=D.y-ua.y,Za=Math.sqrt(ha*ha+na*na);ua=n.call(this,Za,ha/Za,na/Za,ua,D);return new mxPoint(ua.x/I-C.x,ua.y/I-C.y)}return null},function(C,D,ha){var I=c.absolutePoints,ua=I.length-1;C=c.view.translate;var na=c.view.scale,Za=u?I[0]:I[ua];I=u?I[1]:I[ua-1];ua=I.x-Za.x;var qb=I.y-Za.y,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxPerimeter.HexagonPerimeter2);mxUtils.extend(ka,mxShape);ka.prototype.size=10;ka.prototype.paintBackground=function(c,m,u,n,t){var C=parseFloat(mxUtils.getValue(this.style,"size",this.size));c.translate(m,u);c.ellipse((n-C)/2,0,C,C);c.fillAndStroke();c.begin();c.moveTo(n/2,C);c.lineTo(n/2,t);c.end();c.stroke()};mxCellRenderer.registerShape("lollipop",ka);mxUtils.extend(qa,mxShape);qa.prototype.size=10;qa.prototype.inset=2;qa.prototype.paintBackground=function(c,m,u,n,t){var C=parseFloat(mxUtils.getValue(this.style,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null!=M||0!=this.graphConfig.resize||""==b.style.height?(M=null!=M?M:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+M.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+M.y),y=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=T});8==document.documentMode?window.setTimeout(E,0):E();this.positionGraph=function(M){e=this.graph.getGraphBounds();y=null;E(M)}};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};l.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};l.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
[c,n,u]);3<=c.state.strokeWidth&&(n=mxUtils.getValue(this.style,"fillColor",null),null!=n&&(c.setStrokeColor(n),c.setStrokeWidth(c.state.strokeWidth-2),c.setDashed(t,C),bb.prototype.origPaintEdgeShape.apply(this,[c,m,u])))};mxCellRenderer.registerShape("filledEdge",bb);"undefined"!==typeof StyleFormatPanel&&function(){var c=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var m=this.editorUi.getSelectionState(),u=c.apply(this,arguments);"umlFrame"== m.style.shape&&u.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return u}}();mxMarker.addMarker("dash",function(c,m,u,n,t,C,D,ha,I,ua){var na=t*(D+I+1),Za=C*(D+I+1);return function(){c.begin();c.moveTo(n.x-na/2-Za/2,n.y-Za/2+na/2);c.lineTo(n.x+Za/2-3*na/2,n.y-3*Za/2-na/2);c.stroke()}});mxMarker.addMarker("box",function(c,m,u,n,t,C,D,ha,I,ua){var na=t*(D+I+1),Za=C*(D+I+1),qb=n.x+na/2,fb=n.y+Za/2;n.x-=na;n.y-=Za;return function(){c.begin();c.moveTo(qb-na/2-
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
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,ba){var S=new mxPoint(ma,ba);S.type=ia;d.push(S);S=null!=K.routedPoints?K.routedPoints[d.length-1]:null;return null==S||S.type!=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null!=B&&0<B.length&&(B=B.split(" "),3<B.length&&(w=parseFloat(B[2])+6,h=parseFloat(B[3])+6,l.setAttribute("viewBox",B[0]+" "+B[1]+" "+w+" "+h))))));return aa};Graph.prototype.setShadowVisible=function(l,B){mxClient.IS_SVG&&!mxClient.IS_SF&&(B=null!=B?B:!0,(this.shadowVisible=l)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),B&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.selectUnlockedLayer=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
c.begin(),c.moveTo(n-C,0),c.lineTo(n-C,C),c.lineTo(n,C),c.close(),c.fill()),c.begin(),c.moveTo(n-C,0),c.lineTo(n-C,C),c.lineTo(n,C),c.end(),c.stroke())};mxCellRenderer.registerShape("note",F);mxUtils.extend(K,F);mxCellRenderer.registerShape("note2",K);K.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var m=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,m*this.scale),0,0)}return null};mxUtils.extend(R,mxShape);R.prototype.isoAngle=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
B){null!=l&&(l=null!=l.error?l.error:l,null==l.retry&&(l.retry=B))};Editor.mermaidToDrawio=function(l,B,N){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(l,B,N)};Editor.configure=function(l){if(null!=l){Editor.config=l;Editor.configVersion=l.version;l.debug&&(urlParams.test="1");null!=l.defaultFonts&&(Menus.prototype.defaultFonts=l.defaultFonts);null!=l.presetColors&&(ColorDialog.prototype.presetColors=l.presetColors);null!=l.defaultColors&&(ColorDialog.prototype.defaultColors=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Q.appendChild(ea);L.appendChild(Q)}};Graph.prototype.updateSvgLinks=function(x,L,Q){x=x.getElementsByTagName("a");for(var X=0;X<x.length;X++)if(null==x[X].getAttribute("target")){var ea=x[X].getAttribute("href");null==ea&&(ea=x[X].getAttribute("xlink:href"));null!=ea&&(null!=L&&/^https?:\/\//.test(ea)?x[X].setAttribute("target",L):Q&&this.isCustomLink(ea)&&x[X].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(x){x=new mxSvgCanvas2D(x);x.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
type:"bool",getDefaultValue:function(l,B){l=B.editorUi.editor.graph.getCellStyle(1==l.vertices.length&&0==l.edges.length?l.vertices[0]:null);return"1"==mxUtils.getValue(l,"resizeLastRow","0")},isVisible:function(l,B){B=B.editorUi.editor.graph;return 1==l.vertices.length&&0==l.edges.length&&B.isTable(l.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(l,B){l=B.editorUi.editor.graph.getCellStyle(1==l.vertices.length&&0==l.edges.length?l.vertices[0]:
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};ma.prototype.isRoundable=function(){return!0};ma.prototype.redrawPath=function(c,m,u,n,t){m=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var C=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),D=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2", this.position2)))),ha=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t-u),new mxPoint(Math.min(n,C+ha),t-u),new mxPoint(D,t),new mxPoint(Math.max(0,C),t-u),new mxPoint(0,t-u)],this.isRounded,m,!0,[4])};mxCellRenderer.registerShape("callout",ma);mxUtils.extend(ba,mxActor);ba.prototype.size=.2;ba.prototype.fixedSize=20;ba.prototype.isRoundable=function(){return!0};ba.prototype.redrawPath=function(c,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
40;aa.prototype.isHtmlAllowed=function(){return!1};aa.prototype.getLabelBounds=function(c){var m=Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(c.x,c.y,c.width,m)};aa.prototype.paintBackground=function(c,m,u,n,t){var C=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),D=mxUtils.getValue(this.style,"participant");null==D||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
D&&"fold"==C)&&c.lineTo(I,t-ha-I):c.lineTo(0,t-I)};Na.prototype.moveSEInner=function(c,m,u,n,t,C,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==C?c.moveTo(n-I,t-I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.moveTo(n-I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"==D&&"fold"==C)&&c.moveTo(n-I,t-ha-I):c.moveTo(n-I,t)};Na.prototype.lineSEInner=function(c,m,u,n,t,C,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==C?c.lineTo(n-I, t-I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.lineTo(n-I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"==D&&"fold"==C)&&c.lineTo(n-I,t-ha-I):c.lineTo(n-I,t)};Na.prototype.moveNEInner=function(c,m,u,n,t,C,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==C||ua?c.moveTo(n-I,I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.moveTo(n-I,ha+.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"==
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
if(this.spinner.spin(document.body,mxResources.get("loading")))for(var B=d.length,N=B,Z=[],U=mxUtils.bind(this,function(Y,ka){Z[Y]=ka;if(0==--N){this.spinner.stop();if(null!=J)J(Z);else{var qa=[];V.getModel().beginUpdate();try{for(Y=0;Y<Z.length;Y++){var ra=Z[Y]();null!=ra&&(qa=qa.concat(ra))}}finally{V.getModel().endUpdate()}}A(qa)}}),aa=0;aa<B;aa++)mxUtils.bind(this,function(Y){var ka=d[Y];if(null!=ka){var qa=new FileReader;qa.onload=mxUtils.bind(this,function(ra){if(null==H||H(ka))try{if("image/"==
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Editor.prototype.createUndoManager=function(){var b=this.graph,e=new mxUndoManager;this.undoListener=function(p,y){e.undoableEditHappened(y.getProperty("edit"))};var g=mxUtils.bind(this,function(p,y){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,g);b.getView().addListener(mxEvent.UNDO,g);g=function(p,y){p=b.getSelectionCellsForChanges(y.getProperty("edit").changes,function(E){return!(E instanceof mxChildChange)});if(0<p.length){b.getModel();y=[];for(var q=0;q<p.length;q++)null!= b.view.getState(p[q])&&y.push(p[q]);b.setSelectionCells(y)}};e.addListener(mxEvent.UNDO,g);e.addListener(mxEvent.REDO,g);return e};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null!=va&&va.relative&&0>=va.x&&this.model.remove(Fa[L]);var Ua=this.model.getTerminal(Q,!1);if(null!=Ua){var ab=this.getCurrentCellStyle(Ua);null!=ab&&"1"==ab.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[x]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[x]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[Q]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[Q]))}}finally{this.model.endUpdate()}return Q};var R=Graph.prototype.selectCell;Graph.prototype.selectCell=function(x, L,Q){if(L||Q)R.apply(this,arguments);else{var X=this.getSelectionCell(),ea=null,la=[],oa=mxUtils.bind(this,function(xa){if(null!=this.view.getState(xa)&&(this.model.isVertex(xa)||this.model.isEdge(xa)))if(la.push(xa),xa==X)ea=la.length-1;else if(x&&null==X&&0<la.length||null!=ea&&x&&la.length>ea||!x&&0<ea)return;for(var sa=0;sa<this.model.getChildCount(xa);sa++)oa(this.model.getChildAt(xa,sa))});oa(this.model.root);0<la.length&&(ea=null!=ea?mxUtils.mod(ea+(x?1:-1),la.length):0,this.setSelectionCell(la[ea]))}};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ha+.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"==D&&"fold"==C)&&c.lineTo(I,ha+I):c.lineTo(0,0)};Na.prototype.paintFolds=function(c,m,u,n,t,C,D,ha,I,ua,na,Za,qb,fb,Ga){if("fold"==C||"fold"==D||"fold"==ha||"fold"==I||"fold"==ua)("fold"==D||"default"==D&&"fold"==C)&&Za&&Ga&&(c.moveTo(0,na),c.lineTo(na,na),c.lineTo(na,0)),("fold"==ha||"default"==ha&&"fold"==C)&&Za&&qb&&(c.moveTo(n-na,0),c.lineTo(n-na,na),c.lineTo(n,na)),("fold"==I||"default"==I&&"fold"==C)&&fb&&qb&&(c.moveTo(n- na,t),c.lineTo(n-na,t-na),c.lineTo(n,t-na)),("fold"==ua||"default"==ua&&"fold"==C)&&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,m,u){for(var n=[],t=0;t<m.length;t++)n.push(mxUtils.clone(m[t]));t=c.state.dashed;var C=c.state.fixDash;bb.prototype.origPaintEdgeShape.apply(this,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
b.getPageLayout(b.getBoundingBoxFromGeometry(b.model.getCells(),!0),ja,1),N=b.getDefaultTranslate(B);this.x0=B.x;this.y0=B.y;b.setScrollbarPositions(g.currentPage.viewState,N.x,N.y);if(N.x!=this.translate.x||N.y!=this.translate.y){this.setTranslate(N.x,N.y);return}}B=b.getPagePadding();N=b.getPageSize();this.translate.x=B.x-(this.x0||0)*N.width;this.translate.y=B.y-(this.y0||0)*N.height}G.apply(this,arguments)};if(!b.isViewer()){var ca=b.sizeDidChange;b.sizeDidChange=function(){if(null!=this.container&& mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var B=this.getPageLayout(),N=this.getDefaultTranslate(B),Z=this.view.translate.x,U=this.view.translate.y;if(N.x!=Z||N.y!=U){this.view.x0=B.x;this.view.y0=B.y;this.autoTranslate=!0;this.view.setTranslate(N.x,N.y);this.container.scrollLeft+=Math.round((N.x-Z)*this.view.scale);this.container.scrollTop+=Math.round((N.y-U)*this.view.scale);this.autoTranslate=!1;return}}ca.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE, "bounds",this.getGraphBounds()))}}}var ia=b.view.getBackgroundPane(),ma=b.view.getDrawPane();b.cumulativeZoomFactor=1;var ba=null,S=null,da=null,P=null,V=null,l=function(B){null!=ba&&window.clearTimeout(ba);0<=B&&window.setTimeout(function(){if(!b.isMouseDown||P)ba=window.setTimeout(mxUtils.bind(this,function(){b.isFastZoomEnabled()&&(null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
arguments)};this.connectionHandler.insertEdge=function(S,da,P,V,l,B){var N=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=V&&this.graph.applyNewEdgeStyle(V,[N]);return N};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=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0;v^=f}return v};EditorUi.prototype.descriptorChanged=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,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.prototype.getIndexableText=function(b){b=null!=b?b:this.model.getDescendants(this.model.root);for(var e=document.createElement("div"),g=[],p,y=0;y<b.length;y++)if(p=b[y],this.model.isVertex(p)||this.model.isEdge(p))this.isHtmlLabel(p)?(e.innerHTML=Graph.sanitizeHtml(this.getLabel(p)),p=mxUtils.extractTextWithWhitespace([e])):p=this.getLabel(p),p=mxUtils.trim(p.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<p.length&&g.push(p);return g.join(" ")};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){var e=mxUtils.sortCells(b.cells),g=this.editor.graph.model,p=g.getParent(e[0]),y=g.getParent(p);if(null!=p&&null!=y){for(var q=p.getIndex(e[0]),E=y.getIndex(p),M=null,T=1,F=1,K=0,R=E<y.getChildCount()-1?g.getChildAt(g.getChildAt(y,E+1),q):null;K<e.length-1;){var W=e[++K];null==R||R!=W||null!=M&&T!=M||(M=T,T=0,F++,p=g.getParent(R),R=E+F<y.getChildCount()?g.getChildAt(g.getChildAt(y,E+F),q):null);var d=this.editor.graph.view.getState(W); if(W==g.getChildAt(p,q+T)&&null!=d&&1==mxUtils.getValue(d.style,"colspan",1)&&1==mxUtils.getValue(d.style,"rowspan",1))T++;else break}K==F*T-1&&(b.mergeCell=e[0],b.colspan=T,b.rowspan=F)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var d=this,f=this.editor.graph;Graph.touchStyle&&(f.panningHandler.isPanningTrigger=function(P){var V=P.getEvent();return null==P.getState()&&!mxEvent.isMouseEvent(V)&&!f.freehand.isDrawing()||mxEvent.isPopupTrigger(V)&&(null==P.getState()||mxEvent.isControlDown(V)||mxEvent.isShiftDown(V))});f.cellEditor.editPlantUmlData=function(P,V,l){var B=JSON.parse(l);V=new TextareaDialog(d,mxResources.get("plantUml")+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function Z(){mxShape.call(this)}function U(){mxShape.call(this)}function aa(){mxRectangleShape.call(this)}function Y(){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 Ca(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function ya(){mxDoubleEllipse.call(this)}function Oa(){mxDoubleEllipse.call(this)}function Qa(){mxArrowConnector.call(this);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.prototype.getCellsForUngroup=function(E){E=p.apply(this,arguments);for(var M=[],T=0;T<E.length;T++)this.isTable(E[T])||this.isTableRow(E[T])||this.isTableCell(E[T])||M.push(E[T]);return M};Graph.prototype.updateCssTransform=function(){var E=this.view.getDrawPane();if(null!=E)if(E=E.parentNode,this.useCssTransforms){var M=E.getAttribute("transform");E.setAttribute("transformOrigin","0 0");var T=Math.round(100*this.currentScale)/100;E.setAttribute("transform","scale("+T+","+T+")translate("+Math.round(100*
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null==b?(F.style.border="1px solid #c0c0c0",F.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",q)):(e.style.display="none",g.style.display="none");var K=this;T.getImageFromBundles=function(W){return K.getImageUrl(W)};var R=y.createTemporaryGraph;y.createTemporaryGraph=function(){var W=R.apply(this,arguments);W.getImageFromBundles=function(d){return K.getImageUrl(d)};return W};this.graphConfig.move&&(T.isMoveCellsEvent=function(W){return!0});mxUtils.setPrefixedStyle(F.style,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.arrayBufferToString=function(b){var e="";b=new Uint8Array(b);for(var g=b.byteLength,p=0;p<g;p++)e+=String.fromCharCode(b[p]);return e};Graph.stringToArrayBuffer=function(b){return Uint8Array.from(b,function(e){return e.charCodeAt(0)})};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
F&&this.model.isVertex(d))&&(f=this.view.getState(d),null!=f&&(null==R||!R(f,E,M))&&this.intersects(f,E,M)))return d}return null};Graph.prototype.isRecursiveVertexResize=function(E){return!this.isSwimlane(E.cell)&&0<this.model.getChildCount(E.cell)&&!this.isCellCollapsed(E.cell)&&"1"==mxUtils.getValue(E.style,"recursiveResize","1")&&null==mxUtils.getValue(E.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(E){for(var M=this.getCellGeometry(E);null!=M&&M.relative;)E=this.getModel().getParent(E), M=this.getCellGeometry(E);return E};Graph.prototype.isPart=function(E){return"1"==mxUtils.getValue(this.getCurrentCellStyle(E),"part","0")||this.isTableCell(E)||this.isTableRow(E)};Graph.prototype.getCompositeParents=function(E){for(var M=new mxDictionary,T=[],F=0;F<E.length;F++){var K=this.getCompositeParent(E[F]);this.isTableCell(K)&&(K=this.graph.model.getParent(K));this.isTableRow(K)&&(K=this.graph.model.getParent(K));null==K||M.get(K)||(M.put(K,!0),T.push(K))}return T};Graph.prototype.getReferenceTerminal=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
oa))||(la=!1);la&&x.push(ea.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(x){for(var L=[],Q=0;Q<x.length;Q++)this.isCellDeletable(x[Q])&&this.isTransparentState(this.view.getState(x[Q]))&&L.push(x[Q]);x=L;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(x,L){this.setAttributeForCell(x,"link",L)};Graph.prototype.setTooltipForCell=function(x,L){var Q="tooltip";Graph.translateDiagram&& null!=Graph.diagramLanguage&&mxUtils.isNode(x.value)&&x.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(Q="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(x,Q,L)};Graph.prototype.getAttributeForCell=function(x,L,Q){x=null!=x.value&&"object"===typeof x.value?x.value.getAttribute(L):null;return null!=x?x:Q};Graph.prototype.setAttributeForCell=function(x,L,Q){if(null!=x.value&&"object"==typeof x.value)var X=x.value.cloneNode(!0);else X=mxUtils.createXmlDocument().createElement("UserObject"),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function W(){mxShape.call(this)}function d(c,m,u,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=u;this.strokewidth=null!=n?n:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function z(){mxActor.call(this)}function A(){mxActor.call(this)}function H(){mxActor.call(this)}function J(){mxActor.call(this)}function O(){mxActor.call(this)}function G(){mxActor.call(this)}function ja(){mxActor.call(this)}function fa(c,m){this.canvas=c;this.canvas.setLineJoin("round");
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
DrawioFile.prototype.saveFile=function(b,e,g,p){};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};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(c,m,u){mxShape.call(this);this.line=c;this.stroke=m;this.strokewidth=null!=u?u:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function p(){mxCylinder.call(this)}function y(){mxConnector.call(this)}function q(){mxCylinder.call(this)}function E(){mxActor.call(this)}function M(){mxCylinder.call(this)}function T(){mxCylinder.call(this)}function F(){mxCylinder.call(this)}function K(){mxCylinder.call(this)}function R(){mxShape.call(this)}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
q);mxUtils.extend(E,mxActor);E.prototype.size=20;E.prototype.redrawPath=function(c,m,u,n,t){m=Math.min(n,t/Ra);c.translate((n-m)/2,(t-m)/2+m/4);c.moveTo(0,.25*m);c.lineTo(.5*m,m*db);c.lineTo(m,.25*m);c.lineTo(.5*m,(.5-db)*m);c.lineTo(0,.25*m);c.close();c.end()};mxCellRenderer.registerShape("isoRectangle",E);mxUtils.extend(M,mxCylinder);M.prototype.size=20;M.prototype.redrawPath=function(c,m,u,n,t,C){m=Math.min(n,t/(.5+Ra));C?(c.moveTo(0,.25*m),c.lineTo(.5*m,(.5-db)*m),c.lineTo(m,.25*m),c.moveTo(.5* m,(.5-db)*m),c.lineTo(.5*m,(1-db)*m)):(c.translate((n-m)/2,(t-m)/2),c.moveTo(0,.25*m),c.lineTo(.5*m,m*db),c.lineTo(m,.25*m),c.lineTo(m,.75*m),c.lineTo(.5*m,(1-db)*m),c.lineTo(0,.75*m),c.close());c.end()};mxCellRenderer.registerShape("isoCube",M);mxUtils.extend(T,mxCylinder);T.prototype.redrawPath=function(c,m,u,n,t,C){m=Math.min(t/2,Math.round(t/8)+this.strokewidth-1);if(C&&null!=this.fill||!C&&null==this.fill)c.moveTo(0,m),c.curveTo(0,2*m,n,2*m,n,m),C||(c.stroke(),c.begin()),c.translate(0,m/2),c.moveTo(0,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Editor.soundex=function(b){if(null==b||0==b.length)return"";var e=[],g=1;e[0]=b[0].toUpperCase();for(var p=1,y=b.length;p<y;p++){var q=b[p].toUpperCase().charCodeAt(0)-65;if(0<=q&&25>=q&&"0"!="01230120022455012603010202"[q]&&("01230120022455012603010202"[q]!=e[g-1]&&(e[g]="01230120022455012603010202"[q],g++),3<g))break}if(3>=g)for(;3>=g;)e[g]="0",g++;return e.join("")};mxUtils.extend(Editor,mxEventSource);Editor.prototype.originalNoForeignObject=mxClient.NO_FO;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.bind(this,function(R,W,d,f){var k=this.actions.get(d);null!=k&&(d=function(){k.isEnabled()&&k.funct.apply(this,arguments)},W?f?y.bindControlShiftKey(R,d):y.bindControlKey(R,d):f?y.bindShiftKey(R,d):y.bindKey(R,d))});var F=this,K=y.escape;y.escape=function(R){K.apply(this,arguments)};y.enter=function(){};y.bindControlShiftKey(36,function(){p.exitGroup()});y.bindControlShiftKey(35,function(){p.enterGroup()});y.bindShiftKey(36,function(){p.home()});y.bindKey(35,function(){p.refresh()});y.bindAction(107,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Actions.prototype.addAction=function(b,e,g,p,y){if("..."==b.substring(b.length-3)){b=b.substring(0,b.length-3);var q=mxResources.get(b)+"..."}else q=mxResources.get(b);return this.put(b,new Action(q,e,g,p,y))};Actions.prototype.put=function(b,e){return this.actions[b]=e};Actions.prototype.get=function(b){return this.actions[b]};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
d);null!=k&&A.setAttribute("resource",k);var ia=mxUtils.bind(this,function(ma){ma=(v?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(ma);null!=z&&z(ma);return ma});f.mathEnabled&&this.editor.addMathCss(A);if(null!=z)this.embedFonts(A,mxUtils.bind(this,function(ma){J?this.editor.convertImages(ma,mxUtils.bind(this,function(ba){ia(ba)})):ia(ma)}));else return ia(A)};EditorUi.prototype.embedFonts=function(d,f){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!= this.editor.resolvedFontCss&&this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(d,k),f(d)}catch(v){f(d)}}))}catch(k){f(d)}}))};EditorUi.prototype.exportImage=function(d,f,k,v,z,A,H,J,O,G,ja,fa,ca){O=null!=O?O:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var ia=this.editor.graph.isSelectionEmpty();k=null!=k?k:ia;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null!=B&&0<B.length&&(B=l[B[1]],null!=B&&(B=/.* \/Subject (\d+) (\d+) R/g.exec(B.join("\n")),null!=B&&0<B.length&&(l=l[B[1]],null!=l&&(l=l.join("\n"),N=l.substring(1,l.length-1))))));return N};Editor.extractParserError=function(l,B){var N=null;l=null!=l?l.getElementsByTagName("parsererror"):null;null!=l&&0<l.length&&(N=B||mxResources.get("invalidChars"),B=l[0].getElementsByTagName("div"),0<B.length&&(N=mxUtils.getTextContent(B[0])));return null!=N?mxUtils.trim(N):N};Editor.addRetryToError=function(l,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(x,L){if(this.cancelled)this.cancelled=!1,L.consume();else{var Q=null!=this.div&&"none"!=this.div.style.display,X=null,ea=null,la=x=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(X=this.first.x,ea=this.first.y,x=(this.currentX-X)/this.graph.view.scale,la=(this.currentY-ea)/this.graph.view.scale,mxEvent.isAltDown(L.getEvent())||(x=this.graph.snap(x),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
parseInt(this.textarea.style.width)*Q);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+Q+","+Q+")")}else this.textarea.style.height="",this.textarea.style.overflow="",J.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(x,L){if("0"==mxUtils.getValue(x.style,"html","0"))return mxCellEditorGetInitialValue.apply(this, arguments);var Q=this.graph.getEditingValue(x.cell,L);"1"==mxUtils.getValue(x.style,"nl2Br","1")&&(Q=Q.replace(/\n/g,"<br/>"));return Q=Graph.sanitizeHtml(Q,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(x){if("0"==mxUtils.getValue(x.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var L=Graph.sanitizeHtml(this.textarea.innerHTML,!0);return L="1"==mxUtils.getValue(x.style,"nl2Br","1")?L.replace(/\r\n/g,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function W(){mxShape.call(this)}function d(c,m,u,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=u;this.strokewidth=null!=n?n:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function z(){mxActor.call(this)}function A(){mxActor.call(this)}function H(){mxActor.call(this)}function J(){mxActor.call(this)}function O(){mxActor.call(this)}function G(){mxActor.call(this)}function ja(){mxActor.call(this)}function fa(c,m){this.canvas=c;this.canvas.setLineJoin("round");
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.rewritePageLinks=function(b){function e(p,y){var q=p.getAttribute(y);null!=q&&Graph.isPageLink(q)&&p.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)};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(l,B,N,Z,U,aa,Y,ka,qa,ra){if(null!=N&&null==mxMarker.markers[N]){var pa=this.getPackageForType(N);null!=pa&&mxStencilRegistry.getStencil(pa)}return ba.apply(this,arguments)};var S=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(l,B,N,Z,U,aa){"1"==mxUtils.getValue(B.style,"lineShape",null)&&l.setFillColor(mxUtils.getValue(B.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return S.apply(this,arguments)};PrintDialog.prototype.create=function(l,B){function N(){Ca.value=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.hideDialog=function(b,e,g){null!=this.dialogs&&0<this.dialogs.length&&(null==g||g==this.dialog.container.firstChild)&&(g=this.dialogs.pop(),0==g.close(b,e)?this.dialogs.push(g):(this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog")),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null!=this.editor&& (this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var e=b.getSelectionCells(),g=new mxDictionary,p=[],y=0;y<e.length;y++){var q=b.isTableCell(e[y])?b.model.getParent(e[y]):e[y];null==q||g.get(q)||(g.put(q,!0),p.push(q))}b.setSelectionCells(b.duplicateCells(p,!1))}catch(E){this.handleError(E)}};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0),!1,null,0,.5*(u-n)));return c};d.prototype.getConstraints=function(c,m,u){c=[];m=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,m));c.push(new mxConnectionConstraint(new mxPoint(1, 0),!1,null,0,m));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1,null,0,-m));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1,null,0,-m));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,m+.5*(.5*u-m)));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,m+.5*(.5*u-m)));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,u-m-.5*(.5*u-m)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u-m-.5*(.5*u-m)));c.push(new mxConnectionConstraint(new mxPoint(.145, 0),!1,null,0,.29*m));c.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*m));c.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-m));c.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-m));return c};k.prototype.getConstraints=function(c,m,u){c=[];var n=Math.max(0,Math.min(m,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth)))),t=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function W(){mxShape.call(this)}function d(c,m,u,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=u;this.strokewidth=null!=n?n:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function z(){mxActor.call(this)}function A(){mxActor.call(this)}function H(){mxActor.call(this)}function J(){mxActor.call(this)}function O(){mxActor.call(this)}function G(){mxActor.call(this)}function ja(){mxActor.call(this)}function fa(c,m){this.canvas=c;this.canvas.setLineJoin("round");
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var H=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(P){P=null!=P?P:"";"1"==urlParams.dev&&(P+=(0<P.length?"&":"?")+"dev=1");return H.apply(this,arguments)};var J=f.addClickHandler;f.addClickHandler=function(P,V,l){var B=V;V=function(N,Z){if(null==Z){var U=mxEvent.getSource(N);"a"==U.nodeName.toLowerCase()&&(Z=U.getAttribute("href"))}null!=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
TableLayout.prototype.isVertexIgnored=function(b){return!this.graph.getModel().isVertex(b)||!this.graph.isCellVisible(b)};TableLayout.prototype.getSize=function(b,e){for(var g=0,p=0;p<b.length;p++)if(!this.isVertexIgnored(b[p])){var y=this.graph.getCellGeometry(b[p]);null!=y&&(g+=e?y.width:y.height)}return g};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(E,M,T){for(var F=0;F<M.length;F++){if(this.graph.isTableCell(M[F])||this.graph.isTableRow(M[F]))return!1;if(this.graph.getModel().isVertex(M[F])){var K=this.graph.getCellGeometry(M[F]);if(null!=K&&K.relative)return!1}}return e.apply(this,arguments)};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var E=g.apply(this,arguments);E.intersects=mxUtils.bind(this,function(M,T){return this.isConnecting()? !0:mxCellMarker.prototype.intersects.apply(E,arguments)});return E};mxGraphView.prototype.createBackgroundPageShape=function(E){return new mxRectangleShape(E,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var E=this.getGraphBounds(),M=0<E.width?E.x/this.scale-this.translate.x:0,T=0<E.height?E.y/this.scale-this.translate.y:0,F=this.graph.pageFormat,K=this.graph.pageScale,R=F.width*K;F=F.height*K;K=Math.floor(Math.min(0,M)/R);var W=Math.floor(Math.min(0,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
return Editor.createSvgDataUri(d)};EditorUi.prototype.embedCssFonts=function(d,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(d,f)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,f,k,v,z,A,H,J,O,G,ja,fa,ca,ia,ma,ba){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,f,k,v,z,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(S){return mxEvent.isShiftDown(S.getEvent())&&mxEvent.isAltDown(S.getEvent())?!1:null!=this.currentState&&S.getState()==this.currentState&&2E3<v||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&A.apply(this,arguments)};var H=this.isToggleEvent;this.isToggleEvent=function(S){return H.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(S)};var J=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe