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
return mxUtils.getXml(f)};EditorUi.prototype.closeLibrary=function(d){null!=d&&(this.removeLibrarySidebar(d.getHash()),d.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(d.getHash()),".scratchpad"==d.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(d){var f=this.sidebar.palettes[d];if(null!=f){for(var g=0;g<f.length;g++)f[g].parentNode.removeChild(f[g]);delete this.sidebar.palettes[d]}};EditorUi.prototype.repositionLibrary=function(d){var f=this.sidebar.container; if(null==d){var g=this.sidebar.palettes["L.scratchpad"];null==g&&(g=this.sidebar.palettes.search);null!=g&&(d=g[g.length-1].nextSibling)}d=null!=d?d:f.firstChild.nextSibling.nextSibling;g=f.lastChild;var l=g.previousSibling;f.insertBefore(g,d);f.insertBefore(l,g)};EditorUi.prototype.loadLibrary=function(d,f){var g=mxUtils.parseXml(d.getData());if("mxlibrary"==g.documentElement.nodeName){var l=JSON.parse(mxUtils.getTextContent(g.documentElement));this.libraryLoaded(d,l,g.documentElement.getAttribute("title"),
0
JavaScript
CWE-400
Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.
https://cwe.mitre.org/data/definitions/400.html
vulnerable
mxConstants.STYLE_DASHED,"0")&&l[1].setAttribute("stroke-dasharray",8*this.state.view.scale);var q=this.state.view.graph.getFlowAnimationStyle();null!=q&&l[1].setAttribute("class",q.getAttribute("id"))}}};var n=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(l,q){return n.apply(this,arguments)||null!=l.routedPoints&&null!=q.routedPoints&&!mxUtils.equalPoints(q.routedPoints,l.routedPoints)};var D=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=
0
JavaScript
CWE-400
Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.
https://cwe.mitre.org/data/definitions/400.html
vulnerable
0;g<f.length;g++)if(this.pageId==f[g].getAttribute("id")){this.currentPage=g;break}var l=this.graph.getGlobalVariable;d=this;this.graph.getGlobalVariable=function(H){var G=f[d.currentPage];return"page"==H?G.getAttribute("name")||"Page-"+(d.currentPage+1):"pagenumber"==H?d.currentPage+1:"pagecount"==H?f.length:l.apply(this,arguments)}}}this.diagrams=[];var q=null;this.selectPage=function(H){this.handlingResize||(this.currentPage=mxUtils.mod(H,this.diagrams.length),this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};
0
JavaScript
CWE-400
Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.
https://cwe.mitre.org/data/definitions/400.html
vulnerable
null!=this.linkHint&&(this.linkHint.style.visibility="")};var $a=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){$a.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),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,x){mxShape.call(this);this.line=c;this.stroke=m;this.strokewidth=null!=x?x:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function k(){mxSwimlane.call(this)}function n(){mxCylinder.call(this)}function D(){mxCylinder.call(this)}function t(){mxActor.call(this)}function E(){mxCylinder.call(this)}function d(){mxCylinder.call(this)}function f(){mxCylinder.call(this)}function g(){mxCylinder.call(this)}function l(){mxShape.call(this)}function q(){mxShape.call(this)}
0
JavaScript
CWE-400
Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.
https://cwe.mitre.org/data/definitions/400.html
vulnerable
DrawioFile.prototype.patch=function(b,e,k){if(null!=b){var n=this.ui.editor.undoManager,D=n.history.slice(),t=n.indexOfNextAdd,E=this.ui.editor.graph;E.container.style.visibility="hidden";var d=this.changeListenerEnabled;this.changeListenerEnabled=k;var f=E.foldingEnabled,g=E.mathEnabled,l=E.cellRenderer.redraw;E.cellRenderer.redraw=function(q){q.view.graph.isEditing(q.cell)&&(q.view.graph.scrollCellToVisible(q.cell),q.view.graph.cellEditor.resize());l.apply(this,arguments)};E.model.beginUpdate();
0
JavaScript
CWE-400
Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.
https://cwe.mitre.org/data/definitions/400.html
vulnerable
this.handleError(ja)}return C};EditorUi.prototype.updatePageLinks=function(d,f){for(var g=0;g<f.length;g++)this.updatePageLinksForCell(d,f[g].root),null!=f[g].viewState&&this.updateBackgroundPageLink(d,f[g].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(d,f){try{if(null!=f&&Graph.isPageLink(f.originalSrc)){var g=d[f.originalSrc.substring(f.originalSrc.indexOf(",")+1)];null!=g&&(f.originalSrc="data:page/id,"+g)}}catch(l){}};EditorUi.prototype.updatePageLinksForCell=
0
JavaScript
CWE-400
Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.
https://cwe.mitre.org/data/definitions/400.html
vulnerable
function(c,m,x,p,v){var A=Math.max(0,Math.min(p,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),B=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));c.translate(m,x);c.begin();c.moveTo(0,0);c.lineTo(p-A,0);c.lineTo(p,A);c.lineTo(p,v);c.lineTo(0,v);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=B&&(c.setFillAlpha(Math.abs(B)),c.setFillColor(0>B?"#FFFFFF":"#000000"),c.begin(),c.moveTo(p-A,0),c.lineTo(p- A,A),c.lineTo(p,A),c.close(),c.fill()),c.begin(),c.moveTo(p-A,0),c.lineTo(p-A,A),c.lineTo(p,A),c.end(),c.stroke())};mxCellRenderer.registerShape("note",f);mxUtils.extend(g,f);mxCellRenderer.registerShape("note2",g);g.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(l,mxShape);l.prototype.isoAngle=15;l.prototype.paintVertexShape=
0
JavaScript
CWE-400
Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.
https://cwe.mitre.org/data/definitions/400.html
vulnerable
if(null==na&&(ha=pa.indexOf("/"),na=pa.substring(0,ha),null==la)){var ka=pa.indexOf("/",ha+1);-1<ka&&(la=pa.substring(ha+1,ka))}ha=Ea[na];null==ha&&(Ra++,ha=[],Ea[na]=ha);pa=ja.getAttribute("clibs");null!=aa[pa]&&(pa=aa[pa]);pa={url:ja.getAttribute("url"),libs:ja.getAttribute("libs"),title:ja.getAttribute("title")||ja.getAttribute("name"),preview:ja.getAttribute("preview"),clibs:pa,tags:ja.getAttribute("tags")};ha.push(pa);null!=la&&(ha=Da[na],null==ha&&(ha={},Da[na]=ha),na=ha[la],null==na&&(na=[], ha[la]=na),na.push(pa))}ja=ja.nextSibling}p(Ea,Qa,Ga)}})}function C(ja){x&&(Ca.scrollTop=0,ea.innerText="",Ka.spin(ea),m=!1,T=!0,za.innerText=mxResources.get("recentDiag"),Z=null,x(Va,function(){n(mxResources.get("cannotLoad"));Va([])},ja?null:l))}function J(ja){if(""==ja)null!=K&&(K.click(),K=null);else{if(null==TemplatesDialog.tagsList[c]){var aa={};for(Ma in Ea)for(var la=Ea[Ma],na=0;na<la.length;na++){var pa=la[na];if(null!=pa.tags)for(var ha=pa.tags.toLowerCase().split(";"),ka=0;ka<ha.length;ka++)null==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
d?d:"",extras:JSON.stringify(u),scale:A,border:H,w:p&&isFinite(p)?p:null,h:q&&isFinite(q)?q:null}};EditorUi.prototype.setMode=function(d,g){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var g=d.indexOf("#");0<=g&&(d=d.substring(0,g))}return d};EditorUi.prototype.getHashObject=function(){var d=window.location.hash,g={};if(null!=d&&0<d.length){var n=d.lastIndexOf("#");if(0<n){d=decodeURIComponent(d.substring(n+
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,W,Q,V,X),this.lastX=V,this.lastY=X)};m.prototype.curveTo=function(W,Q,V,X,Y,Z){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,W,Q,V,X,Y,Z),this.lastX=Y,this.lastY=Z)};m.prototype.arcTo=function(W,Q,V,X,Y,Z,ca){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var da=mxUtils.arcToCurves(this.lastX,this.lastY,W,Q,V,X,Y,Z,ca);if(null!=da)for(var ma=0;ma<da.length;ma+=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
A.parentNode.removeChild(A)}catch(L){}}else this.createEchoRequest(d,g,n,t,u).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(d,g,n,t,u,v){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,d+(null!=n?"&mime="+n:"")+(null!=u?"&format="+u:"")+(null!=v?"&base64="+v:"")+(null!=g?"&filename="+encodeURIComponent(g):"")+(t?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(d,g){g=g||"";d=atob(d);for(var n=d.length,t=Math.ceil(n/1024),u=Array(t),v=0;v<t;++v){for(var A=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
0<Object.getOwnPropertyNames(B).length&&this.container.appendChild(this.addProperties(this.createPanel(),B,m))}};var d=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(m){var B=this.editorUi.getSelectionState();1==B.cells.length?this.addActions(m,["copyStyle","pasteStyle"]):1<=B.cells.length&&this.addActions(m,["pasteStyle","pasteData"]);return d.apply(this,arguments)};EditorUi.prototype.propertiesCollapsed=!0;StyleFormatPanel.prototype.addProperties=function(m,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",d,"\nresponse:",S,"\nresult:",p),this.spinner.stop(),g(p,q,C,J))}),H)}),H,mxUtils.bind(this,function(q){3>t++?v.clear()&&(this.spinner.stop(),u()):H(q)}))}),H);else{var F={message:mxResources.get("error")+" "+L.getStatus()};try{F=JSON.parse(L.getText()),F=F.error}catch(S){}H(F)}}),H)}),n)});u()};EditorUi.prototype.extractMermaidMindmap=function(d){for(0<d[1].indexOf("orientation")&&d.splice(1,1);1<d.length&&""==d[1];)d.splice(1,1); for(var g=[],n=2;n<d.length;n++){var t=mxUtils.trim(d[n]);"["!=t&&"]"!=t&&"%%"!=t.substring(0,2)&&"##"!=t.substring(0,2)&&(t=d[n].replace(/[-|>]/g," "),""!=mxUtils.trim(t)&&" "==t.charAt(0)&&g.push(t))}return"mindmap\nroot(("+mxUtils.trim(d[1])+"))\n"+g.join("\n")};EditorUi.prototype.extractMermaidDeclaration=function(d){"o\n\n"==d.substring(0,3)&&(d=d.substring(3));var g=d.split("```");g=1<g.length?g:d.split("<pre>");g=1<g.length?g:d.split("~~~");g=1<g.length?g:d.split("%%");g=1<g.length?g:d.split("(Begins)");
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
A,null,null,null,v)):mxscript("js/extensions.min.js",A,null,null,null,v))};EditorUi.prototype.generatePlantUmlImage=function(d,g,n,t){function u(H,L,F){c1=H>>2;c2=(H&3)<<4|L>>4;c3=(L&15)<<2|F>>6;c4=F&63;r="";r+=v(c1&63);r+=v(c2&63);r+=v(c3&63);return r+=v(c4&63)}function v(H){if(10>H)return String.fromCharCode(48+H);H-=10;if(26>H)return String.fromCharCode(65+H);H-=26;if(26>H)return String.fromCharCode(97+H);H-=26;return 0==H?"-":1==H?"_":"?"}var A=new XMLHttpRequest;A.open("GET",("txt"==g?PLANT_URL+ "/txt/":"png"==g?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(H){r="";for(i=0;i<H.length;i+=3)r=i+2==H.length?r+u(H.charCodeAt(i),H.charCodeAt(i+1),0):i+1==H.length?r+u(H.charCodeAt(i),0,0):r+u(H.charCodeAt(i),H.charCodeAt(i+1),H.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(d))),!0);"txt"!=g&&(A.responseType="blob");A.onload=function(H){if(200<=this.status&&300>this.status)if("txt"==g)n(this.response);else{var L=new FileReader;L.readAsDataURL(this.response);L.onloadend=function(F){var S= new Image;S.onload=function(){try{var p=S.width,q=S.height;if(0==p&&0==q){var C=L.result,J=C.indexOf(","),G=decodeURIComponent(escape(atob(C.substring(J+1)))),P=mxUtils.parseXml(G).getElementsByTagName("svg");0<P.length&&(p=parseFloat(P[0].getAttribute("width")),q=parseFloat(P[0].getAttribute("height")))}n(L.result,p,q)}catch(O){t(O)}};S.src=L.result};L.onerror=function(F){t(F)}}else t(H)};A.onerror=function(H){t(H)};A.send()};EditorUi.prototype.insertAsPreText=function(d,g,n){var t=this.editor.graph,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
(t<<5)-t+this.hashValue(d.childNodes[u],g,n)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=n&&(n.byteCount+=d.length);for(u=0;u<d.length;u++)g=(g<<5)-g+d.charCodeAt(u)<<0;t^=g}return t};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,g,n,t,u,v,A){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.handleError({message:mxResources.get("error")+" "+C.getStatus()}))}),mxUtils.bind(this,function(C){this.handleError(C)}))}),p=mxUtils.bind(this,function(){window.clearTimeout(F);F=window.setTimeout(S,L)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){p();S()}));p();S()}null!=g&&g()});if(null!=d.url&&0<d.url.length){var v=this.editor.getProxiedUrl(d.url);this.editor.loadUrl(v,mxUtils.bind(this,function(A){u(A)}),mxUtils.bind(this,function(A){null!=n&&n(A)}))}else u("")};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.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(W){return new m(W,Editor.createRoughCanvas(W),this)};var B=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(W){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?B.apply(this,arguments):"comic"==mxUtils.getValue(this.style, "sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var K=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,Q,V,X,Y){null!=W.handJiggle&&W.handJiggle.passThrough||K.apply(this,arguments)};var R=mxShape.prototype.paint;mxShape.prototype.paint=function(W){var Q=W.addTolerance,V=!0;null!=this.style&&(V="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=W.handJiggle&&W.handJiggle.constructor==m&&!this.outline){W.save();
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=W.setStrokeColor;W.setStrokeColor=function(){};var da=W.setFillColor;W.setFillColor=function(){};V||null==X||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;R.apply(this,arguments);W.handJiggle.passThrough=!1;W.setFillColor=da;W.setStrokeColor=ca;this.configurePointerEvents=Z;this.stroke=Y;this.fill=X;W.restore();V&&null!=X&&(W.addTolerance=function(){})}R.apply(this,arguments);W.addTolerance=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
N=document.createElement("div");N.style.marginTop="6px";N.style.display="inline-block";N.style.width="140px";mxUtils.write(N,mxResources.get("siblingSpacing")+": ");O.appendChild(N);var R=document.createElement("input");R.type="number";R.value=G;R.style.width="200px";R.style.boxSizing="border-box";O.appendChild(R);mxEvent.addListener(R,"change",function(){G=R.value});N=mxUtils.button(mxResources.get("custom")+"...",function(){var U=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(T.value), parentChildSpacing:parseInt(K.value),siblingSpacing:parseInt(R.value)}}];c.hideDialog();c.showCustomLayoutDialog(JSON.stringify(U,null,2))});N.className="geBtn";O=new CustomDialog(c,O,function(){null==C&&(C=2);c.loadOrgChartLayouts(P)},null,null,null,N);c.showDialog(O.container,355,140,!0,!0)},q,null,l());p.addSeparator(q);p.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){c.tryAndHandle(mxUtils.bind(this,function(){var C=new mxParallelEdgeLayout(k);C.checkOverlap=!0;c.prompt(mxResources.get("spacing"), C.spacing,mxUtils.bind(this,function(J){c.tryAndHandle(mxUtils.bind(this,function(){C.spacing=J;c.executeLayout(function(){C.execute(k.getDefaultParent(),k.isSelectionEmpty()?null:k.getSelectionCells())},!1)}))}))}))}),q);p.addSeparator(q);c.menus.addMenuItem(p,"runLayout",q,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(p,q){if(!mxClient.IS_CHROMEAPP&&c.isOffline())this.addMenuItems(p,["about"],q);else{var C=p.addItem("Search:",null,null,q,null,null,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
null!=d.getMode())try{this.addRecent({id:d.getHash(),title:d.getTitle(),mode:d.getMode()})}catch(H){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(H){}}catch(H){this.fileLoadedError=H;if(null!=d)try{d.close()}catch(L){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=d?d.getHash():"none"),action:"message_"+H.message,label:"stack_"+H.stack})}catch(L){}d=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body, mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=t?this.fileLoaded(t)||v():v()});g?d():this.handleError(H,mxResources.get("errorLoadingFile"),d,!0,null,null,!0)}else v();return u};EditorUi.prototype.getHashValueForPages=function(d,g){var n=0,t=new mxGraphModel,u=new mxCodec;null!=g&&(g.byteCount=0,g.attrCount=0,g.eltCount=0,g.nodeCount=0);for(var v=0;v<d.length;v++){this.updatePageRoot(d[v]);var A=d[v].node.cloneNode(!1);A.removeAttribute("name");t.root=d[v].root;
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxClient.IS_FF&&mxClient.IS_WIN&&null==K.getState()&&mxEvent.isTouchEvent(K.getEvent())};var Y=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(Y=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=Y)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(K){return mxEvent.isMouseEvent(K.getEvent())};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(C){z=C};this.setAutoScroll=function(C){M=C};this.setOpenFill=function(C){I=C};this.setStopClickEnabled=function(C){n=C};this.setSelectInserted=function(C){t=C};this.setSmoothing=function(C){f=C};this.setPerfectFreehandMode=function(C){v=C};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=function(C){u.size=C};this.getBrushSize=function(){return u.size};var A=function(C){g=C;b.getRubberband().setEnabled(!C);b.graphHandler.setSelectEnabled(!C);b.graphHandler.setMoveEnabled(!C); b.container.style.cursor=C?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){A(!0)};this.isDrawing=function(){return g};var H=mxUtils.bind(this,function(C){if(c){var J=y.length,G=n&&0<x.length&&null!=y&&2>y.length;G||x.push.apply(x,y);y=[];x.push(null);k.push(c);c=null;(G||z)&&this.stopDrawing();z&&(!G||2<=J)&&this.startDrawing();mxEvent.consume(C)}}),L=new mxCell;L.edge=!0;var F=function(){var C=b.getCurrentCellStyle(L);C=mxUtils.getValue(b.currentVertexStyle,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
e.getCell(g),null!=d&&d!=I&&(I=null));null!=I&&(e.getChildAt(f,y)!=I&&e.add(f,I,y),this.patchCellRecursive(b,e,I,c,k),y++);return g});for(D=[null];0<D.length;)if(z=D.shift(),z=E(null!=z?z.child:null,null!=z?z.insert:!1),M=l[z],null!=M&&(delete l[z],D.push({child:e.getCell(M)})),M=x[z],null!=M&&(delete x[z],D.push({child:this.getCellForJson(M),insert:!0})),0==D.length){for(z in l)D.push({child:e.getCell(l[z])}),delete l[z];for(z in x)D.push({child:this.getCellForJson(x[z]),insert:!0}),delete x[z]}}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
window.console&&console.error(K,N,T)}}function k(N){if(b.shareCursorPosition&&!z.isMouseDown){var T=mxUtils.getOffset(z.container),m=z.view.translate,B=z.view.scale,K=null!=b.currentPage?b.currentPage.getId():null;c("cursor",{pageId:K,x:Math.round((N.getX()-T.x+z.container.scrollLeft)/B-m.x),y:Math.round((N.getY()-T.y+z.container.scrollTop)/B-m.y)})}}function l(N,T){var m=null!=b.currentPage?b.currentPage.getId():null;if(null!=N&&null!=N.cursor&&null!=N.lastCursor)if(null!=N.lastCursor.hide||!b.isShowRemoteCursors()|| null!=N.lastCursor.pageId&&N.lastCursor.pageId!=m)N.cursor.style.display="none";else{m=function(){var Q=Math.max(z.container.scrollLeft,Math.min(z.container.scrollLeft+z.container.clientWidth-N.cursor.clientWidth,R)),V=Math.max(z.container.scrollTop-22,Math.min(z.container.scrollTop+z.container.clientHeight-N.cursor.clientHeight,U));W.style.opacity=Q!=R||V!=U?0:1;N.cursor.style.left=Q+"px";N.cursor.style.top=V+"px";N.cursor.style.display=""};var B=z.view.translate,K=z.view.scale,R=(B.x+N.lastCursor.x)* K+8,U=(B.y+N.lastCursor.y)*K-12,W=N.cursor.getElementsByTagName("img")[0];T?(mxUtils.setPrefixedStyle(N.cursor.style,"transition","all 900ms ease-out"),mxUtils.setPrefixedStyle(W.style,"transition","all 900ms ease-out"),window.setTimeout(m,0)):(mxUtils.setPrefixedStyle(N.cursor.style,"transition",null),mxUtils.setPrefixedStyle(W.style,"transition",null),m())}}function x(N,T){try{var m=function(){if(null==g[K]){var Z=A[K];null==Z&&(Z=M%d.length,A[K]=Z,M++);var ca=d[Z];Z=11<Z?"black":"white";g[K]={cursor:document.createElement("div"),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.hsplit.style.bottom,this.checkTabScrollerOverflow()):(this.diagramContainer.style.left=n.x+"px",this.diagramContainer.style.right="0")}d&&this.editor.graph.sizeDidChange()}else D.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(d){var g=mxUtils.bind(this,function(t){t=this.createMenu(t,null,"geTitle");t.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;"; d.appendChild(t);return t});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=this.actions.get("newLibrary"))g=document.createElement("div"),g.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;",g.className="geTitle",mxUtils.write(g,mxResources.get("newLibrary")),d.appendChild(g),mxEvent.addListener(g, "click",this.actions.get("newLibrary").funct),g=g.cloneNode(!1),g.style.left="50%",g.style.borderLeftStyle="solid",mxUtils.write(g,mxResources.get("openLibrary")),d.appendChild(g),mxEvent.addListener(g,"click",this.actions.get("openLibrary").funct);else{var n=g("newLibrary");n.style.fontSize="11px";n.style.left="0";n=g("openLibraryFrom");n.style.borderLeftStyle="solid";n.style.fontSize="11px";n.style.left="50%"}d.appendChild(this.sidebarContainer);d.style.overflow="hidden"};EditorUi.prototype.createShapesWindow=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
S(la.url,la.libs,la.title,la.tooltip?la.tooltip:la.title,la.select,la.imgUrl,la.info,la.onClick,la.preview,la.noImg,la.clibs);aa&&la.click();aa=!1}}function A(aa,la,na,pa,ha,ka){if(null!=aa&&mxUtils.isAncestorNode(document.body,pa)){aa=mxUtils.parseXml(aa);aa=Editor.parseDiagramNode(aa.documentElement);var ua=new mxCodec(aa.ownerDocument),wa=new mxGraphModel;ua.decode(aa,wa);aa=wa.root.getChildAt(0).children;b.sidebar.createTooltip(pa,aa,Math.min((window.innerWidth||document.documentElement.clientWidth|| document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-80,800),null!=ha?mxResources.get(ha):null,!0,new mxPoint(la,na),!0,function(){R=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=ka&&F(pa,null,null,ka,infoObj,clibs)},!0,!1)}}function H(){var aa=document.createElement("div");aa.style.position="absolute";aa.style.overflow="visible";aa.style.left="8px";aa.style.right="8px";aa.style.bottom="8px";aa.style.top=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxGraphView.prototype.stateValidated=function(m){null!=m.shape&&this.redrawEnumerationState(m);return S.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(m){m=decodeURIComponent(mxUtils.getValue(m.style,"enumerateValue",""));""==m&&(m=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(m)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(m){var B="1"==mxUtils.getValue(m.style, "enumerate",0);B&&null==m.secondLabel?(m.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),m.secondLabel.size=12,m.secondLabel.state=m,m.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(m,m.secondLabel)):B||null==m.secondLabel||(m.secondLabel.destroy(),m.secondLabel=null);B=m.secondLabel;if(null!=B){var K=m.view.scale,R=this.createEnumerationValue(m);m=this.graph.model.isVertex(m.cell)?new mxRectangle(m.x+m.width-4* K,m.y+4*K,0,0):mxRectangle.fromPoint(m.view.getPoint(m));B.bounds.equals(m)&&B.value==R&&B.scale==K||(B.bounds=m,B.value=R,B.scale=K,B.redraw())}};var p=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){p.apply(this,arguments);if(mxClient.IS_GC&&null!=this.getDrawPane()){var m=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxClient.NO_FO||null!=this.webKitForceRepaintNode&&null!=this.webKitForceRepaintNode.parentNode||"svg"!=this.graph.container.firstChild.nodeName?
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
d,g,n,t,u);this.showDialog(d.container,640,440,!0,!1,mxUtils.bind(this,function(v){v&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));d.init()};var f=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(d){var g=f.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(n){this.editor.graph.isSelectionEmpty()&&g.refresh()}));return g};EditorUi.prototype.handleError=function(d,g,n,t,u,v,A){var H=null!=this.spinner&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxResources.get("format"),d,60,240,g,mxUtils.bind(this,function(u){u.appendChild(this.formatContainer)}));this.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.formatWindow.window.fit()}));var n=this.formatWindow.window.toggleMinimized,t=240;this.formatWindow.window.toggleMinimized=function(){n.apply(this,arguments);this.minimized?(t=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+ t-140+"px"):(this.div.style.width=t+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-t+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(u){mxEvent.getSource(u)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}));this.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80);"sketch"==Editor.currentTheme?(d=window.innerHeight||document.documentElement.clientHeight||
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
I.vertex=!0;M.addCell(I);M.dblClick=function(J,G){if(null!=G&&G!=I)M.setSelectionCell(G);else{G=mxUtils.convertPoint(M.container,mxEvent.getClientX(J),mxEvent.getClientY(J));mxEvent.consume(J);J=M.view.scale;var P=M.view.translate;M.setSelectionCell(l((G.x-3*J)/J-P.x,(G.y-3*J)/J-P.y))}};k=new mxKeyHandler(M);k.bindKey(46,x);k.bindKey(8,x);M.getRubberband().isForceRubberbandEvent=function(J){return 0==J.evt.button&&(null==J.getCell()||J.getCell()==I)};M.panningHandler.isForcePanningEvent=function(J){return 2==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(d,g,n,t,u,v,A,H){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,g,n,t,u,v,A,H)};EditorUi.prototype.loadFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(d)};EditorUi.prototype.createSvgDataUri=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(d)};EditorUi.prototype.embedCssFonts=function(d,g){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(d,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"unknown");null!=S&&null!=S.error&&null!=S.error.code&&(p+="-code_"+S.error.code);EditorUi.logEvent({category:"ERROR-SAVE-FILE-"+f.getHash()+"-rev_"+f.desc.headRevisionId+"-mod_"+f.desc.modifiedDate+"-size_"+f.getSize()+"-mime_"+f.desc.mimeType+(this.ui.editor.autosave?"":"-nosave")+(f.isAutosave()?"":"-noauto")+(f.changeListenerEnabled?"":"-nolisten")+(f.inConflictState?"-conflict":"")+(f.invalidChecksum?"-invalid":""),action:p,label:(null!=this.user?"user_"+this.user.id:"nouser")+(null!=f.sync? "-client_"+f.sync.clientId:"-nosync")})}}catch(q){}}),d=mxUtils.bind(this,function(S){I(S);try{EditorUi.logError(S.message,null,null,null,S)}catch(p){}});if(f.isEditable()&&null!=f.desc){var g=(new Date).getTime(),n=f.desc.etag,t=f.desc.modifiedDate,u=f.desc.headRevisionId,v=this.ui.useCanvasForExport&&/(\.png)$/i.test(f.getTitle());y=null!=y?y:!1;var A=null,H=!1,L={mimeType:f.desc.mimeType,title:f.getTitle()};if(this.isGoogleRealtimeMimeType(L.mimeType))L.mimeType=this.xmlMimeType,A=f.desc,H=c=!0;
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
u=-1,v=function(){null!=x?(null!=y&&y(u),u=x(t)):t()};this.drawRuler=v;this.sizeListener=e=l(function(){var A=g.container;f?(A=A.offsetHeight+E,I.height!=A&&(I.height=A,M.style.height=A+"px",v())):(A=A.offsetWidth+E,I.width!=A&&(I.width=A,M.style.width=A+"px",v()))},10);this.pageListener=function(){v()};this.scrollListener=c=l(function(){var A=f?g.container.scrollTop:g.container.scrollLeft;D.lastScroll!=A&&(D.lastScroll=A,v())},10);this.unitListener=function(A,H){D.setUnit(H.getProperty("unit"))};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
K=B.editor.graph;if(K.isEnabled()){var R=B.getCurrentFile();null!=R&&R.isAutosaveOptional()&&m.appendChild(this.createOption(mxResources.get("autosave"),function(){return B.editor.autosave},function(Q){B.editor.setAutosave(Q);B.editor.autosave&&R.isModified()&&R.fileChanged()},{install:function(Q){this.listener=function(){Q(B.editor.autosave)};B.editor.addListener("autosaveChanged",this.listener)},destroy:function(){B.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&K.isEnabled()&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
!1,!0)}finally{L.model.endUpdate()}}}catch(T){if(u)throw T;this.handleError(T)}return H};EditorUi.prototype.updatePageLinks=function(d,g){for(var n=0;n<g.length;n++)this.updatePageLinksForCell(d,g[n].root),null!=g[n].viewState&&this.updateBackgroundPageLink(d,g[n].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(d,g){try{if(null!=g&&Graph.isPageLink(g.originalSrc)){var n=d[g.originalSrc.substring(g.originalSrc.indexOf(",")+1)];null!=n&&(g.originalSrc="data:page/id,"+
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(C){z=C};this.setAutoScroll=function(C){M=C};this.setOpenFill=function(C){I=C};this.setStopClickEnabled=function(C){n=C};this.setSelectInserted=function(C){t=C};this.setSmoothing=function(C){f=C};this.setPerfectFreehandMode=function(C){v=C};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=function(C){u.size=C};this.getBrushSize=function(){return u.size};var A=function(C){g=C;b.getRubberband().setEnabled(!C);b.graphHandler.setSelectEnabled(!C);b.graphHandler.setMoveEnabled(!C);
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
R));var U=document.createElement("link");U.setAttribute("rel","preload");U.setAttribute("href",R);U.setAttribute("as","font");U.setAttribute("crossorigin","");B.parentNode.insertBefore(U,B)}}}};Editor.trimCssUrl=function(m){return m.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(m){m= null!=m?m:Editor.GUID_LENGTH;for(var B=[],K=0;K<m;K++)B.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return B.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="diagrams.net";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},{description:"diagramHtmlDesc",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
u=-1,v=function(){null!=x?(null!=y&&y(u),u=x(t)):t()};this.drawRuler=v;this.sizeListener=e=l(function(){var A=g.container;f?(A=A.offsetHeight+E,I.height!=A&&(I.height=A,M.style.height=A+"px",v())):(A=A.offsetWidth+E,I.width!=A&&(I.width=A,M.style.width=A+"px",v()))},10);this.pageListener=function(){v()};this.scrollListener=c=l(function(){var A=f?g.container.scrollTop:g.container.scrollLeft;D.lastScroll!=A&&(D.lastScroll=A,v())},10);this.unitListener=function(A,H){D.setUnit(H.getProperty("unit"))};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
ma[ea])&&da.push(ma[ea]);this.setHiddenTags(da);this.refresh()}0<ca.length&&(R++,this.executeAnimations(ca,V,Y?1:Z.steps,Y?0:Z.delay));0==R?X():Q()}else this.stoppingCustomActions=this.executingCustomActions=!1,Q(),null!=B&&B()});X()}};Graph.prototype.doUpdateCustomLinksForCell=function(m,B){var K=this.getLinkForCell(B);null!=K&&"data:action/json,"==K.substring(0,17)&&this.setLinkForCell(B,this.updateCustomLink(m,K));if(this.isHtmlLabel(B)){var R=document.createElement("div");R.innerHTML=Graph.sanitizeHtml(this.getLabel(B)); for(var U=R.getElementsByTagName("a"),W=!1,Q=0;Q<U.length;Q++)K=U[Q].getAttribute("href"),null!=K&&"data:action/json,"==K.substring(0,17)&&(U[Q].setAttribute("href",this.updateCustomLink(m,K)),W=!0);W&&this.labelChanged(B,R.innerHTML)}};Graph.prototype.updateCustomLink=function(m,B){if("data:action/json,"==B.substring(0,17))try{var K=JSON.parse(B.substring(17));null!=K.actions&&(this.updateCustomLinkActions(m,K.actions),B="data:action/json,"+JSON.stringify(K))}catch(R){}return B};Graph.prototype.updateCustomLinkActions=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
(this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){k(!1)}))}),function(x){k(!1)},!0)};OneDriveClient.prototype.saveFile=function(e,f,c,k){try{var l=e.getData(),x=mxUtils.bind(this,function(E){var D=mxUtils.bind(this,function(M){f(M,l)}),z=this.getItemURL(e.getId());4E6<=E.length?this.writeLargeFile(z,E,D,c,k):this.writeFile(z+"/content/",E,"PUT",null,D,c,k)});if(this.ui.useCanvasForExport&&/(\.png)$/i.test(e.meta.name)){var y= this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(E){x(this.ui.base64ToBlob(E,"image/png"))}),c,this.ui.getCurrentFile()!=e?l:null,y.scale,y.border)}else x(l)}catch(E){c(E)}};OneDriveClient.prototype.writeLargeFile=function(e,f,c,k,l){try{if(null!=f){var x=(new TextEncoder).encode(f).length,y=mxUtils.bind(this,function(D,z,M,I){try{I=I||0;var d=!0,g=null;g=window.setTimeout(mxUtils.bind(this,function(){d=!1;k({code:App.ERROR_TIMEOUT})}),this.ui.timeout);
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
App.prototype.fileCreated=function(b,e,f,c,k,l){var x=window.location.pathname;null!=e&&0<e.length&&(x+="?libs="+e);null!=k&&0<k.length&&(x+="?clibs="+k);x=this.getUrl(x);b.getMode()!=App.MODE_DEVICE&&(x+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var y=b.getData();y=0<y.length?this.editor.extractGraphModel(mxUtils.parseXml(y).documentElement,!0):null;var E=window.location.protocol+"//"+window.location.hostname+x,D=y,z=null;null!=y&&/\.svg$/i.test(b.getTitle())&& (z=this.createTemporaryGraph(this.editor.graph.getStylesheet()),document.body.appendChild(z.container),D=this.decodeNodeIntoGraph(D,z));b.setData(this.createFileData(y,z,b,E));null!=z&&z.container.parentNode.removeChild(z.container);var M=mxUtils.bind(this,function(){this.spinner.stop()}),I=mxUtils.bind(this,function(){M();var d=this.getCurrentFile();null==f&&null!=d&&(f=!d.isModified()&&null==d.getMode());var g=mxUtils.bind(this,function(){window.openFile=null;this.fileLoaded(b,null,l);f&&b.addAllSavedStatus(); null!=e&&this.sidebar.showEntries(e);if(null!=k){for(var t=[],u=k.split(";"),v=0;v<u.length;v++)t.push(decodeURIComponent(u[v]));this.loadLibraries(t)}}),n=mxUtils.bind(this,function(){f||null==d||!d.isModified()?g():this.confirm(mxResources.get("allChangesLost"),null,g,mxResources.get("cancel"),mxResources.get("discardChanges"))});null!=c&&c();null==f||f?n():(b.constructor==LocalFile&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(b.getData(),b.getTitle(), null==b.getMode())),null!=c&&c(),window.openWindow(x,null,n))});b.constructor==LocalFile?I():b.saveFile(b.getTitle(),!1,mxUtils.bind(this,function(){I()}),mxUtils.bind(this,function(d){M();null!=d&&"AbortError"==d.name||this.handleError(d)}))}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
'<img src="'+(p.constructor!=DriveFile?q:"https://drive.google.com/uc?id="+p.getId())+'"/>'),c.showDialog(q.container,450,240,!0,!0),q.init()):c.handleError({message:mxResources.get("invalidPublicUrl")})})}));c.actions.put("embedImage",new Action(mxResources.get("image")+"...",function(){c.showEmbedImageDialog(function(p,q,C,J,G,P){c.spinner.spin(document.body,mxResources.get("loading"))&&c.createEmbedImage(p,q,C,J,G,P,function(O){c.spinner.stop();O=new EmbedDialog(c,O);c.showDialog(O.container,450,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
if(null!=m.excludeCells){for(var K=[],R=0;R<B.length;R++)0>m.excludeCells.indexOf(B[R].id)&&K.push(B[R]);B=K}return B};Graph.prototype.getCellsById=function(m){var B=[];if(null!=m)for(var K=0;K<m.length;K++)if("*"==m[K]){var R=this.model.getRoot();B=B.concat(this.model.filterDescendants(function(W){return W!=R},R))}else{var U=this.model.getCell(m[K]);null!=U&&B.push(U)}return B};var J=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(m){return J.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(m))};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(d,g){d=new TextareaDialog(this,d,g,null,null,mxResources.get("close"));this.showDialog(d.container,620,460,!0,!0,null,null,null,null,!0);d.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(d,g,n,t,u,v){"text/xml"!=n||/(\.drawio)$/i.test(g)||/(\.xml)$/i.test(g)||/(\.svg)$/i.test(g)||/(\.html)$/i.test(g)||(g=g+"."+(null!=v?v:"drawio")); if(window.Blob&&navigator.msSaveOrOpenBlob)d=t?this.base64ToBlob(d,n):new Blob([d],{type:n}),navigator.msSaveOrOpenBlob(d,g);else if(mxClient.IS_IE)n=window.open("about:blank","_blank"),null==n?mxUtils.popup(d,!0):(n.document.write(d),n.document.close(),n.document.execCommand("SaveAs",!0,g),n.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==n||"image/"!=n.substring(0,6)?this.showTextDialog(g+":",d):this.openInNewWindow(d,n,t);else{var A=document.createElement("a");v= (null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof A.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var H=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);v=65==(H?parseInt(H[2],10):!1)?!1:v}if(v||this.isOffline()){A.href=URL.createObjectURL(t?this.base64ToBlob(d,n):new Blob([d],{type:n}));v?A.download=g:A.setAttribute("target","_blank");document.body.appendChild(A);try{window.setTimeout(function(){URL.revokeObjectURL(A.href)},2E4),A.click(), A.parentNode.removeChild(A)}catch(L){}}else this.createEchoRequest(d,g,n,t,u).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(d,g,n,t,u,v){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,d+(null!=n?"&mime="+n:"")+(null!=u?"&format="+u:"")+(null!=v?"&base64="+v:"")+(null!=g?"&filename="+encodeURIComponent(g):"")+(t?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(d,g){g=g||"";d=atob(d);for(var n=d.length,t=Math.ceil(n/1024),u=Array(t),v=0;v<t;++v){for(var A=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxEvent.getClientX(C),mxEvent.getClientY(C))},p=function(C){for(d.push(C);d.length>f;)d.shift()},q=function(C){var J=d.length;if(1===J%2||J>=f){var G=0,P=0,O,N=0;for(O=C;O<J;O++)N++,C=d[O],G+=C.x,P+=C.y;return{x:G/N,y:P/N}}return null}}}mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;mxFreehand.prototype.NORMAL_SMOOTHING=8;mxFreehand.prototype.VERY_SMOOTH_SMOOTHING=12;mxFreehand.prototype.SUPER_SMOOTH_SMOOTHING=16;mxFreehand.prototype.HYPER_SMOOTH_SMOOTHING=20;function P2PCollab(b,e,f){function c(N,T){try{if(!q){var m=e.file.getCurrentUser();if(p&&null!=m&&null!=m.displayName){var B={from:H,id:n,type:N,sessionId:e.clientId,userId:m.id,username:m.displayName,data:T,protocol:DrawioFileSync.PROTOCOL,editor:EditorUi.VERSION};B={bytes:e.objectToString(B),data:"aes"};B=JSON.stringify(B);C&&"cursor"!=N&&EditorUi.debug("P2PCollab: sending to socket server",[B]);n++;m=!C&&("cursor"==N||"selectionChange"==N);S&&!m&&O("message",B);if(m)for(p2pId in F)F[p2pId].send(B)}}}catch(K){null!=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Q[X[Z]]&&Y++;Y=Y==W}Y&&(1!=R||this.isCellVisible(B[V]))&&U.push(B[V])}}return U};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(m){for(var B=null,K=[],R=0;R<m.length;R++){var U=this.getTagsForCell(m[R]);K=[];if(0<U.length){U=U.split(" ");for(var W={},Q=0;Q<U.length;Q++)if(null==B||null!=B[U[Q]])W[U[Q]]=!0,K.push(U[Q]);B=W}else return[]}return K};Graph.prototype.getTagsForCells=function(m){for(var B=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
g.addListener(mxEvent.SIZE,e);g.container.addEventListener("scroll",c);g.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(A){z=A;M.style.background=z.bkgClr;t()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(A,H,L,F){if(f&&4<A.height||!f&&4<A.width){if(null!=D.guidePart)try{d.putImageData(D.guidePart.imgData1,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
A.push("page-id="+this.currentPage.getId());return A};EditorUi.prototype.createLink=function(d,g,n,t,u,v,A,H,L,F){L=this.createUrlParameters(d,g,n,t,u,v,L);d=this.getCurrentFile();g=!0;null!=A?n="#U"+encodeURIComponent(A):(d=this.getCurrentFile(),H||null==d||d.constructor!=window.DriveFile?n="#R"+encodeURIComponent(n?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(n="#"+d.getHash(),g=!1));g&&null!=d&&null!=d.getTitle()&&d.getTitle()!= this.defaultFilename&&L.push("title="+encodeURIComponent(d.getTitle()));F&&1<n.length&&(L.push("open="+n.substring(1)),n="");return(t&&"1"!=urlParams.dev?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<L.length?"?"+L.join("&"):"")+n};EditorUi.prototype.createHtml=function(d,g,n,t,u,v,A,H,L,F,S,p){this.getBasenames();var q={};""!=u&&u!=mxConstants.NONE&&(q.highlight=u);"auto"!==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
(I=d)}k?e(new TrelloLibrary(this.ui,I,D)):e(new TrelloFile(this.ui,I,D))}}),mxUtils.bind(this,function(I,d){window.clearTimeout(E);y&&(401==d.status?this.authenticate(l,f,!0):f())}),z||null!=D.mimeType&&"image/"==D.mimeType.substring(0,6),null,null,null,M))}}),mxUtils.bind(this,function(D){window.clearTimeout(E);y&&(null!=D&&401==D.status?this.authenticate(l,f,!0):f())}))});this.authenticate(l,f)};TrelloClient.prototype.insertLibrary=function(b,e,f,c,k){this.insertFile(b,e,f,c,!0,k)};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.customFonts)))}finally{K.getModel().endUpdate()}}}));this.editorUi.showDialog(U.container,380,Editor.enableWebFonts?250:180,!0,!0);U.init()}),q,null,!0)})))}})();function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.editor.graph.mathEnabled&&this.editor.addMathCss(P);var T=mxUtils.bind(this,function(m){v?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(m,N,this.thumbImageCache)):N(m)});q?this.embedFonts(P,T):(this.editor.addFontCss(P),T(P))}catch(m){this.handleError(m)}};EditorUi.prototype.addRadiobox=function(d,g,n,t,u,v,A){return this.addCheckbox(d,n,t,u,v,A,!0,g)};EditorUi.prototype.addCheckbox=function(d,g,n,t,u,v,A,H){v=null!=v?v:!0;var L=document.createElement("input"); L.style.marginRight="8px";L.style.marginTop="16px";L.setAttribute("type",A?"radio":"checkbox");A="geCheckbox-"+Editor.guid();L.id=A;null!=H&&L.setAttribute("name",H);n&&(L.setAttribute("checked","checked"),L.defaultChecked=!0);t&&L.setAttribute("disabled","disabled");v&&(d.appendChild(L),n=document.createElement("label"),mxUtils.write(n,g),n.setAttribute("for",A),d.appendChild(n),u||mxUtils.br(d));return L};EditorUi.prototype.addEditButton=function(d,g){var n=this.addCheckbox(d,mxResources.get("edit")+
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
V.fillStyle=Q;return V};m.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};m.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};m.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var W=2;W<arguments.length;W+=2)this.lastX=arguments[W-1],this.lastY=arguments[W],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
if(null==na&&(ha=pa.indexOf("/"),na=pa.substring(0,ha),null==la)){var ka=pa.indexOf("/",ha+1);-1<ka&&(la=pa.substring(ha+1,ka))}ha=Ea[na];null==ha&&(Ra++,ha=[],Ea[na]=ha);pa=ja.getAttribute("clibs");null!=aa[pa]&&(pa=aa[pa]);pa={url:ja.getAttribute("url"),libs:ja.getAttribute("libs"),title:ja.getAttribute("title")||ja.getAttribute("name"),preview:ja.getAttribute("preview"),clibs:pa,tags:ja.getAttribute("tags")};ha.push(pa);null!=la&&(ha=Da[na],null==ha&&(ha={},Da[na]=ha),na=ha[la],null==na&&(na=[], ha[la]=na),na.push(pa))}ja=ja.nextSibling}p(Ea,Qa,Ga)}})}function C(ja){x&&(Ca.scrollTop=0,ea.innerText="",Ka.spin(ea),m=!1,T=!0,za.innerText=mxResources.get("recentDiag"),Z=null,x(Va,function(){n(mxResources.get("cannotLoad"));Va([])},ja?null:l))}function J(ja){if(""==ja)null!=K&&(K.click(),K=null);else{if(null==TemplatesDialog.tagsList[c]){var aa={};for(Ma in Ea)for(var la=Ea[Ma],na=0;na<la.length;na++){var pa=la[na];if(null!=pa.tags)for(var ha=pa.tags.toLowerCase().split(";"),ka=0;ka<ha.length;ka++)null==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
e.appendChild(M);e.appendChild(f);z.appendChild(e);var I=y,d,g,n=function(A,H,L,F){var S="data:"==A.substring(0,5);!b.isOffline()||S&&"undefined"===typeof chrome?0<A.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(A,function(p){b.spinner.stop();b.hideDialog();var q=!1===F?1:null!=H&&null!=L?Math.max(H/p.width,L/p.height):Math.min(1,Math.min(520/p.width,520/p.height));l&&(A=b.convertDataUri(A));c(A,Math.round(Number(p.width)*q),Math.round(Number(p.height)*q),I,d,g)}, function(){b.spinner.stop();c(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),c(A,null,null,I,d,g)):(A=b.convertDataUri(A),H=null==H?120:H,L=null==L?100:L,b.hideDialog(),c(A,H,L,I,d,g))},t=function(A,H){if(null!=A){var L=k?null:D.getModel().getGeometry(D.getSelectionCell());null!=L?n(A,L.width,L.height,H):n(A,null,null,H)}else b.hideDialog(),c(null)};this.init=function(){M.focus();if(Graph.fileSupport){M.setAttribute("placeholder",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
E;this.okButton=k;this.container=I},TemplatesDialog=function(b,e,f,c,k,l,x,y,E,D,z,M,I,d,g){function n(ja){ta.innerText=ja;ta.style.display="block";setTimeout(function(){ta.style.display="none"},4E3)}function t(){null!=B&&(B.style.fontWeight="normal",B.style.textDecoration="none",K=B,B=null)}function u(ja,aa,la,na,pa,ha,ka){if(-1<ja.className.indexOf("geTempDlgRadioBtnActive"))return!1;ja.className+=" geTempDlgRadioBtnActive";N.querySelector(".geTempDlgRadioBtn[data-id="+na+"]").className="geTempDlgRadioBtn "+
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
!0;Editor.enableRealtime=!0;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.config=null;Editor.configVersion=null;Editor.defaultBorder=5;Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(m){m.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(m,B){return"1"==mxUtils.getValue(m.style, "enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(m,B){return"1"!=mxUtils.getValue(m.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(m,B){return"1"==mxUtils.getValue(m.style,"comic","0")||"1"==mxUtils.getValue(m.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",type:"int",defVal:-1,isVisible:function(m,B){return"1"==mxUtils.getValue(m.style,"sketch","1"==urlParams.rough?
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
E;this.okButton=k;this.container=I},TemplatesDialog=function(b,e,f,c,k,l,x,y,E,D,z,M,I,d,g){function n(ja){ta.innerText=ja;ta.style.display="block";setTimeout(function(){ta.style.display="none"},4E3)}function t(){null!=B&&(B.style.fontWeight="normal",B.style.textDecoration="none",K=B,B=null)}function u(ja,aa,la,na,pa,ha,ka){if(-1<ja.className.indexOf("geTempDlgRadioBtnActive"))return!1;ja.className+=" geTempDlgRadioBtnActive";N.querySelector(".geTempDlgRadioBtn[data-id="+na+"]").className="geTempDlgRadioBtn "+ (ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");N.querySelector("."+aa).src="/images/"+la+"-sel.svg";N.querySelector("."+pa).src="/images/"+ha+".svg";return!0}function v(ja,aa,la,na){function pa(wa,Ma){null==ka?(wa=/^https?:\/\//.test(wa)&&!b.editor.isCorsEnabledForUrl(wa)?PROXY_URL+"?url="+encodeURIComponent(wa):TEMPLATE_PATH+"/"+wa,mxUtils.get(wa,mxUtils.bind(this,function(Ia){200<=Ia.getStatus()&&299>=Ia.getStatus()&&(ka=Ia.getText());Ma(ka)}))):Ma(ka)}function ha(wa,Ma,Ia){if(null!=wa&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(v){return mxEvent.getSource(v)==n?!0:u.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(d,g){mxSettings.setUi(d);(g=this.doSetCurrentTheme(d)||g)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(d){return""==d||"dark"==d||"default"==d||"kennedy"==d||null==d};EditorUi.prototype.doSetCurrentTheme=function(d,g,n){function t(L){return"simple"==L||0==g&&"sketch"==L}g=null!=g?g:150;var u=Editor.currentTheme,v=t(u)&&this.isDefaultTheme(d)||
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(){if(null==this.sidebarWindow){var d=Math.min(this.diagramContainer.parentNode.clientWidth-10,218),g="1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650),n="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;this.sidebarWindow=new WrapperWindow(this,mxResources.get("shapes"),n&&"1"!=urlParams.embedInline?66:10,n&&"1"!=urlParams.embedInline?Math.max(30,(this.diagramContainer.parentNode.clientHeight-g)/2):56,d-6,g-6,mxUtils.bind(this,function(t){this.createShapesPanel(t)})); this.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.sidebarWindow.window.fit()}));this.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90);this.sidebarWindow.window.setVisible(!1)}};EditorUi.prototype.setSketchMode=function(d){this.spinner.spin(document.body,mxResources.get("working")+"...")&&window.setTimeout(mxUtils.bind(this,function(){this.spinner.stop();this.doSetSketchMode(d);null==urlParams.rough&&(mxSettings.settings.sketchMode=d,mxSettings.save());
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function(d,g,n){try{null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this, function(t,u){try{this.spinner.stop();var v=this.createImageDataUri(t,g,"png"),A=parseInt(u.getAttribute("width")),H=parseInt(u.getAttribute("height"));this.writeImageToClipboard(v,A,H,mxUtils.bind(this,function(L){this.handleError(L)}))}catch(L){this.handleError(L)}}),null,null,null,mxUtils.bind(this,function(t){this.spinner.stop();this.handleError(t)}),null,null,null!=n?n:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<d.length? d:null)}catch(t){this.handleError(t)}};EditorUi.prototype.writeImageToClipboard=function(d,g,n,t){var u=this.base64ToBlob(d.substring(d.indexOf(",")+1),"image/png");d=new ClipboardItem({"image/png":u,"text/html":new Blob(['<img src="'+d+'" width="'+g+'" height="'+n+'">'],{type:"text/html"})});navigator.clipboard.write([d])["catch"](t)};EditorUi.prototype.copyCells=function(d,g){var n=this.editor.graph;if(n.isSelectionEmpty())d.innerText="";else{var t=mxUtils.sortCells(n.model.getTopmostCells(n.getSelectionCells())),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxEvent.getClientX(K),mxEvent.getClientY(K)),G.start(K.x,K.y)):null!=qa?this.addSelectionCells(qa):1<this.getSelectionCount()&&this.isCellSelected(L)&&this.removeSelectionCell(L);qa=null;U.consume()}}));this.connectionHandler.selectCells=function(K,U){this.graph.setSelectionCell(U||K)};this.connectionHandler.constraintHandler.isStateIgnored=function(K,U){var L=K.view.graph;return U&&(L.isCellSelected(K.cell)||L.isTableRow(K.cell)&&L.selectionCellsHandler.isHandled(L.model.getParent(K.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(W,Q,V,X,Y,Z){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(W+Y,Q),this.lineTo(W+V-Y,Q),this.quadTo(W+V,Q,W+V,Q+Z),this.lineTo(W+V,Q+X-Z),this.quadTo(W+V,Q+X,W+V-Y,Q+X),this.lineTo(W+Y,Q+X),this.quadTo(W,Q+X,W,Q+X-Z),this.lineTo(W,Q+Z),this.quadTo(W,Q,W+Y,Q))};m.prototype.drawPath=function(W){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),W)}catch(V){}this.passThrough=!1}else if(null!=this.nextShape){for(var Q in W)this.nextShape.options[Q]= W[Q];W.stroke!=mxConstants.NONE&&null!=W.stroke||delete this.nextShape.options.stroke;W.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};m.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};m.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};m.prototype.fillAndStroke=function(){this.passThrough?
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Oa.dx||null!=Oa.dy)Ya.geometry.offset=new mxPoint(null!=Oa.dx?Oa.dx:0,null!=Oa.dy?Oa.dy:0);Ta.insert(Ya)}Ua.push(Ta);mxUtils.remove(Ha.invert?Na:Sa,Va)}}}});aa(oa,oa,ja);if(null!=A[oa.id])for(Ea=0;Ea<A[oa.id].length;Ea++)aa(oa,A[oa.id][Ea],ja)}}if(null!=Ca)for(ia=0;ia<t.length;ia++)for(oa=t[ia],Ea=0;Ea<Ca.length;Ea++)L.setAttributeForCell(oa,mxUtils.trim(Ca[Ea]),null);if(0<v.length){var la=new mxParallelEdgeLayout(L);la.spacing=W;la.checkOverlap=!0;var na=function(){0<la.spacing&&la.execute(L.getDefaultParent()); for(var Na=0;Na<v.length;Na++){var ra=L.getCellGeometry(v[Na]);ra.x=Math.round(L.snap(ra.x));ra.y=Math.round(L.snap(ra.y));"auto"==m&&(ra.width=Math.round(L.snap(ra.width)));"auto"==B&&(ra.height=Math.round(L.snap(ra.height)))}};if("["==ea.charAt(0)){var pa=Y;L.view.validate();this.executeLayouts(L.createLayouts(JSON.parse(ea)),function(){na();pa()});Y=null}else if("circle"==ea){var ha=new mxCircleLayout(L);ha.disableEdgeStyle=!1;ha.resetEdges=!1;var ka=ha.isVertexIgnored;ha.isVertexIgnored=function(Na){return ka.apply(this,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
v.getGlobalVariable=function(S){return"page"==S?F.getName():"pagenumber"==S?1:L.apply(this,arguments)};document.body.appendChild(v.container);v.model.setRoot(F.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(S){try{null==H&&(H=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var p=S.toDataURL("image/png");p=Editor.writeGraphModelToPng(p,"tEXt","mxfile",encodeURIComponent(H));d(p.substring(p.lastIndexOf(",")+1));v!=this.editor.graph&&v.container.parentNode.removeChild(v.container)}catch(q){null!=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.updateDiagram=function(d){function g(T){var m=new mxCellOverlay(T.image||u.warningImage,T.tooltip,T.align,T.valign,T.offset);m.addListener(mxEvent.CLICK,function(B,K){t.alert(T.tooltip)});return m}var n=null,t=this;if(null!=d&&0<d.length&&(n=mxUtils.parseXml(d),d=null!=n?n.documentElement:null,null!=d&&"updates"==d.nodeName)){var u=this.editor.graph,v=u.getModel();v.beginUpdate();var A=null;try{for(d=d.firstChild;null!=d;){if("update"==d.nodeName){var H=v.getCell(d.getAttribute("id"));
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
""),mxUtils.bind(this,function(g){window.clearTimeout(d);I&&(200<=g.getStatus()&&299>=g.getStatus()?null!=f&&f():c({message:mxResources.get("realtimeCollaboration")+(0!=g.getStatus()?": "+g.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"diff",D,M.length,"bytes","from",y,"to",E,"etag",this.file.getCurrentEtag(),"checksum",z)}}this.file.setShadowPages(b);this.scheduleCleanup()};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"?inline=false",last_commit_id:k.last_commit_id,refPos:x};k=this.getFileContent(k);return l?new GitLabLibrary(this.ui,k,e):new GitLabFile(this.ui,k,e)};GitLabClient.prototype.insertFile=function(e,f,c,k,l,x,y){l=null!=l?l:!1;x=x.split("/");this.getRefIndex(x,!0,mxUtils.bind(this,function(E,D){var z=Math.max(D-1,0),M=E.slice(0,z).join("/"),I=E[z],d=E[D];path=E.slice(D+1,E.length).join("/");0<path.length&&(path+="/");path+=e;this.checkExists(M+"/"+I+"/"+d+"/"+path,!0,mxUtils.bind(this,function(g,n){g? l?(y||(f=Base64.encode(f)),this.showCommitDialog(e,!0,mxUtils.bind(this,function(t){this.writeFile(M,I,d,path,t,f,n,mxUtils.bind(this,function(u){try{var v=JSON.parse(u.getText());c(this.createGitLabFile(M,I,d,null!=v.content?v.content:v,l,D))}catch(A){k(A)}}),k)}),k)):(g=DRAWIO_GITLAB_URL+"/",c(new GitLabFile(this.ui,f,{org:M,repo:I,ref:d,name:e,path:path,html_url:g+M+"/"+I+"/blob/"+d+"/"+path,download_url:g+M+"/"+I+"/raw/"+d+"/"+path+"?inline=false",refPos:D,last_commit_id:n,isNew:!0}))):k()}))}), k,null,4>=x.length)};GitLabClient.prototype.checkExists=function(e,f,c){this.getFile(e,mxUtils.bind(this,function(k){if(f){var l=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){l();c(!0,k.getCurrentEtag())},function(){l();c(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){c(!1)})}),mxUtils.bind(this,function(k){c(!0)}),null,!0)};GitLabClient.prototype.writeFile=function(e,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
!0)};GitHubClient.prototype.saveFile=function(e,f,c,k,l){var x=e.meta.org,y=e.meta.repo,E=e.meta.ref,D=e.meta.path,z=mxUtils.bind(this,function(I,d){this.writeFile(x,y,E,D,l,d,I,mxUtils.bind(this,function(g){delete e.meta.isNew;f(JSON.parse(g.getText()).content.sha)}),mxUtils.bind(this,function(g){c(g)}))}),M=mxUtils.bind(this,function(){if(this.ui.useCanvasForExport&&/(\.png)$/i.test(D)){var I=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(d){z(e.meta.sha, d)}),c,this.ui.getCurrentFile()!=e?e.getData():null,I.scale,I.border)}else z(e.meta.sha,Base64.encode(e.getData()))});k?this.getSha(x,y,D,E,mxUtils.bind(this,function(I){e.meta.sha=I;M()}),c):M()};GitHubClient.prototype.pickLibrary=function(e){this.pickFile(e)};GitHubClient.prototype.pickFolder=function(e){this.showGitHubDialog(!1,e,!0)};GitHubClient.prototype.pickFile=function(e){e=null!=e?e:mxUtils.bind(this,function(f){this.ui.loadFile("H"+encodeURIComponent(f))});this.showGitHubDialog(!0,e)};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.useCanvasForExport||".png"!=t||(t=".drawio"),".svg"===t||".xml"===t||".html"===t||".png"===t||".drawio"===t)&&(g=n+t)}d=new LocalFile(this,d,null!=urlParams.title?decodeURIComponent(urlParams.title):g,!0);d.getHash=function(){return b};this.fileLoaded(d,!0)?null!=c&&c():M()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else M()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}),mxUtils.bind(this,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"&redirect="+this.sameWinRedirectUrl:""));this.sameWinAuthMode?(window.location.assign(D),y=null):null==y?y=this.createAuthWin(D):y.location=D;null!=y?(window.onGoogleDriveCallback=mxUtils.bind(this,function(z,M){window.onGoogleDriveCallback=null;try{null==z?null!=l&&l({message:mxResources.get("accessDenied")}):this.updateAuthInfo(z,x,!0,k,l)}catch(I){null!=l&&l(I)}finally{null!=M&&M.close()}}),y.focus()):null!=l&&l({message:mxResources.get("allowPopups")})}}catch(z){if(null!=l)l(z);else throw z; }};DriveClient.prototype.resetTokenRefresh=function(f){null!=this.tokenRefreshThread&&(window.clearTimeout(this.tokenRefreshThread),this.tokenRefreshThread=null);null!=f&&null==f.error&&0<f.expires_in&&(this.tokenRefreshInterval=1E3*parseInt(f.expires_in),this.lastTokenRefresh=(new Date).getTime(),this.tokenRefreshThread=window.setTimeout(mxUtils.bind(this,function(){this.authorize(!0,mxUtils.bind(this,function(){}),mxUtils.bind(this,function(){}))}),900*f.expires_in))};DriveClient.prototype.checkToken=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(d){this.remoteWin=d;for(var g=0;g<this.remoteInvokeQueue.length;g++)d.postMessage(this.remoteInvokeQueue[g], "*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(d){var g=d.msgMarkers,n=this.remoteInvokeCallbacks[g.callbackId];if(null==n)throw Error("No callback for "+(null!=g?g.callbackId:"null"));d.error?n.error&&n.error(d.error.errResp):n.callback&&n.callback.apply(this,d.resp);this.remoteInvokeCallbacks[g.callbackId]=null};EditorUi.prototype.remoteInvoke=function(d,g,n,t,u){var v=!0,A=window.setTimeout(mxUtils.bind(this,function(){v=!1;u({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.debug("P2PCollab:","sendReply error",arguments,m)}});this.sendMessage=c;this.sendDiff=function(N){this.sendMessage("diff",{diff:N})};this.getState=function(){return null!=I?I.readyState:3};this.getLastError=function(){return P};this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(N,T){},mouseMove:function(N,T){var m,B=-1;return function(){clearTimeout(m);var K=this,R=arguments,U=function(){m=null;B=Date.now();N.apply(K,R)};Date.now()-B>T?U():m=setTimeout(U,T)}}(function(N,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
0));mxEvent.addListener(la,"change",pa);mxEvent.addListener(la,"keydown",pa);mxEvent.addListener(la,"cut",pa);mxEvent.addListener(la,"paste",pa);mxEvent.addListener(la,"keydown",function(Ia){13==Ia.keyCode&&Ma.click()});pa=document.createElement("div");pa.style.height="40px";pa.style.marginTop="4px";pa.style.marginBottom="4px";pa.style.whiteSpace="nowrap";pa.style.overflowX="auto";pa.style.overflowY="hidden";pa.appendChild(ha);pa.appendChild(Ma);aa.appendChild(pa);aa.appendChild(na);return aa}function L(){if(za&& null!=d)f||b.hideDialog(),d(za,Ca,P.value);else if(c)f||b.hideDialog(),c(ma,P.value,Ba,ca);else{var aa=P.value;null!=aa&&0<aa.length&&b.pickFolder(b.mode,function(la){b.createFile(aa,ma,null!=ca&&0<ca.length?ca:null,null,function(){b.hideDialog()},null,la,null,null!=da&&0<da.length?da:null)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}function F(aa,la,na,pa,ha,ka,ua){null!=ea&&(ea.style.backgroundColor="transparent",ea.style.border="1px solid transparent");T.removeAttribute("disabled");
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
K,0,K.length);U+=V(K.length)+B+K+V(R^4294967295);U+=m.substring(X-8,m.length);break}U+=m.substring(X-8,X-4+Y);W(m,Y);W(m,4)}while(Y);return"data:image/png;base64,"+(window.btoa?btoa(U):Base64.encode(U,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var y=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(m,B){y.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var E=ColorDialog.resetRecentColors;
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};m.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=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(W){return new m(W,Editor.createRoughCanvas(W),this)};var B=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(W){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?B.apply(this,arguments):"comic"==mxUtils.getValue(this.style,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
0>mxUtils.indexOf(v,Na)};this.executeLayout(function(){Ma.execute(L.getDefaultParent());na()},!0,Y);Y=null}else if("organic"==ea||"auto"==ea&&Ua.length>v.length){L.view.validate();var Aa=new mxFastOrganicLayout(L);Aa.forceConstant=3*Q;Aa.disableEdgeStyle=!1;Aa.resetEdges=!1;var Ja=Aa.isVertexIgnored;Aa.isVertexIgnored=function(Na){return Ja.apply(this,arguments)||0>mxUtils.indexOf(v,Na)};this.executeLayout(function(){Aa.execute(L.getDefaultParent());na()},!0,Y);Y=null}}this.hideDialog()}finally{L.model.endUpdate()}null!=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
L.style.paddingRight=18*F.childNodes.length+"px"}};EditorUi.prototype.addLibraryEntries=function(d,g){for(var n=0;n<d.length;n++){var t=d[n],u=t.data;if(null!=u){u=this.convertDataUri(u);var v="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==t.aspect&&(v+="aspect=fixed;");g.appendChild(this.sidebar.createVertexTemplate(v+"image="+u,t.w,t.h,"",t.title||"",!1,null,!0))}else null!=t.xml&&(u=this.stringToCells("<"==t.xml.charAt(0)?t.xml:Graph.decompress(t.xml)),0<u.length&& g.appendChild(this.sidebar.createVertexTemplateFromCells(u,t.w,t.h,t.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(d){return null!=d?d[mxLanguage]||d.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"atlas"==Editor.currentTheme&&(mxClient.link("stylesheet",STYLE_PATH+"/atlas.css"),"undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground="linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
La+" ("+Xa.length+")",Ta=La=mxUtils.htmlEntities(La);15<La.length&&(La=La.substring(0,15)+"&hellip;");return{lbl:La+" ("+Xa.length+")",fullLbl:Sa,lblOnly:Ta}}function pa(La,Xa,Sa,Ta,Pa){mxEvent.addListener(Sa,"click",function(){B!=Sa&&(null!=B?(B.style.fontWeight="normal",B.style.textDecoration="none"):(fa.style.display="none",ba.style.minHeight="100%"),B=Sa,B.style.fontWeight="bold",B.style.textDecoration="underline",Ca.scrollTop=0,T&&(m=!0),za.innerHTML=Xa,Ba.style.display="none",F(Pa?aa[La]:Ta? Da[La][Ta]:ja[La],Pa?!1:!0))})}var ha=N.querySelector(".geTemplatesList");if(0<la){la=document.createElement("div");la.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;margin-top: 10px;";mxUtils.write(la,mxResources.get("custom"));ha.appendChild(la);for(var ka in aa){la=document.createElement("div");var ua=aa[ka];ua=na(ka,ua);la.className="geTemplateCatLink";la.setAttribute("title",ua.fullLbl);la.innerHTML=ua.lbl;ha.appendChild(la);pa(ka,ua.lblOnly,la,null,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
d)+"px",F.style.top=Math.max(0,g+70)+"px",mxUtils.setPrefixedStyle(F.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(F.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(F.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=L.substring(L.length-3,L.length)&&"!"!=L.charAt(L.length-1)&&(L+="..."),F.innerHTML=L,H.appendChild(F),u.status=F),this.pause=mxUtils.bind(this,function(){var S=function(){};this.active&&(S=mxUtils.bind(this,function(){this.spin(H,L)}));this.stop();
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(n){try{null!=n&&this.editor.addFontCss(d,n),g(d)}catch(t){g(d)}}))}catch(n){g(d)}}))};EditorUi.prototype.exportImage=function(d,g,n,t,u,v,A,H,L,F,S,p,q){L=null!=L?L:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var C=this.editor.graph.isSelectionEmpty();n=null!=n?n:C;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this, function(J){this.spinner.stop();try{this.saveCanvas(J,u?this.getFileData(!0,null,null,null,n,H):null,L,null==this.pages||0==this.pages.length,S)}catch(G){this.handleError(G)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(J){this.spinner.stop();this.handleError(J)}),null,n,d||1,g,t,null,null,v,A,F,p,q)}catch(J){this.spinner.stop(),this.handleError(J)}}};EditorUi.prototype.isCorsEnabledForUrl=function(d){return this.editor.isCorsEnabledForUrl(d)};EditorUi.prototype.importXml=function(d,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
t.model.getChildAt(g,H))};EditorUi.prototype.updatePageLink=function(d,g){if(Graph.isPageLink(g)){var n=d[g.substring(g.indexOf(",")+1)];g=null!=n?"data:page/id,"+n:null}else if("data:action/json,"==g.substring(0,17))try{var t=JSON.parse(g.substring(17));if(null!=t.actions){for(var u=0;u<t.actions.length;u++){var v=t.actions[u];if(null!=v.open&&Graph.isPageLink(v.open)){var A=v.open.substring(v.open.indexOf(",")+1);n=d[A];null!=n?v.open="data:page/id,"+n:null==this.getPageById(A)&&delete v.open}}g= "data:action/json,"+JSON.stringify(t)}}catch(H){}return g};EditorUi.prototype.isRemoteVisioFormat=function(d){return/(\.v(sd|dx))($|\?)/i.test(d)||/(\.vs(s|x))($|\?)/i.test(d)};EditorUi.prototype.importVisio=function(d,g,n,t,u){var v=mxUtils.bind(this,function(A){this.loadingExtensions=!1;null!=n?n(A):this.handleError(A)});this.createTimeout(null,mxUtils.bind(this,function(A){t=null!=t?t:d.name;var H=mxUtils.bind(this,function(F){A.clear()&&v(F)}),L=mxUtils.bind(this,function(){this.loadingExtensions=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(L,F,S,p,q,C){d.insertImage(L,q,C)},function(){},function(L){return"image/"==L.type.substring(0,6)},function(L){for(var F=0;F<L.length;F++)L[F]()});else{var H=this.editor.graph.getInsertPoint();this.importFiles([A.getAsFile()],H.x,H.y,this.maxImageSize);mxEvent.consume(g)}break}}}}catch(L){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=function(){function d(){window.setTimeout(function(){n.innerHTML="&nbsp;";n.focus();document.execCommand("selectAll",!1,null)},0)}var g=this.editor.graph,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
u=null;t.getModel().beginUpdate();try{u=t.insertVertex(null,null,"<pre>"+d+"</pre>",g,n,1,1,"text;html=1;align=left;verticalAlign=top;"),t.updateCellSize(u,!0)}finally{t.getModel().endUpdate()}return u};EditorUi.prototype.insertTextAt=function(d,g,n,t,u,v,A,H){v=null!=v?v:!0;A=null!=A?A:!0;if(null!=d)if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d))this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(d.replace(/\s+/g,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
d)}),c,this.ui.getCurrentFile()!=e?e.getData():null,I.scale,I.border)}else z(e.meta.sha,Base64.encode(e.getData()))});k?this.getSha(x,y,D,E,mxUtils.bind(this,function(I){e.meta.sha=I;M()}),c):M()};GitHubClient.prototype.pickLibrary=function(e){this.pickFile(e)};GitHubClient.prototype.pickFolder=function(e){this.showGitHubDialog(!1,e,!0)};GitHubClient.prototype.pickFile=function(e){e=null!=e?e:mxUtils.bind(this,function(f){this.ui.loadFile("H"+encodeURIComponent(f))});this.showGitHubDialog(!0,e)};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"";V.style.textOverflow="";V.style.whiteSpace="";V.style.cursor="text";V.style.color="";V.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(V.style,"user-select","text");V.focus();document.execCommand("selectAll",!1,null);v=function(){V.removeAttribute("contentEditable");V.style.cursor="pointer";X.title=V.innerHTML;T()};mxEvent.consume(da)}};mxEvent.addListener(V,"click",W);mxEvent.addListener(R,"dblclick",W);d.appendChild(R);mxEvent.addListener(R,"dragstart",function(da){null==S&&null!=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(v){v.preventDefault()})),mxEvent.addListener(u,"click",function(v){"disabled"!=u.getAttribute("disabled")&&n(v);mxEvent.consume(v)}));return u};EditorUi.prototype.createMenuItem=function(d,g,n){var t=this.actions.get(d),u=null!=t?t.funct:null,v=this.createToolbarButton(g,mxResources.get(d)+(null!=t&&null!=t.shortcut?" ("+t.shortcut+")":""),u);null==t||n||(d=function(){t.isEnabled()?(v.removeAttribute("disabled"),v.style.cursor= "pointer"):(v.setAttribute("disabled","disabled"),v.style.cursor="default");v.style.opacity=t.isEnabled()?"":"0.2"},this.editor.graph.addListener("enabledChanged",d),t.addListener("stateChanged",d),d());return v};EditorUi.prototype.createFormatWindow=function(){if(null==this.formatWindow){var d=Math.max(10,this.diagramContainer.parentNode.clientWidth-256),g="1"==urlParams.embedInline?580:"1"==urlParams.sketch?580:Math.min(566,this.editor.graph.container.clientHeight-10);this.formatWindow=new WrapperWindow(this,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.patchPage=function(b,e,f,c){var k=b==this.currentPage?this.editor.graph.model:new mxGraphModel(b.root),l=this.createParentLookup(k,e);k.beginUpdate();try{var x=k.updateEdgeParent,y=new mxDictionary,E=[];k.updateEdgeParent=function(t,u){!y.get(t)&&c&&(y.put(t,!0),E.push(t))};var D=l[""],z=null!=D&&null!=D.inserted?D.inserted[""]:null,M=null;null!=z&&(M=this.getCellForJson(z));if(null==M){var I=null!=D&&null!=D.moved?D.moved[""]:null;null!=I&&(M=k.getCell(I))}null!=M&&(k.setRoot(M),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
R--;U()}),mxUtils.bind(this,function(X){R--;K.push("@import url("+V+");\n");U()}))):K.push(this.cachedGoogleFonts[V]+"\n"):K.push('@font-face {font-family: "'+Q+'";src: url("'+V+'")}\n')})(B[W].name,B[W].url);U()}else m()};Editor.prototype.addMathCss=function(m){m=m.getElementsByTagName("defs");if(null!=m&&0<m.length)for(var B=document.getElementsByTagName("style"),K=0;K<B.length;K++){var R=mxUtils.getTextContent(B[K]);0>R.indexOf("mxPageSelector")&&0<R.indexOf("MathJax")&&m[0].appendChild(B[K].cloneNode(!0))}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
b.editor.graph.rendering=!1;z.getModel().beginUpdate();try{for(var B=0,K={};E(!1,!0,!0)&&100>B;){var R=I.cell,U=z.getLabel(R),W=K[R.id];if(W&&W.replAllMrk==u&&W.replAllPos>=t)break;K[R.id]={replAllMrk:u,replAllPos:t};z.isCellEditable(R)&&(z.model.setValue(R,G(U,n,L.value,t-n.length,z.getCurrentCellStyle(R))),B++)}T!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,T));mxUtils.write(J,mxResources.get("matchesRepl",[B]))}catch(Q){b.handleError(Q)}finally{z.getModel().endUpdate(),b.editor.graph.setSelectionCells(m), b.editor.graph.rendering=!0}u++});N.setAttribute("title",mxResources.get("replaceAll"));N.style.float="none";N.style.width="120px";N.style.marginTop="6px";N.style.marginLeft="8px";N.style.overflow="hidden";N.style.textOverflow="ellipsis";N.className="geBtn gePrimaryBtn";N.setAttribute("disabled","disabled");A.appendChild(N);mxUtils.br(A);A.appendChild(q);q=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));q.setAttribute("title",mxResources.get("close"));
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(K,U){return!1};this.alternateEdgeStyle="vertical";null==f&&this.loadStylesheet();var x=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var K=x.apply(this,arguments);if(this.graph.pageVisible){var U=[],L=this.graph.pageFormat,O=this.graph.pageScale,X=L.width*O;L=L.height*O;O=this.graph.view.translate;for(var W=this.graph.view.scale,J=this.graph.getPageLayout(),ha=0;ha<J.width;ha++)U.push(new mxRectangle(((J.x+ha)*X+O.x)*W,(J.y*L+O.y)*W,X*W,L*W));for(ha=1;ha<J.height;ha++)U.push(new mxRectangle((J.x* X+O.x)*W,((J.y+ha)*L+O.y)*W,X*W,L*W));K=U.concat(K)}return K};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(K,U){return null==K.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(K){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var z=this.graphHandler.getCells;this.graphHandler.getCells=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
T)this.editPlantUmlData(O,N,T);else if(T=this.graph.getAttributeForCell(O,"mermaidData"),null!=T)this.editMermaidData(O,N,T);else{var m=g.getCellStyle(O);"1"==mxUtils.getValue(m,"metaEdit","0")?d.showDataDialog(O):n.apply(this,arguments)}}catch(B){d.handleError(B)}};g.getLinkTitle=function(O){return d.getLinkTitle(O)};g.customLinkClicked=function(O){var N=!1;try{d.handleCustomLink(O),N=!0}catch(T){d.handleError(T)}return N};var t=g.parseBackgroundImage;g.parseBackgroundImage=function(O){var N=t.apply(this, arguments);null!=N&&null!=N.src&&Graph.isPageLink(N.src)&&(N={originalSrc:N.src});return N};var u=g.setBackgroundImage;g.setBackgroundImage=function(O){null!=O&&null!=O.originalSrc&&(O=d.createImageForPageLink(O.originalSrc,d.currentPage,this));u.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
b.container.style.cursor=C?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){A(!0)};this.isDrawing=function(){return g};var H=mxUtils.bind(this,function(C){if(c){var J=y.length,G=n&&0<x.length&&null!=y&&2>y.length;G||x.push.apply(x,y);y=[];x.push(null);k.push(c);c=null;(G||z)&&this.stopDrawing();z&&(!G||2<=J)&&this.startDrawing();mxEvent.consume(C)}}),L=new mxCell;L.edge=!0;var F=function(){var C=b.getCurrentCellStyle(L);C=mxUtils.getValue(b.currentVertexStyle,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Graph.recentCustomFonts[R]=U,B=document.getElementsByTagName("head")[0],null!=K&&("link"==U.elt.nodeName.toLowerCase()?(U.elt.onload=K,U.elt.onerror=K):K()),null!=B&&B.appendChild(U.elt)):null!=K&&K()}else null!=K&&K()}else null!=K&&K();return m};Graph.getFontUrl=function(m,B){m=Graph.customFontElements[m.toLowerCase()];null!=m&&(B=m.url);return B};Graph.processFontAttributes=function(m){m=m.getElementsByTagName("*");for(var B=0;B<m.length;B++){var K=m[B].getAttribute("data-font-src");if(null!=K){var R=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Editor.createRoughCanvas=function(m){var B=rough.canvas({getContext:function(){return m}});B.draw=function(K){var R=K.sets||[];K=K.options||this.getDefaultOptions();for(var U=0;U<R.length;U++){var W=R[U];switch(W.type){case "path":null!=K.stroke&&this._drawToContext(m,W,K);break;case "fillPath":this._drawToContext(m,W,K);break;case "fillSketch":this.fillSketch(m,W,K)}}};B.fillSketch=function(K,R,U){var W=m.state.strokeColor,Q=m.state.strokeWidth,V=m.state.strokeAlpha,X=m.state.dashed,Y=U.fillWeight; 0>Y&&(Y=U.strokeWidth/2);m.setStrokeAlpha(m.state.fillAlpha);m.setStrokeColor(U.fill||"");m.setStrokeWidth(Y);m.setDashed(!1);this._drawToContext(K,R,U);m.setDashed(X);m.setStrokeWidth(Q);m.setStrokeColor(W);m.setStrokeAlpha(V)};B._drawToContext=function(K,R,U){K.begin();for(var W=0;W<R.ops.length;W++){var Q=R.ops[W],V=Q.data;switch(Q.op){case "move":K.moveTo(V[0],V[1]);break;case "bcurveTo":K.curveTo(V[0],V[1],V[2],V[3],V[4],V[5]);break;case "lineTo":K.lineTo(V[0],V[1])}}K.end();"fillPath"===R.type&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
K,m.y+4*K,0,0):mxRectangle.fromPoint(m.view.getPoint(m));B.bounds.equals(m)&&B.value==R&&B.scale==K||(B.bounds=m,B.value=R,B.scale=K,B.redraw())}};var p=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){p.apply(this,arguments);if(mxClient.IS_GC&&null!=this.getDrawPane()){var m=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxClient.NO_FO||null!=this.webKitForceRepaintNode&&null!=this.webKitForceRepaintNode.parentNode||"svg"!=this.graph.container.firstChild.nodeName? null==this.webKitForceRepaintNode||this.graph.mathEnabled&&("svg"==this.graph.container.firstChild.nodeName||this.graph.container.firstChild==this.webKitForceRepaintNode)||(null!=this.webKitForceRepaintNode.parentNode&&this.webKitForceRepaintNode.parentNode.removeChild(this.webKitForceRepaintNode),this.webKitForceRepaintNode=null):(this.webKitForceRepaintNode=document.createElement("div"),this.webKitForceRepaintNode.style.cssText="position:absolute;",m.ownerSVGElement.parentNode.insertBefore(this.webKitForceRepaintNode, m.ownerSVGElement))}};var q=Graph.prototype.refresh;Graph.prototype.refresh=function(){q.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var C=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){C.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
[],K={},R=0;R<m.length;R++){var U=this.getTagsForCell(m[R]);if(0<U.length){U=U.split(" ");for(var W=0;W<U.length;W++)null==K[U[W]]&&(K[U[W]]=!0,B.push(U[W]))}}return B};Graph.prototype.getTagsForCell=function(m){return this.getAttributeForCell(m,"tags","")};Graph.prototype.addTagsForCells=function(m,B){if(0<m.length&&0<B.length){this.model.beginUpdate();try{for(var K=0;K<m.length;K++){for(var R=this.getTagsForCell(m[K]),U=R.split(" "),W=!1,Q=0;Q<B.length;Q++){var V=mxUtils.trim(B[Q]);""!=V&&0>mxUtils.indexOf(U,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
var PopupDialog=function(b,e,f,c,k){k=null!=k?k:!0;var l=document.createElement("div");l.style.textAlign="left";l.style.height="100%";mxUtils.write(l,mxResources.get("fileOpenLocation"));mxUtils.br(l);mxUtils.br(l);var x=mxUtils.button(mxResources.get("openInThisWindow"),function(){k&&b.hideDialog();null!=c&&c()});x.className="geBtn";x.style.marginBottom="8px";x.style.width="280px";l.appendChild(x);mxUtils.br(l);var y=mxUtils.button(mxResources.get("openInNewWindow"),function(){k&&b.hideDialog(); null!=f&&f();b.openLink(e,null,!0)});y.className="geBtn gePrimaryBtn";y.style.width=x.style.width;l.appendChild(y);mxUtils.br(l);mxUtils.br(l);mxUtils.write(l,mxResources.get("allowPopups"));this.container=l},ImageDialog=function(b,e,f,c,k,l,x,y){function E(){0<M.value.length?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled")}l=null!=l?l:!0;var D=b.editor.graph,z=document.createElement("div");mxUtils.write(z,e);e=document.createElement("div");e.className="geTitle";e.style.backgroundColor=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(C){z=C};this.setAutoScroll=function(C){M=C};this.setOpenFill=function(C){I=C};this.setStopClickEnabled=function(C){n=C};this.setSelectInserted=function(C){t=C};this.setSmoothing=function(C){f=C};this.setPerfectFreehandMode=function(C){v=C};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=function(C){u.size=C};this.getBrushSize=function(){return u.size};var A=function(C){g=C;b.getRubberband().setEnabled(!C);b.graphHandler.setSelectEnabled(!C);b.graphHandler.setMoveEnabled(!C);
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"keys",Da,"values",Qa,"cells",ca.getSelectionCells()))}finally{ca.getModel().endUpdate()}}function U(oa,sa,va){var Ea=mxUtils.getOffset(m,!0),Da=mxUtils.getOffset(oa,!0);sa.style.position="absolute";sa.style.left=Da.x-Ea.x+"px";sa.style.top=Da.y-Ea.y+"px";sa.style.width=oa.offsetWidth+"px";sa.style.height=oa.offsetHeight-(va?4:0)+"px";sa.style.zIndex=5}function W(oa,sa,va){var Ea=document.createElement("div");Ea.style.width="32px";Ea.style.height="4px";Ea.style.margin="2px";Ea.style.border="1px solid black";
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Q))}var S="";null==e&&(e=u,S='<div style="text-align: center;" class="odPreview"></div>');null==k&&(k=function(){var Q=null;try{Q=JSON.parse(localStorage.getItem("mxODPickerRecentList"))}catch(V){}return Q});null==l&&(l=function(Q){if(null!=Q){var V=k()||{};delete Q["@microsoft.graph.downloadUrl"];V[Q.id]=Q;localStorage.setItem("mxODPickerRecentList",JSON.stringify(V))}});S='<div class="odCatsList"><div class="odCatsListLbl">OneDrive</div><div id="odFiles" class="odCatListTitle odCatSelected">'+mxUtils.htmlEntities(mxResources.get("files"))+
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable