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 |
|---|---|---|---|---|---|---|---|
mxResources.get("mermaid")+"...","mermaid");J.showDialog(g.container,620,420,!0,!1);g.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),e=function(g,q,p,t){g.addItem(p,null,mxUtils.bind(this,function(){var x=new CreateGraphDialog(J,p,t);J.showDialog(x.container,620,420,!0,!1);x.init()}),q)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(g,q){for(var p=0;p<c.length;p++)"-"==c[p]?g.addSeparator(q):e(g,q,mxResources.get(c[p])+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,U,T,W,X),this.lastX=W,this.lastY=X)};k.prototype.curveTo=function(U,T,W,X,Y,Z){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,U,T,W,X,Y,Z),this.lastX=Y,this.lastY=Z)};k.prototype.arcTo=function(U,T,W,X,Y,Z,ca){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var ha=mxUtils.arcToCurves(this.lastX,this.lastY,U,T,W,X,Y,Z,ca);if(null!=ha)for(var na=0;na<ha.length;na+=
6)this.curveTo(ha[na],ha[na+1],ha[na+2],ha[na+3],ha[na+4],ha[na+5]);this.lastX=Z;this.lastY=ca}};k.prototype.rect=function(U,T,W,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(U,T,W,X,this.getStyle(!0,!0)))};k.prototype.ellipse=function(U,T,W,X){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(U+W/2,T+X/2,W,X,this.getStyle(!0,!0)))};k.prototype.roundrect= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
for(var e=[],g=2;g<c.length;g++){var q=mxUtils.trim(c[g]);"["!=q&&"]"!=q&&"%%"!=q.substring(0,2)&&"##"!=q.substring(0,2)&&(q=c[g].replace(/[-|>]/g," "),""!=mxUtils.trim(q)&&" "==q.charAt(0)&&e.push(q))}return"mindmap\nroot(("+mxUtils.trim(c[1])+"))\n"+e.join("\n")};EditorUi.prototype.extractMermaidDeclaration=function(c){"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var e=c.split("```");e=1<e.length?e:c.split("<pre>");e=1<e.length?e:c.split("~~~");e=1<e.length?e:c.split("%%");e=1<e.length?e:c.split("(Begins)");
e=mxUtils.trim(1>=e.length?c:e[1]);var g=e.split("\n");if(0<g.length&&"mermaid"==mxUtils.trim(g[0])||1<g.length&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,g[1]))g.shift(),e=mxUtils.trim(g.join("\n")),g=e.split("\n");var q=g[0].split(" ")[0].replace(/:$/,"");try{"mindmap"==q&&2<g.length&&(e=this.extractMermaidMindmap(g))}catch(p){}"@"!=q.charAt(0)&&0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,q)&&(e="classDiagram\n"+e);EditorUi.debug("EditorUi.extractMermaidDeclaration","\nlines:",g,"\ntype:",
q,"\nvalue:",c,"\ntext:",e);return e};EditorUi.prototype.generateMermaidImage=function(c,e,g,q,p){var t=mxUtils.bind(this,function(B){this.loadingMermaid=!1;null!=q?q(B):this.handleError(B)}),x=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;e=null!=e?e:mxUtils.clone(EditorUi.defaultMermaidConfig);e.securityLevel="strict";e.startOnLoad=!1;Editor.isDarkMode()&&(e.theme="dark");var B=mxUtils.bind(this,function(I){try{if(mxClient.IS_IE||mxClient.IS_IE11)I=I.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/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 |
l);this.handleError(c,e,g,q,p)}),S,mxResources.get("changeUser"),mxUtils.bind(this,function(){function z(){K.innerText="";for(var O=0;O<C.length;O++){var V=document.createElement("option");mxUtils.write(V,C[O].displayName);V.value=O;K.appendChild(V);V=document.createElement("option");V.innerHTML=" ";mxUtils.write(V,"<"+C[O].email+">");V.setAttribute("disabled","disabled");K.appendChild(V)}V=document.createElement("option");mxUtils.write(V,mxResources.get("addAccount"));V.value=C.length;
K.appendChild(V)}var C=this.drive.getUsersList(),D=document.createElement("div"),M=document.createElement("span");M.style.marginTop="6px";mxUtils.write(M,mxResources.get("changeUser")+": ");D.appendChild(M);var K=document.createElement("select");K.style.width="200px";z();mxEvent.addListener(K,"change",mxUtils.bind(this,function(){var O=K.value,V=C.length!=O;V&&this.drive.setUser(C[O]);this.drive.authorize(V,mxUtils.bind(this,function(){V||(C=this.drive.getUsersList(),z())}),mxUtils.bind(this,function(k){this.handleError(k)}), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(D){if(e.isEnabled()&&1==e.getSelectionCount()){var M=e.getSelectionCell(),K=mxEvent.isControlDown(D)?null:e.getIncomingTreeEdges(M);D=[];if(null!=K&&0<K.length&&(K=e.getOutgoingTreeEdges(e.model.getTerminal(K[0],!0)),null!=K))for(var O=0;O<K.length;O++)D.push(e.model.getTerminal(K[O],!1));0==D.length&&(D=e.model.getChildren(e.model.getParent(M)));e.setSelectionCells(D)}},null,null,"Alt+Shift+S");var p=e.removeCells;e.removeCells=function(D,M){M=null!=M?M:!0;null==D&&(D=this.getDeletableCells(this.getSelectionCells()));
M&&(D=this.getDeletableCells(this.addAllEdges(D)));for(var K=[],O=0;O<D.length;O++){var V=D[O];g.isEdge(V)&&v(V)&&(K.push(V),V=g.getTerminal(V,!1));if(d(V)){var k=[];e.traverse(V,!0,function(y,G){var P=null!=G&&e.isTreeEdge(G);P&&k.push(G);(null==G||P)&&k.push(y);return null==G||P});0<k.length&&(K=K.concat(k),V=e.getIncomingTreeEdges(D[O]),D=D.concat(V))}else null!=V&&K.push(D[O])}D=K;return p.apply(this,arguments)};c.hoverIcons.getStateAt=function(D,M,K){return d(D.cell)?null:this.graph.view.getState(this.graph.getCellAt(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 |
c=x)}this.spinner.stop();this.openLocalFile(c,e,q,p,null!=p?g:null)}}};EditorUi.prototype.openFiles=function(c,e){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var g=0;g<c.length;g++)mxUtils.bind(this,function(q){var p=new FileReader;p.onload=mxUtils.bind(this,function(t){try{this.openFileHandle(t.target.result,q.name,q,e)}catch(x){this.handleError(x)}});p.onerror=mxUtils.bind(this,function(t){this.spinner.stop();this.handleError(t);window.openFile=null});"image"!==q.type.substring(0,
5)&&"application/pdf"!==q.type||"image/svg"===q.type.substring(0,9)?p.readAsText(q):p.readAsDataURL(q)})(c[g])};EditorUi.prototype.openLocalFile=function(c,e,g,q,p){var t=this.getCurrentFile(),x=mxUtils.bind(this,function(){window.openFile=null;if(null==e&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var B=mxUtils.parseXml(c);null!=B&&(this.editor.setGraphXml(B.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,c,e||this.defaultFilename,g,q,p))});if(null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(N){return this.isTreeEdge(N)}))};Graph.prototype.getIncomingTreeEdges=function(d,u){return this.getTreeEdges(d,u,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,u){return this.getTreeEdges(d,u,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function d(D){return g.isVertex(D)&&v(D)}function u(D){var M=!1;null!=D&&(M="1"== | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(k){return k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(k){return Graph.isGoogleFontUrl(k)};Graph.createFontElement=function(k,y){var G=Graph.fontMapping[y];null==G&&Graph.isCssFontUrl(y)?(k=document.createElement("link"),k.setAttribute("rel","stylesheet"),k.setAttribute("type","text/css"),k.setAttribute("charset","UTF-8"),k.setAttribute("href",y)):(null==G&&(G='@font-face {\nfont-family: "'+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
arguments);N.style.backgroundColor=""};H.dblClick=function(){};var P=H.getSelectionModel().changeSelection;H.getSelectionModel().changeSelection=function(){P.call(this,[c],[c])}};L.onerror=function(){L.onload=null;L.src=Editor.errorImage};L.setAttribute("src",f);L.style.maxWidth="300px";L.style.maxHeight="300px";F.appendChild(L);E.appendChild(F);var N=document.createElement("div");N.style.width="300px";N.style.height="300px";N.style.overflow="hidden";N.style.backgroundColor="#fff9";E.appendChild(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 |
t=[];p.onsuccess=function(x){null==x.target.result?c(t):(t.push(x.target.result.value),x.target.result.continue())};p.onerror=e}catch(x){null!=e&&e(x)}}),e)};EditorUi.prototype.getDatabaseItemKeys=function(c,e,g){this.openDatabase(mxUtils.bind(this,function(q){try{g=g||"objects";var p=q.transaction([g],"readonly").objectStore(g).getAllKeys();p.onsuccess=function(){c(p.result)};p.onerror=e}catch(t){null!=e&&e(t)}}),e)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxGraphView.prototype.stateValidated=function(k){null!=k.shape&&this.redrawEnumerationState(k);return S.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(k){k=decodeURIComponent(mxUtils.getValue(k.style,"enumerateValue",""));""==k&&(k=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(k)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(k){var y="1"==mxUtils.getValue(k.style,
"enumerate",0);y&&null==k.secondLabel?(k.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),k.secondLabel.size=12,k.secondLabel.state=k,k.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(k,k.secondLabel)):y||null==k.secondLabel||(k.secondLabel.destroy(),k.secondLabel=null);y=k.secondLabel;if(null!=y){var G=k.view.scale,P=this.createEnumerationValue(k);k=this.graph.model.isVertex(k.cell)?new mxRectangle(k.x+k.width-4*
G,k.y+4*G,0,0):mxRectangle.fromPoint(k.view.getPoint(k));y.bounds.equals(k)&&y.value==P&&y.scale==G||(y.bounds=k,y.value=P,y.scale=G,y.redraw())}};var l=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){l.apply(this,arguments);if(mxClient.IS_GC&&null!=this.getDrawPane()){var k=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 |
StorageFile.insertFile=function(b,f,m,d,u){var v=mxUtils.bind(this,function(E){var F=function(){var L=new StorageFile(b,m,f);L.saveFile(f,!1,function(){d(L)},u)};E?b.confirm(mxResources.get("replaceIt",[f]),F,u):F()});StorageFile.getFileContent(b,f,function(E){v(null!=E)},function(){v(!1)})};StorageFile.getFileContent=function(b,f,m,d){b.getDatabaseItem(f,function(u){m(null!=u?u.data:null)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(f,m):null!=d&&d()}),"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 |
StorageFile.listFiles=function(b,f,m,d){b.getDatabaseItems(function(u){var v=[];if(null!=u)for(var E=0;E<u.length;E++)"."==u[E].title.charAt(0)||null!=f&&u[E].type!=f||v.push(u[E]);m(v)},function(){null==b.database?m(StorageFile.listLocalStorageFiles(f)):null!=d&&d()},"filesInfo")};StorageFile.deleteFile=function(b,f,m,d){b.removeDatabaseItem([f,f],m,function(){null==b.database?(localStorage.removeItem(f),m()):null!=d&&d()},["files","filesInfo"])};StorageLibrary=function(b,f,m){StorageFile.call(this,b,f,m)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.type="L";StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(b,f,m){this.saveFile(b,!1,f,m)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
delete F[R];return E};EditorUi.prototype.patchViewState=function(b,f){if(null!=b.viewState&&null!=f){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var m in f)try{this.patchViewStateProperty(b,f,m)}catch(d){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototype.patchViewStateProperty=function(b,f,m){b.viewState[m]=JSON.parse(f[m])}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(z){H=z};this.setAutoScroll=function(z){R=z};this.setOpenFill=function(z){J=z};this.setStopClickEnabled=function(z){g=z};this.setSelectInserted=function(z){q=z};this.setSmoothing=function(z){m=z};this.setPerfectFreehandMode=function(z){t=z};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(z){p.size=z};this.getBrushSize=function(){return p.size};var x=function(z){e=z;b.getRubberband().setEnabled(!z);b.graphHandler.setSelectEnabled(!z);b.graphHandler.setMoveEnabled(!z); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
var StorageDialog=function(b,f,m){function d(R,J,c,e,g,q){function p(){mxEvent.addListener(t,"click",null!=q?q:function(){c==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(c,!0);f()})):c==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(c,!0);f()}),function(S){b.spinner.stop();b.handleError(S)}):
(b.setMode(c,!0),f())})}F++;++E>m&&(mxUtils.br(L),E=1);var t=document.createElement("a");t.style.overflow="hidden";t.style.display="inline-block";t.className="geBaseButton";t.style.boxSizing="border-box";t.style.fontSize="11px";t.style.position="relative";t.style.margin="4px";t.style.marginTop="8px";t.style.marginBottom="0px";t.style.padding="8px 10px 8px 10px";t.style.width="88px";t.style.height="100px";t.style.whiteSpace="nowrap";t.setAttribute("title",J);var x=document.createElement("div");x.style.textOverflow= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var e=c.msgMarkers,g=this.remoteInvokeCallbacks[e.callbackId];if(null==g)throw Error("No callback for "+(null!=e?e.callbackId:"null"));c.error?g.error&&g.error(c.error.errResp):g.callback&&g.callback.apply(this,c.resp);this.remoteInvokeCallbacks[e.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,e,g,q,p){var t=!0,x=window.setTimeout(mxUtils.bind(this,function(){t=!1;p({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 |
fa=document.createElement("img");fa.setAttribute("src",ja);fa.setAttribute("alt",oa);fa.style.maxWidth=Qa+"px";fa.style.maxHeight=pa+"px";G=fa;var Xa=ja.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");ra.appendChild(fa);fa.onerror=function(){this.src!=Xa?this.src=Xa:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(ra,mxUtils.bind(this,function(Na){A(ra,null,null,aa,sa,ya)}),null,null);mxEvent.addListener(ra,"dblclick",function(Na){I();mxEvent.consume(Na)})}else if(!Ga&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxUtils.getTextContent(Z[Y]);U=b.stringToCells(Graph.decompress(y));var ca=b.editor.graph.getBoundingBoxFromGeometry(U);F(null,null,0,0,0,0,{xml:y,w:ca.width,h:ca.height})}C=!0}}catch(ha){null!=window.console&&console.log("Error in library dialog: "+ha)}C||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(ha){null!=window.console&&console.log("Error in library dialog: "+ha)}return null}function L(S){S.dataTransfer.dropEffect=null!=q?"move":"copy";S.stopPropagation(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(K){Editor.isAutoDarkMode()&&this.setDarkMode(K.matches)}))}catch(K){this.actions.get("autoMode").setEnabled(!1)}else Editor.isSettingsEnabled()&&!0===mxSettings.settings.darkMode&&(C=!0);this.installSettings();screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&c.editor.loadFonts()};var E=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||
document.body.clientWidth,e=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=e&&c<e?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<e&&c>=e&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));this.lastWindowWidth=c}E.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,e=this.sketchMainMenuElt,g=this.sketchPickerMenuElt,q=this.editor.graph;g.style.transform= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"ready";x.postMessage(t,"*");if("json"==urlParams.proto){var B=this.editor.graph.openLink;this.editor.graph.openLink=function(I,A,S){B.apply(this,arguments);x.postMessage(JSON.stringify({event:"openLink",href:I,target:A,allowOpener:S}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,e,g,q){var p="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,t=document.createElement("button");t.setAttribute("title",c+(null!=g?" ("+g+")":""));t.style.marginLeft="6px";
mxUtils.write(t,c);p?(t.className=q?"gePrimaryBtn":"",t.style.marginLeft="8px",t.style.padding="6px"):t.className="geBigButton"+(q?"":" geBigStandardButton");mxEvent.addListener(t,"click",e);return t};EditorUi.prototype.addEmbedButtons=function(){var c=document.createElement("div");c.style.display="inline-flex";c.style.alignItems="center";c.style.marginLeft="auto";"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme&&(c.style.marginRight="66px",c.style["float"]= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.x,v.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",n))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(n);b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());t.destroy();q.parentNode.removeChild(q)}}}function u(){return"list"==F.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean\n\nAddress\n-street: String\n-city: String\n-state: String":"mermaid"==F.value||
"mermaid2drawio"==F.value?"graph TD;\n A--\x3eB;\n A--\x3eC;\n B--\x3eD;\n C--\x3eD;":"table"==F.value?"CREATE TABLE Suppliers\n(\nsupplier_id int NOT NULL PRIMARY KEY,\nsupplier_name char(50) NOT NULL,\ncontact_name char(50),\n);\nCREATE TABLE Customers\n(\ncustomer_id int NOT NULL PRIMARY KEY,\ncustomer_name char(50) NOT NULL,\naddress char(50),\ncity char(50),\nstate char(25),\nzip_code char(10)\n);\n":"plantUmlPng"==F.value?"@startuml\nskinparam backgroundcolor transparent\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":
"plantUmlSvg"==F.value||"plantUmlTxt"==F.value?"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":";Example:\na->b\nb->edge label->c\nc->a\n"}var v=b.editor.graph.getFreeInsertPoint();f=document.createElement("div");f.style.textAlign="right";var E=document.createElement("textarea");E.style.boxSizing="border-box";E.style.resize= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
P--;Q()}),mxUtils.bind(this,function(X){P--;G.push("@import url("+W+");\n");Q()}))):G.push(this.cachedGoogleFonts[W]+"\n"):G.push('@font-face {font-family: "'+T+'";src: url("'+W+'")}\n')})(y[U].name,y[U].url);Q()}else k()};Editor.prototype.addMathCss=function(k){k=k.getElementsByTagName("defs");if(null!=k&&0<k.length)for(var y=document.getElementsByTagName("style"),G=0;G<y.length;G++){var P=mxUtils.getTextContent(y[G]);0>P.indexOf("mxPageSelector")&&0<P.indexOf("MathJax")&&k[0].appendChild(y[G].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 |
(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var x=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(K){K=null!=K?K:"";"1"==urlParams.dev&&(K+=(0<K.length?"&":"?")+"dev=1");return x.apply(this,arguments)};var B=e.addClickHandler;e.addClickHandler=function(K,O,V){var k=O;O=
function(y,G){if(null==G){var P=mxEvent.getSource(y);"a"==P.nodeName.toLowerCase()&&(G=P.getAttribute("href"))}null!=G&&e.isCustomLink(G)&&(mxEvent.isTouchEvent(y)||!mxEvent.isPopupTrigger(y))&&e.customLinkClicked(G)&&mxEvent.consume(y);null!=k&&k(y,G)};B.call(this,K,O,V)};v.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(e.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var I=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(K,O,V){e.isSelectionEmpty()&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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)for(E=0;E<v.length;E++)v[E].node.style.visibility=d?"visible":"hidden"};var m=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){m.call(this);var d=this.guidesArrVer,u=this.guidesArrHor;if(null!=d){for(var v=0;v<d.length;v++)d[v].destroy();this.guidesArrVer=null}if(null!=u){for(v=0;v<u.length;v++)u[v].destroy();this.guidesArrHor=null}}})();function mxRuler(b,f,m,d){function u(){var x=b.diagramContainer;R.style.top=x.offsetTop-L+"px";R.style.left=x.offsetLeft-L+"px";R.style.width=(m?0:x.offsetWidth)+L+"px";R.style.height=(m?x.offsetHeight:0)+L+"px"}function v(x,B,I){if(null!=E)return x;var A;return function(){var S=this,l=arguments,n=I&&!A;clearTimeout(A);A=setTimeout(function(){A=null;I||x.apply(S,l)},B);n&&x.apply(S,l)}}var E=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
M.substring(0,11)?d.loadImage(M,mxUtils.bind(this,function(P){var Q=!0,U=mxUtils.bind(this,function(){d.resizeImage(P,M,mxUtils.bind(this,function(T,W,X){T=Q?Math.min(1,Math.min(d.maxImageSize/W,d.maxImageSize/X)):1;d.importFile(M,K,y,G,Math.round(W*T),Math.round(X*T),O,function(Y){d.spinner.stop();u.setSelectionCells(Y);u.scrollCellToVisible(u.getSelectionCell())})}),Q)});M.length>d.resampleThreshold?d.confirmImageResize(function(T){Q=T;U()}):U()}),mxUtils.bind(this,function(){d.handleError({message:mxResources.get("cannotOpenFile")})})): | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"ellipsis";D.setAttribute("title",C.title+" ("+C.id+")");var M=document.createElement("input");M.setAttribute("type","checkbox");M.checked=b.sidebar.isEntryVisible(C.id);M.defaultChecked=M.checked;D.appendChild(M);mxUtils.write(D," "+C.title);H.appendChild(D);var K=function(O){if(null==O||"INPUT"!=mxEvent.getSource(O).nodeName){R.style.textAlign="center";R.style.padding="0px";R.style.color="";R.innerText="";if(null!=C.desc){var V=document.createElement("pre");V.style.boxSizing="border-box";V.style.fontFamily=
"inherit";V.style.margin="20px";V.style.right="0px";V.style.textAlign="left";mxUtils.write(V,C.desc);R.appendChild(V)}null!=C.imageCallback?C.imageCallback(R):null!=C.image?R.innerHTML+='<img border="0" style="max-width:100%;" src="'+C.image+'"/>':null==C.desc&&(R.style.padding="20px",R.style.color="rgb(179, 179, 179)",mxUtils.write(R,mxResources.get("noPreview")));null!=J&&(J.style.backgroundColor="");J=D;J.style.backgroundColor=Editor.isDarkMode()?"#000000":"#ebf2f9";null!=O&&mxEvent.consume(O)}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(k,y){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var G=function(){P=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};k=null!=k?k:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var P=null;Editor.doMathJaxRender=function(T){try{null==P?(MathJax.typesetClear([T]),MathJax.typeset([T]),G()):P!=T&&Editor.mathJaxQueue.push(T)}catch(W){MathJax.typesetClear([T]),null!=W.retry?(P=T,W.retry.then(function(){MathJax.typesetPromise([T]).then(G)["catch"](function(X){console.log("Error in MathJax.typesetPromise: "+
X.toString());G()})})["catch"](function(X){console.log("Error in MathJax.retry: "+X.toString());G()})):null!=window.console&&console.log("Error in MathJax.typeset: "+W.toString())}};window.MathJax=null!=y?y:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var T=0;T<Editor.mathJaxQueue.length;T++)Editor.doMathJaxRender(Editor.mathJaxQueue[T])}}};Editor.MathJaxRender= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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<<5)-q+this.hashValue(c.childNodes[p],e,g)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);e=0;null!=g&&(g.byteCount+=c.length);for(p=0;p<c.length;p++)e=(e<<5)-e+c.charCodeAt(p)<<0;q^=e}return q};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,e,g,q,p,t,x){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&
(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){null==c&&(c=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};EditorUi.prototype.createLibraryDataFromImages=function(c){if(!Editor.defaultCompressed)for(var e=0;e<c.length;e++)null!=c[e].xml&&"<"!=c[e].xml.charAt(0)&&(c[e].xml=mxUtils.trim(Graph.decompress(c[e].xml)));e=mxUtils.createXmlDocument();var g=e.createElement("mxlibrary"); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
c.style.textAlign="right";e=document.createElement("div");e.className="geToolbarContainer";e.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function l(D){if(null!=D){var M=D.getAttribute("background");if(null==M||""==M||M==mxConstants.NONE)M=Editor.isDarkMode()?"transparent":"#ffffff";q.style.backgroundColor=M;(new mxCodec(D.ownerDocument)).decode(D,p.getModel());p.maxFitScale=1;p.fit(8);p.center()}return D} | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.isRemoteFileFormat(V,U)&&null!=W?this.isExternalDataComms()?this.parseFile(W,mxUtils.bind(this,function(Z){4==Z.readyState&&(this.spinner.stop(),200<=Z.status&&299>=Z.status?Y(Z.responseText,"text/xml"):this.handleError({message:mxResources.get(413==Z.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):Y(V,k)}}));O.stopPropagation();O.preventDefault()})),mxEvent.addListener(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 |
"0"!=urlParams.pv;Graph.prototype.shadowId="dropShadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var e=Graph.prototype.init;Graph.prototype.init=function(){function k(Q){y=Q}e.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var y=null;mxEvent.addListener(this.container,"mouseenter", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
for(var Q=P.getElementsByTagName("a"),U=!1,T=0;T<Q.length;T++)G=Q[T].getAttribute("href"),null!=G&&"data:action/json,"==G.substring(0,17)&&(Q[T].setAttribute("href",this.updateCustomLink(k,G)),U=!0);U&&this.labelChanged(y,P.innerHTML)}};Graph.prototype.updateCustomLink=function(k,y){if("data:action/json,"==y.substring(0,17))try{var G=JSON.parse(y.substring(17));null!=G.actions&&(this.updateCustomLinkActions(k,G.actions),y="data:action/json,"+JSON.stringify(G))}catch(P){}return y};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.customFonts)))}finally{G.getModel().endUpdate()}}}));this.editorUi.showDialog(Q.container,380,Editor.enableWebFonts?250:180,!0,!0);Q.init()}),n,null,!0)})))}})();function DiagramPage(b,f){this.node=b;null!=f?this.node.setAttribute("id",f):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 |
"1");this.sketchWrapperElt.appendChild(this.sketchMainMenuElt)}};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=urlParams.pages||1<this.pages.length||Editor.pagesVisible)};EditorUi.prototype.createFooterMenuForTheme=function(c){if(("simple"==c||"sketch"==c)&&null==this.sketchFooterMenuElt){this.sketchFooterMenuElt=document.createElement("div");this.sketchFooterMenuElt.className="geToolbarContainer";var e=this.sketchFooterMenuElt;if("simple"!=c){var g=this.createPageMenuTab(!1, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
null,x,mxResources.get("cancel"),mxResources.get("discardChanges")):x()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var e=0;e<this.pages.length;e++)this.updatePageRoot(this.pages[e]),this.addBasenamesForCell(this.pages[e].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);e=[];for(var g in c)e.push(g);return e};EditorUi.prototype.addBasenamesForCell=function(c,e){function g(x){if(null!=
x){var B=x.lastIndexOf(".");0<B&&(x=x.substring(B+1,x.length));null==e[x]&&(e[x]=!0)}}var q=this.editor.graph,p=q.getCellStyle(c);g(mxStencilRegistry.getBasenameForStencil(p[mxConstants.STYLE_SHAPE]));q.model.isEdge(c)&&(g(mxMarker.getPackageForType(p[mxConstants.STYLE_STARTARROW])),g(mxMarker.getPackageForType(p[mxConstants.STYLE_ENDARROW])));p=q.model.getChildCount(c);for(var t=0;t<p;t++)this.addBasenamesForCell(q.model.getChildAt(c,t),e)};EditorUi.prototype.setGraphEnabled=function(c){this.diagramContainer.style.visibility= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.showPageLinkDialog=function(b){var f=this.editor.graph;this.showPublishLinkDialog(mxResources.get("url"),!0,null,null,mxUtils.bind(this,function(m,d,u,v,E,F){m=this.createUrlParameters(m,d,u,v,E,F);u||m.push("hide-pages=1");f.isSelectionEmpty()||(u=f.getBoundingBox(f.getSelectionCells()),d=f.view.translate,E=f.view.scale,u.width/=E,u.height/=E,u.x=u.x/E-d.x,u.y=u.y/E-d.y,m.push("viewbox="+encodeURIComponent(JSON.stringify({x:Math.round(u.x),y:Math.round(u.y),width:Math.round(u.width),
height:Math.round(u.height),border:100}))));v=new EmbedDialog(this,this.getLinkForPage(b,m,v));this.showDialog(v.container,450,240,!0,!0);v.init()}))};(function(){mxCodecRegistry.getCodec(ChangePageSetup).exclude.push("page")})();(function(){var b=new mxObjectCodec(new MovePage,["ui"]);b.beforeDecode=function(f,m,d){d.ui=f.ui;return m};b.afterDecode=function(f,m,d){f=d.oldIndex;d.oldIndex=d.newIndex;d.newIndex=f;return d};mxCodecRegistry.register(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 |
mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var f=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=f){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var m=mxFreehand.prototype.NORMAL_SMOOTHING,d=null,u=[],v,E=[],F,L=!1,N=!0,H=!0,R=!0,J=!0,c=[],e=!1,g=!1,q=!1,p={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},t=!0;this.setClosedPath=function(z){L=z};this.setAutoClose=function(z){N=z};this.setAutoInsert= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=U.setStrokeColor;U.setStrokeColor=function(){};var ha=U.setFillColor;U.setFillColor=function(){};W||null==X||(this.configurePointerEvents=function(){});U.handJiggle.passThrough=!0;P.apply(this,arguments);U.handJiggle.passThrough=!1;U.setFillColor=ha;U.setStrokeColor=ca;this.configurePointerEvents=Z;this.stroke=Y;this.fill=X;U.restore();W&&null!=X&&(U.addTolerance=function(){})}P.apply(this,arguments);U.addTolerance= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
!0;E.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(E,arguments);b.resetCurrentMenu();E.destroy()});var F=mxEvent.getClientX(v),L=mxEvent.getClientY(v);E.popup(F,L,null,v);b.setCurrentMenu(E,d)}mxEvent.consume(v)}}))});f(this.hRuler.container);f(this.vRuler.container);this.vRuler.drawRuler();this.hRuler.drawRuler()}mxDualRuler.prototype.updateStyle=function(){this.vRuler.updateStyle();this.hRuler.updateStyle();this.vRuler.drawRuler();this.hRuler.drawRuler()}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
va,Ha=Ia+(Ta.x-Ia)/va-ha,Va=Sa+(Ta.y-Sa)/va-ha,Ua=new Image;Ua.onload=function(){try{for(var ia=-Math.round(Da-mxUtils.mod((Ia-Ha)*W,Da)),aa=-Math.round(Da-mxUtils.mod((Sa-Va)*W,Da));ia<wa;ia+=Da)for(var la=aa;la<Qa;la+=Da)pa.drawImage(Ua,ia/W,la/W);Aa()}catch(ma){null!=Q&&Q(ma)}};Ua.onerror=function(ia){null!=Q&&Q(ia)};Ua.src=Ea}else Aa()}catch(ia){null!=Q&&Q(ia)}});qa.onerror=function(Aa){null!=Q&&Q(Aa)};Y&&this.graph.addSvgShadow(da);this.graph.mathEnabled&&this.addMathCss(da);var ka=mxUtils.bind(this, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
c;else if("mxfile"==c.nodeName){var q=c.getElementsByTagName("diagram");if(0<q.length){g=q[0];var p=e.getGlobalVariable;e.getGlobalVariable=function(t){return"page"==t?g.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==t?1:p.apply(this,arguments)}}}null!=g&&(c=Editor.parseDiagramNode(g))}q=this.editor.graph;try{this.editor.graph=e,this.editor.setGraphXml(c)}catch(t){}finally{this.editor.graph=q}return c};EditorUi.prototype.getSvgFileProperties=function(c){return this.getPngFileProperties(c)}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){var k=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=k.style.shape&&!k.containsLabel&&0<k.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));J.apply(this,arguments);if(Editor.enableCustomProperties){for(var y={},G=k.vertices,P=k.edges,Q=0;Q<G.length;Q++)this.findCommonProperties(G[Q],y,0==Q);for(Q=0;Q<P.length;Q++)this.findCommonProperties(P[Q],y,0==G.length&&0==Q);null!=Object.getOwnPropertyNames&&
0<Object.getOwnPropertyNames(y).length&&this.container.appendChild(this.addProperties(this.createPanel(),y,k))}};var c=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(k){var y=this.editorUi.getSelectionState();1==y.cells.length?this.addActions(k,["copyStyle","pasteStyle"]):1<=y.cells.length&&this.addActions(k,["pasteStyle","pasteData"]);return c.apply(this,arguments)};EditorUi.prototype.propertiesCollapsed=!0;StyleFormatPanel.prototype.addProperties=function(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 |
mxUtils.bind(this,function(K,O){K=null!=e.backgroundImage?e.backgroundImage.originalSrc:null;if(null!=K){var V=K.indexOf(",");if(0<V)for(K=K.substring(V+1),O=O.getProperty("patches"),V=0;V<O.length;V++)if(null!=O[V][EditorUi.DIFF_UPDATE]&&null!=O[V][EditorUi.DIFF_UPDATE][K]||null!=O[V][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(O[V][EditorUi.DIFF_REMOVE],K)){e.refreshBackgroundImage();break}}}));var t=e.getBackgroundImageObject;e.getBackgroundImageObject=function(K,O){var V=t.apply(this,arguments);
if(null!=V&&null!=V.originalSrc)if(!O)V={src:V.originalSrc};else if(O&&null!=this.themes&&"darkTheme"==this.defaultThemeName){var k=this.stylesheet,y=this.shapeForegroundColor,G=this.shapeBackgroundColor;this.stylesheet=this.getDefaultStylesheet();this.shapeBackgroundColor="#ffffff";this.shapeForegroundColor="#000000";V=c.createImageForPageLink(V.originalSrc);this.shapeBackgroundColor=G;this.shapeForegroundColor=y;this.stylesheet=k}return V};this.isOffline()||"undefined"===typeof window.EditDataDialog|| | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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=new mxAsyncCanvas(this.thumbImageCache);I.images=this.thumbImageCache.images;var S=new mxImageExport;S.drawShape=function(l,n){l.shape instanceof mxShape&&l.shape.checkBounds()&&(n.save(),n.translate(.5,.5),l.shape.paint(n),n.translate(-.5,-.5),n.restore())};S.drawText=function(l,n){};S.drawState(E.getView().getState(E.model.root),A);A.finish(mxUtils.bind(this,function(){try{S.drawState(E.getView().getState(E.model.root),I),E!=this.editor.graph&&null!=E.container.parentNode&&E.container.parentNode.removeChild(E.container)}catch(l){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 |
O=document.createElement("div");O.style.marginTop="6px";O.style.display="inline-block";O.style.width="140px";mxUtils.write(O,mxResources.get("siblingSpacing")+": ");K.appendChild(O);var P=document.createElement("input");P.type="number";P.value=D;P.style.width="200px";P.style.boxSizing="border-box";K.appendChild(P);mxEvent.addListener(P,"change",function(){D=P.value});O=mxUtils.button(mxResources.get("custom")+"...",function(){var Q=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(V.value),
parentChildSpacing:parseInt(G.value),siblingSpacing:parseInt(P.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(Q,null,2))});O.className="geBtn";K=new CustomDialog(d,K,function(){null==z&&(z=2);d.loadOrgChartLayouts(M)},null,null,null,O);d.showDialog(K.container,355,140,!0,!0)},n,null,v());l.addSeparator(n);l.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,function(){var z=new mxParallelEdgeLayout(u);z.checkOverlap=!0;d.prompt(mxResources.get("spacing"),
z.spacing,mxUtils.bind(this,function(C){d.tryAndHandle(mxUtils.bind(this,function(){z.spacing=C;d.executeLayout(function(){z.execute(u.getDefaultParent(),u.isSelectionEmpty()?null:u.getSelectionCells())},!1)}))}))}))}),n);l.addSeparator(n);d.menus.addMenuItem(l,"runLayout",n,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(l,n){if(!mxClient.IS_CHROMEAPP&&d.isOffline())this.addMenuItems(l,["about"],n);else{var z=l.addItem("Search:",null,null,n,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 |
k.prototype.lineTo=function(U,T){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,U,T),this.lastX=U,this.lastY=T)};k.prototype.moveTo=function(U,T){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,U,T),this.lastX=U,this.lastY=T,this.firstX=U,this.firstY=T)};k.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};k.prototype.quadTo=function(U,T,W,X){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 |
function(T){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(T):Editor.mathJaxQueue.push(T)};Editor.onMathJaxDone=function(){};var Q=Editor.prototype.init;Editor.prototype.init=function(){Q.apply(this,arguments);var T=mxUtils.bind(this,function(W,X){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,T);this.graph.addListener(mxEvent.REFRESH,T)};y=document.getElementsByTagName("script"); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,e){var g=this.getCurrentFile();return null!=g?g.newComment(c,e):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,e)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.menus.defaultFonts=Menus.prototype.defaultFonts;c.currentVertexStyle=mxUtils.clone(c.defaultVertexStyle);c.currentEdgeStyle=mxUtils.clone(c.defaultEdgeStyle);this.clearDefaultStyle()};EditorUi.prototype.getLinkTitle=function(c){var e=Graph.prototype.getLinkTitle.apply(this,arguments);if(Graph.isPageLink(c)){var g=c.indexOf(",");0<g&&(e=this.getPageById(c.substring(g+1)),e=null!=e?e.getName():mxResources.get("pageNotFound"))}else"data:"==c.substring(0,5)&&(e=mxResources.get("action"));return e}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
dispName:"West"}]},{name:"jettySize",dispName:"Jetty Size",type:"int",min:0,defVal:"auto",allowAuto:!0,isVisible:function(k){return"orthogonalEdgeStyle"==mxUtils.getValue(k.style,mxConstants.STYLE_EDGE,null)}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispName:"Stroke Opacity",type:"int",min:0,max:100,defVal:100},{name:"startFill",dispName:"Start Fill",type:"bool",defVal:!0},{name:"endFill",dispName:"End Fill",type:"bool",defVal:!0},{name:"perimeterSpacing", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
return S}),A=!0);return A};var x=p.stop;p.stop=function(){x.call(this);this.active=!1;null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status);p.status=null};p.pause=function(){return function(){}};return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),g=this.editor.extractGraphModel(e.documentElement,!0);return null!=g&&0==g.getElementsByTagName("parsererror").length}catch(q){}return!1};EditorUi.prototype.isVisioData=function(c){return 8< | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.maxImageBytes=k.maxImageBytes);null!=k.maxImageSize&&(EditorUi.prototype.maxImageSize=k.maxImageSize);null!=k.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=k.shareCursorPosition);null!=k.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=k.showRemoteCursors);null!=k.restrictExport&&(DrawioFile.RESTRICT_EXPORT=k.restrictExport)}};Editor.isAutoDarkMode=function(k){return!k&&"auto"==urlParams.dark||Editor.isSettingsEnabled()&&"auto"==mxSettings.settings.darkMode}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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):l.y+l.height>D+z&&(l.height=D+z-l.y,l.y=Math.min(l.y,D+z));var M=(l.x-C)/n*100;n=100-(l.x+l.width-C)/n*100;C=(l.y-D)/z*100;l=100-(l.y+l.height-D)/z*100;return"inset("+mxUtils.format(C)+"% "+mxUtils.format(n)+"% "+mxUtils.format(l)+"% "+mxUtils.format(M)+"%"+(A?" round "+J+"%":S?" round 50%":"")+")"}function v(A){null!=H&&(!0!==A&&(H.model.setGeometry(c,R.clone()),J=5,x.value=J),H.model.setStyle(c,e+u()),H.selectAll(),t.style.visibility=q.checked?"visible":"hidden")}var E=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 |
DrawioFile.prototype.sendErrorReport=function(b,f,m,d){try{var u=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),v=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),E=this.getCurrentUser(),F=null!=E?this.ui.hashValue(E.id):"unknown",L=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",N=this.getTitle(),H=N.lastIndexOf(".");E="xml";0<H&&(E=N.substring(H));var R=null!=m?m.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+E+")\nUser="+F+L+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=f?"\n\n"+f:
"")+(null!=m?"\n\nError: "+m.message:"")+"\n\nStack:\n"+R+"\n\nShadow:\n"+u+"\n\nData:\n"+v,d)}catch(J){}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
V)this.editPlantUmlData(K,O,V);else if(V=this.graph.getAttributeForCell(K,"mermaidData"),null!=V)this.editMermaidData(K,O,V);else{var k=e.getCellStyle(K);"1"==mxUtils.getValue(k,"metaEdit","0")?c.showDataDialog(K):g.apply(this,arguments)}}catch(y){c.handleError(y)}};e.getLinkTitle=function(K){return c.getLinkTitle(K)};e.customLinkClicked=function(K){var O=!1;try{c.handleCustomLink(K),O=!0}catch(V){c.handleError(V)}return O};var q=e.parseBackgroundImage;e.parseBackgroundImage=function(K){var O=q.apply(this,
arguments);null!=O&&null!=O.src&&Graph.isPageLink(O.src)&&(O={originalSrc:O.src});return O};var p=e.setBackgroundImage;e.setBackgroundImage=function(K){null!=K&&null!=K.originalSrc&&(K=c.createImageForPageLink(K.originalSrc,c.currentPage,this));p.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){e.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){e.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 |
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=U.setStrokeColor;U.setStrokeColor=function(){};var ha=U.setFillColor;U.setFillColor=function(){};W||null==X||(this.configurePointerEvents=function(){});U.handJiggle.passThrough=!0;P.apply(this,arguments);U.handJiggle.passThrough=!1;U.setFillColor=ha;U.setStrokeColor=ca;this.configurePointerEvents=Z;this.stroke=Y;this.fill=X;U.restore();W&&null!=X&&(U.addTolerance=function(){})}P.apply(this,arguments);U.addTolerance= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
1));try{e=JSON.parse(c)}catch(q){}}}return e};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&""!=this.currentFile.getHash()&&null!=this.currentPage&&0<this.getSelectedPageIndex()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var e=window.location.hash;if(null==e||""==e)e="#";var g=e.lastIndexOf("#");0<g&&(e=e.substring(0,g));try{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.installStatusMinimizer=function(c){c=null!=c?c:this.statusContainer.parentNode;var e=!1;mxEvent.addListener(c,"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&""!=this.editor.getStatus()&&(this.statusContainer.style.display="inline-flex")}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||e||(this.statusContainer.style.display="none")}));var g=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var q=
null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;e=null!=q&&null!=q.getAttribute("class");if(!e&&null!=q){q=q.getAttribute("title");var p=this.getCurrentFile();p=null!=p?p.savingStatusKey:DrawioFile.prototype.savingStatusKey;q==mxResources.get(p)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(p))+'..."src="'+Editor.tailSpin+'"></div>',e=!0)}this.statusContainer.style.display=
"none";q=32>=c.clientWidth;c.style.visibility=q&&""==this.editor.getStatus()?"hidden":"";if(q||e)this.statusContainer.style.display="inline-flex",e=!0}else"simple"==Editor.currentTheme?(this.statusContainer.style.display="inline-flex",this.statusContainer.style.display=0==this.statusContainer.clientWidth?"none":"inline-flex"):this.statusContainer.style.display="inline-flex"});this.editor.addListener("statusChanged",g);g()};EditorUi.prototype.switchTheme=function(c){this.isDefaultTheme(c)&&null!=this.formatContainer&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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){"simple"==c||"sketch"==c?null==this.sketchStyleElt&&(this.sketchStyleElt=document.createElement("style"),this.sketchStyleElt.setAttribute("type","text/css"),this.sketchStyleElt.innerHTML=Editor.createMinimalCss(),document.getElementsByTagName("head")[0].appendChild(this.sketchStyleElt)):null!=this.sketchStyleElt&&(this.sketchStyleElt.parentNode.removeChild(this.sketchStyleElt),this.sketchStyleElt=null)};EditorUi.prototype.createWrapperForTheme=function(c){"simple"==c||"sketch"==c?(null==
this.sketchWrapperElt&&(this.sketchWrapperElt=document.createElement("div"),this.sketchWrapperElt.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;"),"sketch"==c&&(this.sketchWrapperElt.className="geSketch"),this.diagramContainer.parentNode.appendChild(this.sketchWrapperElt),this.sketchWrapperElt.appendChild(this.diagramContainer)):null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode&&(this.tabContainer.parentNode.insertBefore(this.diagramContainer,
this.tabContainer),this.sketchWrapperElt.parentNode.removeChild(this.sketchWrapperElt))};EditorUi.prototype.createMainMenuForTheme=function(c){if(("simple"==c||"sketch"==c)&&null==this.sketchMainMenuElt){this.sketchMainMenuElt=document.createElement("div");this.sketchMainMenuElt.style.cssText="position:absolute;padding:9px 12px;overflow:hidden;white-space:nowrap;user-select:none;box-sizing:border-box;";var e=this.createMenu("simple"==c?"view":"diagram","simple"==c?Editor.thinViewImage:Editor.menuImage); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.appendChild(v);R.appendChild(N);L?(N.style.marginTop="10px",J=document.createElement("p"),J.style.marginTop="20px",J.style.marginBottom="0px",J.appendChild(c),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberThisSetting")),J.appendChild(u),R.appendChild(J),mxEvent.addListener(u,"click",function(g){c.checked=!c.checked;mxEvent.consume(g)})):N.style.marginTop="12px";this.init=function(){e.focus()};this.container=R},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),
document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};HeadlessEditorUi.prototype.updateActionStates=function(){};EditorUi.DIFF_INSERT="i";EditorUi.DIFF_REMOVE="r";EditorUi.DIFF_UPDATE="u";EditorUi.transientViewStateProperties="defaultParent currentRoot scrollLeft scrollTop scale translate lastPasteXml pasteCounter".split(" ");EditorUi.prototype.viewStateProperties={background:!0,backgroundImage:!0,shadowVisible:!0,foldingEnabled:!0,pageScale:!0,mathEnabled:!0,pageFormat:!0,extFonts:!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 |
if(null!=k.excludeCells){for(var G=[],P=0;P<y.length;P++)0>k.excludeCells.indexOf(y[P].id)&&G.push(y[P]);y=G}return y};Graph.prototype.getCellsById=function(k){var y=[];if(null!=k)for(var G=0;G<k.length;G++)if("*"==k[G]){var P=this.model.getRoot();y=y.concat(this.model.filterDescendants(function(U){return U!=P},P))}else{var Q=this.model.getCell(k[G]);null!=Q&&y.push(Q)}return y};var C=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(k){return C.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(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 |
sa.innerText=ja;fa.appendChild(sa);qa.appendChild(fa);mxEvent.addListener(fa,"click",function(){function La(){var ya=Ga.querySelector(".geTemplateDrawioCatLink");null!=ya?ya.click():setTimeout(La,200)}ha=!0;var Ga=O.querySelector(".geTemplatesList");Ga.style.display="block";Ba.style.width="";xa.style.display="";xa.value="";Z=null;La()});na.style.display=ia.length<=la?"none":""}function l(ia,aa,la){function ma(Ka,Xa){Ka=mxResources.get(Ka,null,Ka.substring(0,1).toUpperCase()+Ka.substring(1));var Pa=
Ka+" ("+Xa.length+")",Ra=Ka=mxUtils.htmlEntities(Ka);15<Ka.length&&(Ka=Ka.substring(0,15)+"…");return{lbl:Ka+" ("+Xa.length+")",fullLbl:Pa,lblOnly:Ra}}function oa(Ka,Xa,Pa,Ra,Oa){mxEvent.addListener(Pa,"click",function(){y!=Pa&&(null!=y?(y.style.fontWeight="normal",y.style.textDecoration="none"):(da.style.display="none",ba.style.minHeight="100%"),y=Pa,y.style.fontWeight="bold",y.style.textDecoration="underline",Ba.scrollTop=0,V&&(k=!0),za.innerHTML=Xa,Ca.style.display="none",A(Oa?aa[Ka]:Ra? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
parseFloat(y[3])+6,k.setAttribute("viewBox",y[0]+" "+y[1]+" "+w+" "+h))))));return U};Graph.prototype.setShadowVisible=function(k,y){mxClient.IS_SVG&&!mxClient.IS_SF&&(y=null!=y?y:!0,(this.shadowVisible=k)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),y&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var k=this.model.getChildCount(this.model.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 |
EditorUi.prototype.diffCellRecursive=function(b,f,m,d,u){d=null!=d?d:{};var v=m[b.getId()];delete m[b.getId()];if(null==v)u.push(b.getId());else{var E=this.diffCell(b,v.cell);if(null!=E.parent||(null!=v.prev?null==f:null!=f)||null!=f&&null!=v.prev&&f.getId()!=v.prev.getId())E.previous=null!=v.prev?v.prev.getId():"";mxUtils.isEmptyObject(E)||(d[b.getId()]=E)}v=b.getChildCount();f=null;for(E=0;E<v;E++){var F=b.getChildAt(E);this.diffCellRecursive(F,f,m,d,u);f=F}return d}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
[C],"{1} ago"));z.setAttribute("title",n.toLocaleDateString()+" "+n.toLocaleTimeString())}function N(n){var z=document.createElement("img");z.className="geCommentBusyImg";z.src=IMAGE_PATH+"/spin.gif";n.appendChild(z);n.busyImg=z}function H(n){n.style.border="1px solid red";n.removeChild(n.busyImg)}function R(n){n.style.border="";n.removeChild(n.busyImg)}function J(n,z,C,D,M){function K(U,T,W){var X=document.createElement("li");X.className="geCommentAction";var Y=document.createElement("a");Y.className=
"geCommentActionLnk";mxUtils.write(Y,U);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){T(Z,n);Z.preventDefault();mxEvent.consume(Z)});Q.appendChild(X);W&&(X.style.display="none")}function O(){function U(X){T.push(W);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)W=W.nextSibling,U(X.replies[Y])}var T=[],W=k;U(n);return{pdiv:W,replies:T}}function V(U,T,W,X,Y){function Z(){N(ea);n.addReply(na,function(za){na.id=za;n.replies.push(na);R(ea);W&&W()},function(za){ca();H(ea);b.handleError(za, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
DrawioFile.prototype.fileSaved=function(b,f,m,d,u){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;var v=this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(v),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=m&&m()):this.sync.fileSaved(v,f,m,d,u)}catch(L){this.invalidChecksum=this.inConflictState=
!0;this.descriptorChanged();null!=d&&d(L);try{if(this.errorReportsEnabled)this.sendErrorReport("Error in fileSaved",null,L);else{var E=this.getCurrentUser(),F=null!=E?E.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),F,L)}}catch(N){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(L){this.descriptorChanged(),null!=d&&d(L)}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0,0,80,30,"ellipse");L(N)}finally{v.getModel().endUpdate()}if("horizontalTree"==m){var H=new mxCompactTreeLayout(v);H.edgeRouting=!1;H.levelDistance=30;E="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==m?(H=new mxCompactTreeLayout(v,!1),H.edgeRouting=!1,H.levelDistance=30,E="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==m?(H=new mxRadialTreeLayout(v,!1),H.edgeRouting=!1,H.levelDistance=80):"verticalFlow"==m?H=new mxHierarchicalLayout(v,mxConstants.DIRECTION_NORTH):"horizontalFlow"==
m?H=new mxHierarchicalLayout(v,mxConstants.DIRECTION_WEST):"circle"==m?H=new mxCircleLayout(v):(H=new mxFastOrganicLayout(v,!1),H.forceConstant=80);if(null!=H){var R=function(g,q){v.getModel().beginUpdate();try{null!=g&&g(),H.execute(v.getDefaultParent(),N)}catch(p){throw p;}finally{g=new mxMorphing(v),g.addListener(mxEvent.DONE,mxUtils.bind(this,function(){v.getModel().endUpdate();null!=q&&q()})),g.startAnimation()}},J=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(g,q,
p,t,x){J.apply(this,arguments);R()};v.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);R()};v.connectionHandler.addListener(mxEvent.CONNECT,function(){R()})}var c=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=u.parentNode&&(v.destroy(),u.parentNode.removeChild(u));b.hideDialog()})});c.className="geBtn";b.editor.cancelFirst&&d.appendChild(c);var e=mxUtils.button(mxResources.get("insert"),function(g){v.clearCellOverlays(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
W.fillStyle=T;return W};k.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};k.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};k.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var U=2;U<arguments.length;U+=2)this.lastX=arguments[U-1],this.lastY=arguments[U],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 |
EditorUi.initMinimalTheme=function(){function b(J,c){if(EditorUi.windowed){var e=J.editor.graph;e.popupMenuHandler.hideMenu();null==J.formatWindow?(c=Math.max(10,J.diagramContainer.clientWidth-248),e=Math.min(566,e.container.clientHeight-10),J.formatWindow=new WrapperWindow(J,mxResources.get("format"),c,60,240,e,function(g){J.createFormat(g).init()}),J.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){J.formatWindow.window.fit()})),J.formatWindow.window.minimumSize=new mxRectangle(0,
0,240,80)):J.formatWindow.window.setVisible(null!=c?c:!J.formatWindow.window.isVisible())}else null==J.formatElt&&(J.formatElt=J.createSidebarContainer(),J.createFormat(J.formatElt).init(),J.formatElt.style.border="none",J.formatElt.style.width="240px",J.formatElt.style.borderLeft="1px solid gray",J.formatElt.style.right="0px"),e=J.diagramContainer.parentNode,null!=J.formatElt.parentNode?(J.formatElt.parentNode.removeChild(J.formatElt),e.style.right="0px"):(e.parentNode.appendChild(J.formatElt),e.style.right=
J.formatElt.style.width)}function f(J,c){function e(p,t){var x=J.menus.get(p);p=g.addMenu(t,mxUtils.bind(this,function(){x.funct.apply(this,arguments)}));p.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;";p.className="geTitle";c.appendChild(p);return p}var g=new Menubar(J,c);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed|| | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"4px");null!=Z&&na.setAttribute("title",Z);null!=ca&&(W=function(){ca.isEnabled()?(na.removeAttribute("disabled"),na.style.cursor="pointer"):(na.setAttribute("disabled","disabled"),na.style.cursor="default")},ca.addListener("stateChanged",W),x.addListener("enabledChanged",W),W());return na}function e(W,X,Y){Y=document.createElement("div");Y.className="geMenuItem";Y.style.display="inline-block";Y.style.verticalAlign="top";Y.style.marginRight="6px";Y.style.padding="0 4px 0 4px";Y.style.height="30px";
Y.style.position="relative";Y.style.top="0px";for(var Z=0;Z<W.length;Z++)null!=W[Z]&&(W[Z].style.margin="0px",W[Z].style.boxShadow="none",Y.appendChild(W[Z]));null!=X&&mxUtils.setOpacity(Y,X);null!=t.statusContainer?B.insertBefore(Y,t.statusContainer):B.appendChild(Y);return Y}function g(){for(var W=B.firstChild;null!=W;){var X=W.nextSibling;"geMenuItem"!=W.className&&"geItem"!=W.className||W.parentNode.removeChild(W);W=X}I=B.firstChild;d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
StorageFile.insertFile=function(b,f,m,d,u){var v=mxUtils.bind(this,function(E){var F=function(){var L=new StorageFile(b,m,f);L.saveFile(f,!1,function(){d(L)},u)};E?b.confirm(mxResources.get("replaceIt",[f]),F,u):F()});StorageFile.getFileContent(b,f,function(E){v(null!=E)},function(){v(!1)})};StorageFile.getFileContent=function(b,f,m,d){b.getDatabaseItem(f,function(u){m(null!=u?u.data:null)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(f,m):null!=d&&d()}),"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 |
e)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,e,g,q,p,t,x,B,I,A,S,l,n,z,C,D){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,e,g,q,p,t,x,B,I,A,S,l,n,z,C,D)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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!=K&&e.isCellLocked(K.cell))e.customLinkClicked(k),e.getRubberband().reset();mxEvent.consume(V)}};this.editor.getOrCreateFilename=function(){var K=c.defaultFilename,O=c.getCurrentFile();null!=O&&(K=null!=O.getTitle()?O.getTitle():K);return K};var C=this.actions.get("print");C.setEnabled(!mxClient.IS_IOS||!navigator.standalone);C.visible=C.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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=u.getCell(H.id),null!=e&&(u.setTerminal(e,u.getCell(H.source),!0),u.setTerminal(e,u.getCell(H.target),!1));u.updateEdgeParent=E;if(d&&0<L.length)for(c=0;c<L.length;c++)u.contains(L[c])&&u.updateEdgeParent(L[c])}finally{u.endUpdate()}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
return null!=this.corsRegExp&&this.corsRegExp.test(k)||"https://raw.githubusercontent.com/"===k.substring(0,34)||"https://fonts.googleapis.com/"===k.substring(0,29)||"https://fonts.gstatic.com/"===k.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var k=new mxUrlConverter;k.updateBaseUrl();var y=k.convert,G=this;k.convert=function(P){if(null!=P){var Q="http://"==P.substring(0,7)||"https://"==P.substring(0,8);Q&&!navigator.onLine?P=Editor.svgBrokenImage.src:!Q||P.substring(0,k.baseUrl.length)==
k.baseUrl||G.crossOriginImages&&G.isCorsEnabledForUrl(P)?"chrome-extension://"==P.substring(0,19)||mxClient.IS_CHROMEAPP||(P=y.apply(this,arguments)):P=PROXY_URL+"?url="+encodeURIComponent(P)}return P};return k};Editor.createSvgDataUri=function(k){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(k)))};Editor.prototype.convertImageToDataUri=function(k,y){try{var G=!0,P=window.setTimeout(mxUtils.bind(this,function(){G=!1;y(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(k))mxUtils.get(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 |
!1,!0)}finally{I.model.endUpdate()}}}catch(V){if(p)throw V;this.handleError(V)}return B};EditorUi.prototype.updatePageLinks=function(c,e){for(var g=0;g<e.length;g++)this.updatePageLinksForCell(c,e[g].root),null!=e[g].viewState&&this.updateBackgroundPageLink(c,e[g].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(c,e){try{if(null!=e&&Graph.isPageLink(e.originalSrc)){var g=c[e.originalSrc.substring(e.originalSrc.indexOf(",")+1)];null!=g&&(e.originalSrc="data:page/id,"+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
parentChildSpacing:parseInt(G.value),siblingSpacing:parseInt(P.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(Q,null,2))});O.className="geBtn";K=new CustomDialog(d,K,function(){null==z&&(z=2);d.loadOrgChartLayouts(M)},null,null,null,O);d.showDialog(K.container,355,140,!0,!0)},n,null,v());l.addSeparator(n);l.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,function(){var z=new mxParallelEdgeLayout(u);z.checkOverlap=!0;d.prompt(mxResources.get("spacing"), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Editor.createRoughCanvas=function(k){var y=rough.canvas({getContext:function(){return k}});y.draw=function(G){var P=G.sets||[];G=G.options||this.getDefaultOptions();for(var Q=0;Q<P.length;Q++){var U=P[Q];switch(U.type){case "path":null!=G.stroke&&this._drawToContext(k,U,G);break;case "fillPath":this._drawToContext(k,U,G);break;case "fillSketch":this.fillSketch(k,U,G)}}};y.fillSketch=function(G,P,Q){var U=k.state.strokeColor,T=k.state.strokeWidth,W=k.state.strokeAlpha,X=k.state.dashed,Y=Q.fillWeight; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
y,G,P){for(var Q=0;Q<P;Q++)k=Editor.crcTable[(k^y.charCodeAt(G+Q))&255]^k>>>8;return k};Editor.crc32=function(k){for(var y=-1,G=0;G<k.length;G++)y=y>>>8^Editor.crcTable[(y^k.charCodeAt(G))&255];return(y^-1)>>>0};Editor.writeGraphModelToPng=function(k,y,G,P,Q){function U(Z,ca){var ha=X;X+=ca;return Z.substring(ha,X)}function T(Z){Z=U(Z,4);return Z.charCodeAt(3)+(Z.charCodeAt(2)<<8)+(Z.charCodeAt(1)<<16)+(Z.charCodeAt(0)<<24)}function W(Z){return String.fromCharCode(Z>>24&255,Z>>16&255,Z>>8&255,Z&255)}
k=k.substring(k.indexOf(",")+1);k=window.atob?atob(k):Base64.decode(k,!0);var X=0;if(U(k,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=Q&&Q();else if(U(k,4),"IHDR"!=U(k,4))null!=Q&&Q();else{U(k,17);Q=k.substring(0,X);do{var Y=T(k);if("IDAT"==U(k,4)){Q=k.substring(0,X-8);"pHYs"==y&&"dpi"==G?(G=Math.round(P/.0254),G=W(G)+W(G)+String.fromCharCode(1)):G=G+String.fromCharCode(0)+("zTXt"==y?String.fromCharCode(0):"")+P;P=4294967295;P=Editor.updateCRC(P,y,0,4);P=Editor.updateCRC(P,
G,0,G.length);Q+=W(G.length)+y+G+W(P^4294967295);Q+=k.substring(X-8,k.length);break}Q+=k.substring(X-8,X-4+Y);U(k,Y);U(k,4)}while(Y);return"data:image/png;base64,"+(window.btoa?btoa(Q):Base64.encode(Q,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var F=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(k,y){F.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var L=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 |
return y};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var k=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(k.ownerDocument)).decode(k)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var B=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,y,G,P,Q,U,T,W,X,Y,Z,ca,ha,na){var ea=null,za=null,Ca=null;ca||null==this.themes||"darkTheme"!=this.defaultThemeName||(ea=this.stylesheet,za=this.shapeForegroundColor, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Na.dx||null!=Na.dy)Ya.geometry.offset=new mxPoint(null!=Na.dx?Na.dx:0,null!=Na.dy?Na.dy:0);Ra.insert(Ya)}Ua.push(Ra);mxUtils.remove(Fa.invert?Ma:Pa,Va)}}}});aa(pa,pa,ia);if(null!=x[pa.id])for(Ea=0;Ea<x[pa.id].length;Ea++)aa(pa,x[pa.id][Ea],ia)}}if(null!=Ba)for(ka=0;ka<q.length;ka++)for(pa=q[ka],Ea=0;Ea<Ba.length;Ea++)I.setAttributeForCell(pa,mxUtils.trim(Ba[Ea]),null);if(0<t.length){var la=new mxParallelEdgeLayout(I);la.spacing=U;la.checkOverlap=!0;var ma=function(){0<la.spacing&&la.execute(I.getDefaultParent());
for(var Ma=0;Ma<t.length;Ma++){var ra=I.getCellGeometry(t[Ma]);ra.x=Math.round(I.snap(ra.x));ra.y=Math.round(I.snap(ra.y));"auto"==k&&(ra.width=Math.round(I.snap(ra.width)));"auto"==y&&(ra.height=Math.round(I.snap(ra.height)))}};if("["==ea.charAt(0)){var oa=Y;I.view.validate();this.executeLayouts(I.createLayouts(JSON.parse(ea)),function(){ma();oa()});Y=null}else if("circle"==ea){var fa=new mxCircleLayout(I);fa.disableEdgeStyle=!1;fa.resetEdges=!1;var ja=fa.isVertexIgnored;fa.isVertexIgnored=function(Ma){return ja.apply(this, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=function(k,y,G){if(null!=y){var P=function(U){if(null!=U)if(G)for(var T=0;T<U.length;T++)y[U[T].name]=U[T];else for(var W in y){var X=!1;for(T=0;T<U.length;T++)if(U[T].name==W&&U[T].type==y[W].type){X=!0;break}X||delete y[W]}},Q=this.editorUi.editor.graph.view.getState(k);
null!=Q&&null!=Q.shape&&(Q.shape.commonCustomPropAdded||(Q.shape.commonCustomPropAdded=!0,Q.shape.customProperties=Q.shape.customProperties||[],Q.cell.vertex?Array.prototype.push.apply(Q.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(Q.shape.customProperties,Editor.commonEdgeProperties)),P(Q.shape.customProperties));k=k.getAttribute("customProperties");if(null!=k)try{P(JSON.parse(k))}catch(U){}}};var J=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"-rev_"+this.ui.hashValue(F):"")+(null!=p?"-latest_"+p:"")+(null!=g?"-latestRev_"+this.ui.hashValue(g.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+J,action:u,label:"user_"+R+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+f.length+"-size_"+this.getSize()})}catch(t){}}),b)}}catch(g){}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxUtils.bind(this,function(Na){P=b.sidebar.currentElt==ra}),null,null),mxEvent.addListener(fa,"click",mxUtils.bind(this,function(Na){P||Ma(Na,null!=ma?ma:oa);mxEvent.consume(Na)})));da.appendChild(ra);return ra}function l(){function aa(ra,Fa){ra=mxResources.get(ra,null,ra.substring(0,1).toUpperCase()+ra.substring(1));18<ra.length&&(ra=ra.substring(0,18)+"…");return ra+(null!=Fa?" ("+Fa.length+")":"")}function la(ra,Fa,Ka){mxEvent.addListener(Fa,"click",function(){Ia!=Fa&&(Ia.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 |
"FONT"==k[y].nodeName?k[y].getAttribute("face"):k[y].style.fontFamily;null!=P&&Graph.addFont(P,G)}}};Graph.processFontStyle=function(k){if(null!=k){var y=mxUtils.getValue(k,"fontSource",null);if(null!=y){var G=mxUtils.getValue(k,mxConstants.STYLE_FONTFAMILY,null);null!=G&&Graph.addFont(G,decodeURIComponent(y))}}return k};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
c,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.saveScrollState=function(){var c=this.editor.graph.view.translate,e=mxUtils.getOffset(this.diagramContainer),g=this.diagramContainer.scrollLeft-e.x;e=this.diagramContainer.scrollTop-e.y;null!=this.embedViewport&&(Editor.inlineFullscreen?(g-=this.embedViewport.x,e-=this.embedViewport.y):(g+=this.embedViewport.x,e+=this.embedViewport.y));return{x:g,y:e,tx:c.x,ty:c.y}};EditorUi.prototype.restoreScrollState= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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==ma&&(fa=oa.indexOf("/"),ma=oa.substring(0,fa),null==la)){var ja=oa.indexOf("/",fa+1);-1<ja&&(la=oa.substring(fa+1,ja))}fa=Ea[ma];null==fa&&(Sa++,fa=[],Ea[ma]=fa);oa=ia.getAttribute("clibs");null!=aa[oa]&&(oa=aa[oa]);oa={url:ia.getAttribute("url"),libs:ia.getAttribute("libs"),title:ia.getAttribute("title")||ia.getAttribute("name"),preview:ia.getAttribute("preview"),clibs:oa,tags:ia.getAttribute("tags")};fa.push(oa);null!=la&&(fa=Da[ma],null==fa&&(fa={},Da[ma]=fa),ma=fa[la],null==ma&&(ma=[],
fa[la]=ma),ma.push(oa))}ia=ia.nextSibling}l(Ea,Ta,Ha)}})}function z(ia){E&&(Ba.scrollTop=0,ea.innerText="",Qa.spin(ea),k=!1,V=!0,za.innerText=mxResources.get("recentDiag"),Z=null,E(Va,function(){g(mxResources.get("cannotLoad"));Va([])},ia?null:v))}function C(ia){if(""==ia)null!=G&&(G.click(),G=null);else{if(null==TemplatesDialog.tagsList[d]){var aa={};for(La in Ea)for(var la=Ea[La],ma=0;ma<la.length;ma++){var oa=la[ma];if(null!=oa.tags)for(var fa=oa.tags.toLowerCase().split(";"),ja=0;ja<fa.length;ja++)null== | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}c.actions.get("print").funct=function(){c.showDialog((new PrintDialog(c)).container,360,null!=c.pages&&1<c.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var S=e.getExportVariables;e.getExportVariables=function(){var K=S.apply(this,arguments),O=c.getCurrentFile();null!=O&&(K.filename=O.getTitle()); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var f=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=f){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var m=mxFreehand.prototype.NORMAL_SMOOTHING,d=null,u=[],v,E=[],F,L=!1,N=!0,H=!0,R=!0,J=!0,c=[],e=!1,g=!1,q=!1,p={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},t=!0;this.setClosedPath=function(z){L=z};this.setAutoClose=function(z){N=z};this.setAutoInsert= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
d,J,v,E),N&&!H?J.y=g.y:H&&!N&&(J.x=g.x),g.y!=J.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),g.x!=J.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),J;S(!0,!0);return b.apply(this,arguments)};var f=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(d){f.call(this,d);var u=this.guidesArrVer,v=this.guidesArrHor;if(null!=u)for(var E=0;E<u.length;E++)u[E].node.style.visibility=d?"visible":"hidden";if(null!=
v)for(E=0;E<v.length;E++)v[E].node.style.visibility=d?"visible":"hidden"};var m=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){m.call(this);var d=this.guidesArrVer,u=this.guidesArrHor;if(null!=d){for(var v=0;v<d.length;v++)d[v].destroy();this.guidesArrVer=null}if(null!=u){for(v=0;v<u.length;v++)u[v].destroy();this.guidesArrHor=null}}})();function mxRuler(b,f,m,d){function u(){var x=b.diagramContainer;R.style.top=x.offsetTop-L+"px";R.style.left=x.offsetLeft-L+"px";R.style.width=(m?0:x.offsetWidth)+L+"px";R.style.height=(m?x.offsetHeight:0)+L+"px"}function v(x,B,I){if(null!=E)return x;var A;return function(){var S=this,l=arguments,n=I&&!A;clearTimeout(A);A=setTimeout(function(){A=null;I||x.apply(S,l)},B);n&&x.apply(S,l)}}var E=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
P));var Q=document.createElement("link");Q.setAttribute("rel","preload");Q.setAttribute("href",P);Q.setAttribute("as","font");Q.setAttribute("crossorigin","");y.parentNode.insertBefore(Q,y)}}}};Editor.trimCssUrl=function(k){return k.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(k){k= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
!this.isCorsEnabledForUrl(k)){var y=/(\.v(dx|sdx?))($|\?)/i.test(k)||/(\.vs(x|sx?))($|\?)/i.test(k);y=/\.png$/i.test(k)||/\.pdf$/i.test(k)||y;var G="t="+(new Date).getTime();k=PROXY_URL+"?url="+encodeURIComponent(k)+"&"+G+(y?"&base64=1":"")}return k};Editor.prototype.isCorsEnabledForUrl=function(k){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||k.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));
return null!=this.corsRegExp&&this.corsRegExp.test(k)||"https://raw.githubusercontent.com/"===k.substring(0,34)||"https://fonts.googleapis.com/"===k.substring(0,29)||"https://fonts.gstatic.com/"===k.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var k=new mxUrlConverter;k.updateBaseUrl();var y=k.convert,G=this;k.convert=function(P){if(null!=P){var Q="http://"==P.substring(0,7)||"https://"==P.substring(0,8);Q&&!navigator.onLine?P=Editor.svgBrokenImage.src:!Q||P.substring(0,k.baseUrl.length)== | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
X.toString());G()})})["catch"](function(X){console.log("Error in MathJax.retry: "+X.toString());G()})):null!=window.console&&console.log("Error in MathJax.typeset: "+W.toString())}};window.MathJax=null!=y?y:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var T=0;T<Editor.mathJaxQueue.length;T++)Editor.doMathJaxRender(Editor.mathJaxQueue[T])}}};Editor.MathJaxRender= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
var V=this.click;this.click=function(K){var U=null==K.state&&null!=K.sourceState&&this.isCellLocked(this.getLayerForCell(K.sourceState.cell));if(this.isEnabled()&&!U||K.isConsumed())return V.apply(this,arguments);U=U?K.sourceState.cell:K.getCell();null!=U&&(U=this.getClickableLinkForCell(U),null!=U&&(this.isCustomLink(U)?this.customLinkClicked(U):this.openLink(U)))};this.tooltipHandler.getStateForEvent=function(K){return K.sourceState};var aa=this.tooltipHandler.show;this.tooltipHandler.show=function(){aa.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 |
(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresponse:",S,"\nresult:",l),this.spinner.stop(),e(l,n,z,C))}),B)}),B,mxUtils.bind(this,function(n){3>q++?t.clear()&&(this.spinner.stop(),p()):B(n)}))}),B);else{var A={message:mxResources.get("error")+" "+I.getStatus()};try{A=JSON.parse(I.getText()),A=A.error}catch(S){}B(A)}}),B)}),g)});p()};EditorUi.prototype.extractMermaidMindmap=function(c){for(0<c[1].indexOf("orientation")&&c.splice(1,1);1<c.length&&""==c[1];)c.splice(1,1);
for(var e=[],g=2;g<c.length;g++){var q=mxUtils.trim(c[g]);"["!=q&&"]"!=q&&"%%"!=q.substring(0,2)&&"##"!=q.substring(0,2)&&(q=c[g].replace(/[-|>]/g," "),""!=mxUtils.trim(q)&&" "==q.charAt(0)&&e.push(q))}return"mindmap\nroot(("+mxUtils.trim(c[1])+"))\n"+e.join("\n")};EditorUi.prototype.extractMermaidDeclaration=function(c){"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var e=c.split("```");e=1<e.length?e:c.split("<pre>");e=1<e.length?e:c.split("~~~");e=1<e.length?e:c.split("%%");e=1<e.length?e:c.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 |
z[K]&&(z[K]=(z[K]||0)+1,n++),C.push(M))}u.setCellStyles(mxConstants.STYLE_IMAGE,null,C);console.log("Removed",n,"image(s) from",C.length,"cell(s): ",[C,z])}finally{u.model.endUpdate()}}));d.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(d,u.getModel())}));d.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var l=new mxImageExport,n=u.getGraphBounds(),z=u.view.scale,C=mxUtils.createXmlDocument(),D=C.createElement("output");C.appendChild(D);C=new mxXmlCanvas2D(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 |
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=U.setStrokeColor;U.setStrokeColor=function(){};var ha=U.setFillColor;U.setFillColor=function(){};W||null==X||(this.configurePointerEvents=function(){});U.handJiggle.passThrough=!0;P.apply(this,arguments);U.handJiggle.passThrough=!1;U.setFillColor=ha;U.setStrokeColor=ca;this.configurePointerEvents=Z;this.stroke=Y;this.fill=X;U.restore();W&&null!=X&&(U.addTolerance=function(){})}P.apply(this,arguments);U.addTolerance= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(c.innerHTML="Error loading page. <a>Please try refreshing.</a>",c.getElementsByTagName("a")[0].onclick=function(){mxLanguage="en";d(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,mxLanguage))})})};if(!App.isMainCalled)if(App.isMainCalled=!0,window.onerror=function(J,c,e,g,q){EditorUi.logError("Global: "+(null!=J?J:""),c,e,g,q,null,!0);null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug("Message:",J,"\nURL:",c,"\nLine:",e,"\nColumn:", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.setBackgroundImage;var H=this.pages[0];this.currentPage==H?E.setBackgroundImage(F):null!=H.viewState&&null!=H.viewState&&(F=H.viewState.backgroundImage,E.setBackgroundImage(F));E.getGlobalVariable=function(l){return"page"==l?H.getName():"pagenumber"==l?1:N.apply(this,arguments)};E.getGlobalVariable=N;document.body.appendChild(E.container);E.model.setRoot(H.root)}if(mxClient.IS_CHROMEAPP||this.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(l){try{E!=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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.