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
d.appendChild(f));D.appendChild(d);D.appendChild(g);this.container=D},FindWindow=function(b,e,f,c,k,l){function x(R,m,A,M){if("object"===typeof m.value&&null!=m.value.attributes){m=m.value.attributes;for(var Q=0;Q<m.length;Q++)if("label"!=m[Q].nodeName){var U=mxUtils.trim(m[Q].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==R&&(M&&0<=U.indexOf(A)||!M&&U.substring(0,A.length)===A)||null!=R&&R.test(U))return!0}}return!1}function y(){d?(O.removeAttribute("disabled"),S.removeAttribute("disabled")):
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
g;u.onerror=n;for(var v=0;v<t.length;v++)u.objectStore(t[v]).delete(d[v])}),n)};EditorUi.prototype.getDatabaseItem=function(d,g,n,t){this.openDatabase(mxUtils.bind(this,function(u){try{t=t||"objects";var v=u.transaction([t],"readonly").objectStore(t).get(d);v.onsuccess=function(){g(v.result)};v.onerror=n}catch(B){null!=n&&n(B)}}),n)};EditorUi.prototype.getDatabaseItems=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(t){try{n=n||"objects";var u=t.transaction([n],"readonly").objectStore(n).openCursor(IDBKeyRange.lowerBound(0)), v=[];u.onsuccess=function(B){null==B.target.result?d(v):(v.push(B.target.result.value),B.target.result.continue())};u.onerror=g}catch(B){null!=g&&g(B)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(t){try{n=n||"objects";var u=t.transaction([n],"readonly").objectStore(n).getAllKeys();u.onsuccess=function(){d(u.result)};u.onerror=g}catch(v){null!=g&&g(v)}}),g)};EditorUi.prototype.commentsSupported=function(){var d=this.getCurrentFile();return null!=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
typeof window.mxUtilsBinaryToArray){Z=mxUtilsBinaryToArray(Z.request.responseBody).toArray();da=Array(Z.length);for(var ba=0;ba<Z.length;ba++)da[ba]=String.fromCharCode(Z[ba]);da=da.join("")}W=null!=W?W:"data:image/png;base64,";da=W+Editor.base64Encode(da)}A(da)}}else null!=M&&(0==Z.getStatus()?M({message:mxResources.get("accessDenied")},Z):404==Z.getStatus()?M({code:Z.getStatus()},Z):M({message:mxResources.get("error")+" "+Z.getStatus()},Z))}),function(Z){null!=M&&M({message:mxResources.get("error")+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
{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(m,A,M){if(null!=A){var Q=function(W){if(null!=W)if(M)for(var P=0;P<W.length;P++)A[W[P].name]=W[P];else for(var V in A){var X=!1;for(P=0;P<W.length;P++)if(W[P].name==V&&W[P].type==A[V].type){X=!0;break}X||delete A[V]}},U=this.editorUi.editor.graph.view.getState(m);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
DriveComment.prototype.deleteComment=function(b,e){this.file.ui.drive.executeRequest(this.pCommentId?{url:"/files/"+this.file.getId()+"/comments/"+this.pCommentId+"/replies/"+this.id,method:"DELETE"}:{url:"/files/"+this.file.getId()+"/comments/"+this.id,method:"DELETE"},b,e)};function mxODPicker(b,e,f,c,k,l,x,y,E,D,z,N,I,d){function g(P,V){V=V||document;return V.querySelector(P)}function n(P,V,X){if(null==P["@microsoft.graph.downloadUrl"])if(null==P.parentReference)X();else{c(P.id,P.parentReference.driveId,function(da){n(da,V,X)},X);return}var Y=new XMLHttpRequest;Y.open("GET",P["@microsoft.graph.downloadUrl"]);var Z=P.file?"image/png"==P.file.mimeType:!1;Y.onreadystatechange=function(){if(4==this.readyState){if(200<=this.status&&299>=this.status)try{var da=Y.responseText;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(m,A,M){var Q=mxClient.IS_FF?8192:16384;return Math.min(M,Math.min(Q/m,Q/A))};Editor.prototype.exportToCanvas=function(m,A,M,Q,U,W,P,V,X,Y,Z,da,ba,ma,ea,za,Ba,Ca){try{W=null!=W?W:!0;P=null!=P?P:!0;da=null!=da?da:this.graph;ba=null!=ba?ba:0;var ca=X?null:da.background;ca==mxConstants.NONE&&(ca=null);null==ca&&(ca=Q);null==ca&&0==X&&(ca=za?this.graph.defaultPageBackgroundColor:
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
arguments))};var t=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(m,A,M,Q,U,W,P,V,X,Y,Z){t.apply(this,arguments);Graph.processFontAttributes(Z)};var u=mxText.prototype.redraw;mxText.prototype.redraw=function(){u.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(m,A,M){function Q(){for(var ea=P.getSelectionCells(),za=[],Ba=0;Ba<ea.length;Ba++)P.isCellVisible(ea[Ba])&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ColorDialog.resetRecentColors=function(){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(m,A){var M=null;null!=m.editor.graph.getModel().getParent(A)?M=A.getId():null!=m.currentPage&&(M=m.currentPage.getId());return M});if(null!=window.StyleFormatPanel){var D=Format.prototype.init;Format.prototype.init=function(){D.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.debug("P2PCollab:","sendReply error",arguments,m)}});this.sendMessage=c;this.sendDiff=function(K){this.sendMessage("diff",{diff:K})};this.getState=function(){return null!=I?I.readyState:3};this.getLastError=function(){return O};this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(K,R){},mouseMove:function(K,R){var m,A=-1;return function(){clearTimeout(m);var M=this,Q=arguments,U=function(){m=null;A=Date.now();K.apply(M,Q)};Date.now()-A>R?U():m=setTimeout(U,R)}}(function(K, R){k(R)},300),mouseUp:function(K,R){k(R)}};z.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||c("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);this.selectionChangeListener=function(K,R){K=function(M){return null!=M?M.id:null};var m=null!=b.currentPage?b.currentPage.getId():null,A=R.getProperty("added");R=R.getProperty("removed");c("selectionChange",{pageId:m,removed:A?A.map(K):[],added:R?
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(d,g,n){var t=0;if(null!=d&&"object"===typeof d&&"number"===typeof d.nodeType&&"string"===typeof d.nodeName&&"function"===typeof d.getAttribute){null!=d.nodeName&&(t^=this.hashValue(d.nodeName,g,n));if(null!=d.attributes){null!=n&&(n.attrCount+=d.attributes.length);for(var u=0;u<d.attributes.length;u++){var v=d.attributes[u].name,B=null!=g?g(d,v,d.attributes[u].value,!0):d.attributes[u].value;null!=B&&(t^=this.hashValue(v,g,n)+this.hashValue(B,g,n))}}if(null!=d.childNodes)for(u=0;u<d.childNodes.length;u++)t= (t<<5)-t+this.hashValue(d.childNodes[u],g,n)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=n&&(n.byteCount+=d.length);for(u=0;u<d.length;u++)g=(g<<5)-g+d.charCodeAt(u)<<0;t^=g}return t};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,g,n,t,u,v,B){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(X){f.saveLevel=7;try{if(null!=X&&X.etag==R)if(N<this.staleEtagMaxRetries){N++;var Y=Math.round(2*N*this.coolOff*(1+.1*(Math.random()-.5)));window.setTimeout(A,Y);"1"==urlParams.test&&EditorUi.debug("DriveClient: Stale Etag Detected","retry",N,"delay",Y)}else{A(!0);try{EditorUi.logEvent({category:"STALE-ETAG-SAVE-FILE-"+f.getHash(),action:"rev_"+f.desc.headRevisionId+"-mod_"+f.desc.modifiedDate+"-size_"+f.getSize()+"-mime_"+f.desc.mimeType+(this.ui.editor.autosave?"":"-nosave")+(f.isAutosave()? "":"-noauto")+(f.changeListenerEnabled?"":"-nolisten")+(f.inConflictState?"-conflict":"")+(f.invalidChecksum?"-invalid":""),label:(null!=this.user?"user_"+this.user.id:"nouser")+(null!=f.sync?"-client_"+f.sync.clientId:"-nosync")})}catch(Z){}}else"1"==urlParams.test&&X.headRevisionId==u&&EditorUi.debug("DriveClient: Remote Etag Changed","local",R,"remote",X.etag,"rev",f.desc.headRevisionId,"response",[X],"file",[f]),I(V,X)}catch(Z){d(Z)}}),mxUtils.bind(this,function(){I(V)})):I(V)}catch(X){d(X)}}}))}catch(V){d(V)}}),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Editor.isDarkMode()?{outBkgClr:Editor.darkColor,cornerClr:Editor.darkColor,strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#e8e9ed",cornerClr:"#fbfbfb",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};N.style[f?"borderRight":"borderBottom"]="0.5px solid "+z.strokeClr;N.style.borderLeft="0.5px solid "+z.strokeClr});this.updateStyle();b.diagramContainer.appendChild(N);mxEvent.disableContextMenu(N);this.editorUiRefresh=b.refresh;b.refresh=function(B){D.editorUiRefresh.apply(b, arguments);k()};k();var I=document.createElement("canvas");I.width=N.offsetWidth;I.height=N.offsetHeight;N.style.overflow="hidden";I.style.position="relative";N.appendChild(I);var d=I.getContext("2d");this.ui=b;var g=b.editor.graph;this.graph=g;this.container=N;this.canvas=I;var n=function(B,H,L,G,T){B=Math.round(B);H=Math.round(H);L=Math.round(L);G=Math.round(G);d.beginPath();d.moveTo(B+.5,H+.5);d.lineTo(L+.5,G+.5);d.stroke();T&&(f?(d.save(),d.translate(B,H),d.rotate(-Math.PI/2),d.fillText(T,0,0),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(q){v=null!=v?v:"pdf"==g?"application/pdf":"image/"+g;if(null!=t)try{this.exportFile(t,G,v,!0,T,q)}catch(C){this.handleError(C)}else this.spinner.spin(document.body,mxResources.get("saving"))&&p.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=p.getStatus()&&299>=p.getStatus())try{this.exportFile(p.getText(),G,v,!0,T,q)}catch(C){this.handleError(C)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(C){this.spinner.stop();this.handleError(C)}))})))}}),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
E;this.okButton=k;this.container=I},TemplatesDialog=function(b,e,f,c,k,l,x,y,E,D,z,N,I,d,g){function n(ja){ta.innerText=ja;ta.style.display="block";setTimeout(function(){ta.style.display="none"},4E3)}function t(){null!=A&&(A.style.fontWeight="normal",A.style.textDecoration="none",M=A,A=null)}function u(ja,aa,la,na,pa,ha,ka){if(-1<ja.className.indexOf("geTempDlgRadioBtnActive"))return!1;ja.className+=" geTempDlgRadioBtnActive";K.querySelector(".geTempDlgRadioBtn[data-id="+na+"]").className="geTempDlgRadioBtn "+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(m){if(null!=m){Editor.prototype.fontCss=m;var A=document.getElementsByTagName("script")[0];if(null!=A&&null!=A.parentNode){var M=document.createElement("style");M.setAttribute("type","text/css");M.appendChild(document.createTextNode(m));A.parentNode.insertBefore(M,A);m=m.split("url(");for(M=1;M<m.length;M++){var Q=m[M].indexOf(")");Q=Editor.trimCssUrl(m[M].substring(0, Q));var U=document.createElement("link");U.setAttribute("rel","preload");U.setAttribute("href",Q);U.setAttribute("as","font");U.setAttribute("crossorigin","");A.parentNode.insertBefore(U,A)}}}};Editor.trimCssUrl=function(m){return m.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(m){m=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
A[M].url)}catch(U){console.log("ExtFonts format error: "+U.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var e=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(m,A){m=null!=m?m:!0;var M=e.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&M.setAttribute("style",
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
d.nodeName&&(B=d.hasAttribute("max-scale")?parseFloat(d.getAttribute("max-scale")):1);d=d.nextSibling}}finally{v.endUpdate()}null!=B&&this.chromelessResize&&this.chromelessResize(!0,B)}return n};EditorUi.prototype.getCopyFilename=function(d,g){var n=null!=d&&null!=d.getTitle()?d.getTitle():this.defaultFilename;d="";var t=n.lastIndexOf(".");0<=t&&(d=n.substring(t),n=n.substring(0,t));if(g){g=n;var u=new Date;n=u.getFullYear();t=u.getMonth()+1;var v=u.getDate(),B=u.getHours(),H=u.getMinutes();u=u.getSeconds();
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
urlParams["remote-selection"]){var P=null!=b.currentPage?b.currentPage.getId():null;if(null==P||null!=W.pageId&&W.pageId==P){m();for(m=0;m<W.removed.length;m++){var V=W.removed[m];if(null!=V){var X=U[V];delete U[V];null!=X&&X.destroy()}}for(m=0;m<W.added.length;m++)if(V=W.added[m],null!=V){var Y=z.model.getCell(V);null!=Y&&(U[V]=z.highlightCell(Y,g[M].color,6E4,70,3))}}}}e.file.fireEvent(new mxEventObject("realtimeMessage","message",K))}}catch(Z){null!=window.console&&console.warn(Z,K,R)}}function y(K, R){if(!C&&SimplePeer.WEBRTC_SUPPORT){var m=new SimplePeer({initiator:R,config:{iceServers:[{urls:"stun:54.89.235.160:3478"}]}});m.on("signal",function(A){S("sendSignal",{to:K,from:H,signal:A})});m.on("error",function(A){delete L[K];EditorUi.debug("P2PCollab: p2p socket error",A);!q&&R&&m.destroyed&&v[K]&&(EditorUi.debug("P2PCollab: p2p socket reconnecting",K),y(K,!0))});m.on("connect",function(){delete L[K];null==G[K]||G[K].destroyed?(G[K]=m,v[K]=!0,EditorUi.debug("P2PCollab: p2p socket connected", K)):(m.noP2PMapDel=!0,m.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",K))});m.on("close",function(){m.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",K),D(u[K]),delete G[K])});m.on("data",x);return L[K]=m}}function E(K,R){D(R||u[K]);null!=K&&(delete u[K],v[K]=!1)}function D(K){var R=g[K];if(null!=R){var m=R.selection,A;for(A in m)null!=m[A]&&m[A].destroy();null!=R.cursor&&null!=R.cursor.parentNode&&R.cursor.parentNode.removeChild(R.cursor);clearTimeout(R.inactiveTO);delete g[K]}}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,W,P,V,X),this.lastX=V,this.lastY=X)};m.prototype.curveTo=function(W,P,V,X,Y,Z){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,W,P,V,X,Y,Z),this.lastX=Y,this.lastY=Z)};m.prototype.arcTo=function(W,P,V,X,Y,Z,da){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var ba=mxUtils.arcToCurves(this.lastX,this.lastY,W,P,V,X,Y,Z,da);if(null!=ba)for(var ma=0;ma<ba.length;ma+=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.graphHandler.start=function(K,U,L,O){var X=!1;this.graph.isTableCell(K)&&(this.graph.isCellSelected(K)?X=!0:K=this.graph.model.getParent(K));X||this.graph.isTableRow(K)&&this.graph.isCellSelected(K)||(K=this.graph.getCompositeParent(K));C.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(K,U){U=this.graph.getCompositeParent(U);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(K,U,L,O,X,W){var J=mxConnectionHandler.prototype.insertEdge.apply(this,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
window.console&&console.error(M,K,R)}}function k(K){if(b.shareCursorPosition&&!z.isMouseDown){var R=mxUtils.getOffset(z.container),m=z.view.translate,A=z.view.scale,M=null!=b.currentPage?b.currentPage.getId():null;c("cursor",{pageId:M,x:Math.round((K.getX()-R.x+z.container.scrollLeft)/A-m.x),y:Math.round((K.getY()-R.y+z.container.scrollTop)/A-m.y)})}}function l(K,R){var m=null!=b.currentPage?b.currentPage.getId():null;if(null!=K&&null!=K.cursor&&null!=K.lastCursor)if(null!=K.lastCursor.hide||!b.isShowRemoteCursors()||
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"120px",z.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",z.style.backgroundPosition="center 65%",z.style.backgroundRepeat="no-repeat",x=document.createElement("div"),x.style.position="absolute",x.style.width="420px",x.style.top="58%",x.style.textAlign="center",x.style.fontSize="18px",x.style.color="#a0c3ff",mxUtils.write(x,mxResources.get("dragImagesHere")),z.appendChild(x));z.appendChild(y);this.container=z},LinkDialog=function(b,e,f,c,k,l,x){function y(B,H,L){L=mxUtils.button("",L); L.className="geBtn";L.setAttribute("title",H);H=document.createElement("img");H.style.height="26px";H.style.width="26px";H.setAttribute("src",B);L.style.minWidth="42px";L.style.verticalAlign="middle";L.appendChild(H);v.appendChild(L)}var E=document.createElement("div");E.style.height="100%";mxUtils.write(E,mxResources.get("editLink")+":");var D=document.createElement("div");D.className="geTitle";D.style.backgroundColor="transparent";D.style.borderColor="transparent";D.style.whiteSpace="nowrap";D.style.textOverflow=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
A,M,Q){for(var U=0;U<Q;U++)m=Editor.crcTable[(m^A.charCodeAt(M+U))&255]^m>>>8;return m};Editor.crc32=function(m){for(var A=-1,M=0;M<m.length;M++)A=A>>>8^Editor.crcTable[(A^m.charCodeAt(M))&255];return(A^-1)>>>0};Editor.writeGraphModelToPng=function(m,A,M,Q,U){function W(Z,da){var ba=X;X+=da;return Z.substring(ba,X)}function P(Z){Z=W(Z,4);return Z.charCodeAt(3)+(Z.charCodeAt(2)<<8)+(Z.charCodeAt(1)<<16)+(Z.charCodeAt(0)<<24)}function V(Z){return String.fromCharCode(Z>>24&255,Z>>16&255,Z>>8&255,Z&255)}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxStencilRegistry.getStencil(Z)}return F.apply(this,arguments)};var O=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(m,A,M,Q,U,W){"1"==mxUtils.getValue(A.style,"lineShape",null)&&m.setFillColor(mxUtils.getValue(A.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return O.apply(this,arguments)};PrintDialog.prototype.create=function(m,A){function M(){ba.value=Math.max(1,Math.min(V,Math.max(parseInt(ba.value),parseInt(da.value))));da.value=Math.max(1,Math.min(V,Math.min(parseInt(ba.value),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(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 B=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(K){K=null!=K?K:"";"1"==urlParams.dev&&(K+=(0<K.length?"&":"?")+"dev=1");return B.apply(this,arguments)};var H=g.addClickHandler;g.addClickHandler=function(K,R,m){var A=R;R=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.editor.setStatus(""),d?g.reloadFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(n){g.handleFileError(n,!0)})):g.synchronizeFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(n){g.handleFileError(n,!0)}))))};EditorUi.prototype.getFileData=function(d,g,n,t,u,v,B,H,L,G,T){u=null!=u?u:!0;v=null!=v?v:!1;G=null!=G?G:!Editor.defaultCompressed;var p=this.editor.graph;if(g||!d&&null!= L&&/(\.svg)$/i.test(L.getTitle())){var q=null!=p.themes&&"darkTheme"==p.defaultThemeName;if(q||null!=this.pages&&this.currentPage!=this.pages[0]){var C=p.getGlobalVariable;p=this.createTemporaryGraph(q?p.getDefaultStylesheet():p.getStylesheet());p.setBackgroundImage=this.editor.graph.setBackgroundImage;p.background=this.editor.graph.background;var J=null!=this.pages?this.pages[0]:null;null==J||this.currentPage==J?p.setBackgroundImage(this.editor.graph.backgroundImage):null!=J.viewState&&null!=J.viewState&& p.setBackgroundImage(J.viewState.backgroundImage);p.getGlobalVariable=function(F){return"page"==F&&null!=J?J.getName():"pagenumber"==F?1:C.apply(this,arguments)};document.body.appendChild(p.container);null!=J&&p.model.setRoot(J.root)}}B=null!=B?B:this.getXmlFileData(u,v,G,T);L=null!=L?L:this.getCurrentFile();d=this.createFileData(B,p,L,window.location.href,d,g,n,t,u,H,G);p!=this.editor.graph&&p.container.parentNode.removeChild(p.container);return d};EditorUi.prototype.getHtml=function(d,g,n,t,u,v){v=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"hidden";ma.style.bottom="0px";ma.style.height="42px";ma.style.right="10px";ma.style.left="10px";P.isEnabled()&&(ma.appendChild(Z),ma.appendChild(da),X.appendChild(ma));return{div:X,refresh:ba}};Graph.prototype.getCustomFonts=function(){var m=this.extFonts;m=null!=m?m.slice():[];for(var A in Graph.customFontElements){var M=Graph.customFontElements[A];m.push({name:M.name,url:M.url})}return m};Graph.prototype.setFont=function(m,A){Graph.addFont(m,A);document.execCommand("fontname",!1,m);if(null!=A){var M=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,da=W.setStrokeColor;W.setStrokeColor=function(){};var ba=W.setFillColor;W.setFillColor=function(){};V||null==X||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;Q.apply(this,arguments);W.handJiggle.passThrough=!1;W.setFillColor=ba;W.setStrokeColor=da;this.configurePointerEvents=Z;this.stroke=Y;this.fill=X;W.restore();V&&null!=X&&(W.addTolerance=function(){})}Q.apply(this,arguments);W.addTolerance=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null,B,mxResources.get("cancel"),mxResources.get("discardChanges")):B()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var d={};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)this.updatePageRoot(this.pages[g]),this.addBasenamesForCell(this.pages[g].root,d);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),d);g=[];for(var n in d)g.push(n);return g};EditorUi.prototype.addBasenamesForCell=function(d,g){function n(B){if(null!= B){var H=B.lastIndexOf(".");0<H&&(B=B.substring(H+1,B.length));null==g[B]&&(g[B]=!0)}}var t=this.editor.graph,u=t.getCellStyle(d);n(mxStencilRegistry.getBasenameForStencil(u[mxConstants.STYLE_SHAPE]));t.model.isEdge(d)&&(n(mxMarker.getPackageForType(u[mxConstants.STYLE_STARTARROW])),n(mxMarker.getPackageForType(u[mxConstants.STYLE_ENDARROW])));u=t.model.getChildCount(d);for(var v=0;v<u;v++)this.addBasenamesForCell(t.model.getChildAt(d,v),g)};EditorUi.prototype.setGraphEnabled=function(d){this.diagramContainer.style.visibility=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(C){z=C};this.setAutoScroll=function(C){N=C};this.setOpenFill=function(C){I=C};this.setStopClickEnabled=function(C){n=C};this.setSelectInserted=function(C){t=C};this.setSmoothing=function(C){f=C};this.setPerfectFreehandMode=function(C){v=C};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=function(C){u.size=C};this.getBrushSize=function(){return u.size};var B=function(C){g=C;b.getRubberband().setEnabled(!C);b.graphHandler.setSelectEnabled(!C);b.graphHandler.setMoveEnabled(!C);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(){return this.openLink("mailto:"+mxUtils.htmlEntities(L.ownerEmail))}));this.showError(g,B,G,n,T,null,null,v,q,null,null,null,t?n:null)}else null!=n&&n()};EditorUi.prototype.alert=function(d,g,n){d=new ErrorDialog(this,null,d,mxResources.get("ok"),g);this.showDialog(d.container,n||340,100,!0,!1);d.init()};EditorUi.prototype.confirm=function(d,g,n,t,u,v){d=null!=d?d:"";var B=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},H=Math.min(220,28*Math.ceil(Math.max(1,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.createImageDataUri(C,J,"png");L(C)}),null,null,null,mxUtils.bind(this,function(C){H({message:mxResources.get("unknownError")})}),null,!0,n?2:1,null,g,null,null,Editor.defaultBorder);else if(g=this.getFileData(!0),G.width*G.height<=MAX_AREA&&g.length<=MAX_REQUEST_SIZE){var p="";n&&(p="&w="+Math.round(2*G.width)+"&h="+Math.round(2*G.height));var q=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(t?"1":"0")+p+"&xml="+encodeURIComponent(g));q.send(mxUtils.bind(this,function(){200<=q.getStatus()&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ha[la]=na),na.push(pa))}ja=ja.nextSibling}p(Ea,Qa,Ga)}})}function C(ja){x&&(Ca.scrollTop=0,ea.innerText="",Ka.spin(ea),m=!1,R=!0,za.innerText=mxResources.get("recentDiag"),Z=null,x(Va,function(){n(mxResources.get("cannotLoad"));Va([])},ja?null:l))}function J(ja){if(""==ja)null!=M&&(M.click(),M=null);else{if(null==TemplatesDialog.tagsList[c]){var aa={};for(Ma in Ea)for(var la=Ea[Ma],na=0;na<la.length;na++){var pa=la[na];if(null!=pa.tags)for(var ha=pa.tags.toLowerCase().split(";"),ka=0;ka<ha.length;ka++)null==
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"keys",Da,"values",Qa,"cells",da.getSelectionCells()))}finally{da.getModel().endUpdate()}}function U(oa,sa,va){var Ea=mxUtils.getOffset(m,!0),Da=mxUtils.getOffset(oa,!0);sa.style.position="absolute";sa.style.left=Da.x-Ea.x+"px";sa.style.top=Da.y-Ea.y+"px";sa.style.width=oa.offsetWidth+"px";sa.style.height=oa.offsetHeight-(va?4:0)+"px";sa.style.zIndex=5}function W(oa,sa,va){var Ea=document.createElement("div");Ea.style.width="32px";Ea.style.height="4px";Ea.style.margin="2px";Ea.style.border="1px solid black";
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
var da=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(K,U,L){return this.graph.isCellSelected(K)?!1:da.apply(this,arguments)};var ja=this.updateMouseEvent;this.updateMouseEvent=function(K){K=ja.apply(this,arguments);null!=K.state&&this.isCellLocked(this.getLayerForCell(K.getCell()))&&(K.state=null);return K};var ia=this.isCellSelectable;this.isCellSelectable=function(K){return ia.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(K))};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"transform-origin",null);0==u&&t()}),300)}),10)};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var E=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var d=this.formatWindow;return null!=d?d.window.isVisible():E.apply(this,arguments)};var D=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(d){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){d=null!=d?d:!0;if("1"!=urlParams.embedInline){var g=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(C){z=C};this.setAutoScroll=function(C){N=C};this.setOpenFill=function(C){I=C};this.setStopClickEnabled=function(C){n=C};this.setSelectInserted=function(C){t=C};this.setSmoothing=function(C){f=C};this.setPerfectFreehandMode=function(C){v=C};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=function(C){u.size=C};this.getBrushSize=function(){return u.size};var B=function(C){g=C;b.getRubberband().setEnabled(!C);b.graphHandler.setSelectEnabled(!C);b.graphHandler.setMoveEnabled(!C);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
D():F(100);mxEvent.consume(W)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(W){mxEvent.isTouchEvent(W)||F(30)}));var Y=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(W,J){this.startX=J.getGraphX();this.startY=J.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(W,J){},mouseUp:function(W,J){mxEvent.isTouchEvent(J.getEvent())&&Math.abs(this.scrollLeft- a.container.scrollLeft)<Y&&Math.abs(this.scrollTop-a.container.scrollTop)<Y&&Math.abs(this.startX-J.getGraphX())<Y&&Math.abs(this.startY-J.getGraphY())<Y&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?D():F(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var V=a.view.validate,aa=new mxPoint,ba=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=e.currentPage&&ba!=e.currentPage){ba=e.currentPage;var W=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(d,g,n,t,u){this.openDatabase(mxUtils.bind(this,function(v){try{u=u||"objects";Array.isArray(u)||(u=[u],d=[d],g=[g]);var B=v.transaction(u,"readwrite");B.oncomplete=n;B.onerror=t;for(v=0;v<u.length;v++)B.objectStore(u[v]).put(null!=d&&null!=d[v]?{key:d[v],data:g[v]}:g[v])}catch(H){null!=t&&t(H)}}),t)};EditorUi.prototype.removeDatabaseItem=function(d,g,n,t){this.openDatabase(mxUtils.bind(this,function(u){t=t||"objects";Array.isArray(t)||(t=[t],d=[d]);u=u.transaction(t,"readwrite");u.oncomplete=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,function(){x.freehand.isDrawing()&&x.freehand.stopDrawing()}));b.installResizeHandler(this,!1)},TagsWindow=function(b,e,f,c,k){var l=b.editor.graph,x=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),null,function(E,D){if(l.isEnabled()){var z=new FilenameDialog(b,"",mxResources.get("add"),function(N){b.hideDialog();if(null!=N&&0<N.length){N=N.split(" ");for(var I= [],d=0;d<N.length;d++){var g=mxUtils.trim(N[d]);""!=g&&0>mxUtils.indexOf(E,g)&&I.push(g)}0<I.length&&(l.isSelectionEmpty()?D(E.concat(I)):l.addTagsForCells(l.getSelectionCells(),I))}},mxResources.get("enterValue")+" ("+mxResources.get("tags")+")");b.showDialog(z.container,300,80,!0,!0);z.init()}}),y=x.div;this.window=new mxWindow(mxResources.get("tags"),y,e,f,c,k,!0,!0);this.window.minimumSize=new mxRectangle(0,0,212,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0); this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){x.refresh();this.window.fit()}));b.installResizeHandler(this,!0)},AuthDialog=function(b,e,f,c){var k=document.createElement("div");k.style.textAlign="center";var l=document.createElement("p");l.style.fontSize="16pt";l.style.padding="0px";l.style.margin="0px";l.style.color="gray";mxUtils.write(l,mxResources.get("authorizationRequired"));var x="Unknown",y=document.createElement("img");y.setAttribute("border","0");
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(){Trello.get("search",{query:""==mxUtils.trim(c)?"is:open":c,cards_limit:100,cards_page:g-1},mxUtils.bind(this,function(u){this.ui.spinner.stop();u=null!=u?u.cards:null;if(null==u||0==u.length)mxUtils.write(y,mxResources.get("noFiles"));else{1==g&&(y.appendChild(E(mxResources.get("filterCards")+"...",mxUtils.bind(this,function(){var B=new FilenameDialog(this.ui,c,mxResources.get("ok"),mxUtils.bind(this,function(H){null!=H&&(c=H,d())}),mxResources.get("filterCards"),null,null,"http://help.trello.com/article/808-searching-for-cards-all-boards"); this.ui.showDialog(B.container,300,80,!0,!1);B.init()}))),mxUtils.br(y));for(var v=0;v<u.length;v++)mxUtils.bind(this,function(B){y.appendChild(E(B.name,mxUtils.bind(this,function(){b?(f=B.id,z()):(this.ui.hideDialog(),e(B.id))})))})(u[v]);100==u.length&&(y.appendChild(N),I=function(){y.scrollTop>=y.scrollHeight-y.offsetHeight&&n()},mxEvent.addListener(y,"scroll",I))}}),mxUtils.bind(this,function(u){401==u.status?this.authenticate(t,D,!0):null!=D&&D({message:u.responseText})}))});t()});d()};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Math.max(30,(this.diagramContainer.parentNode.clientHeight-g)/2):56,d-6,g-6,mxUtils.bind(this,function(t){this.createShapesPanel(t)}));this.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.sidebarWindow.window.fit()}));this.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90);this.sidebarWindow.window.setVisible(!1)}};EditorUi.prototype.setSketchMode=function(d){this.spinner.spin(document.body,mxResources.get("working")+"...")&&window.setTimeout(mxUtils.bind(this, function(){this.spinner.stop();this.doSetSketchMode(d);null==urlParams.rough&&(mxSettings.settings.sketchMode=d,mxSettings.save());this.fireEvent(new mxEventObject("sketchModeChanged"))}),0)};Editor.createMinimalCss=function(){return(Editor.isDarkMode()?"html body .geMenubarContainer .geMenuItem .geMenuItem, html body .geMenubarContainer a.geMenuItem { color: #353535; }html body .geToolbarContainer .geMenuItem, html body .geToolbarContainer .geToolbarButton, html body .geMenubarContainer .geMenuItem .geMenuItem, html body .geMenubarContainer a.geMenuItem,html body .geMenubarContainer .geToolbarButton { filter: invert(1); }html > body.geEditor > div > a.geItem { background-color: "+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
!1,!1),c.pdfPageExport||mxEvent.addListener(Q,"change",J);J=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&"draw.io"==c.getServiceName();var P=null,V=null;if(EditorUi.isElectronApp||J)V=c.addCheckbox(q,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram),C+=30;J&&(P=c.addCheckbox(q,mxResources.get("transparentBackground"),!1),C+=30);q=new CustomDialog(c,q,mxUtils.bind(this,function(){var X=null;if(!p){X=parseInt(m.value);var Y=parseInt(M.value);X=K.checked||X==O&&Y==O?null:{from:Math.max(0, Math.min(F-1,X-1)),to:Math.max(0,Math.min(F-1,Y-1))}}c.downloadFile("pdf",null,null,!Q.checked,p?!0:!K.checked&&null==X,!U.checked,null!=P&&P.checked,null,null,W.checked,null!=V&&V.checked,X)}),null,mxResources.get("export"));c.showDialog(q.container,300,C,!0,!0)}else c.showDialog((new PrintDialog(c,mxResources.get("formatPdf"))).container,360,null!=c.pages&&1<c.pages.length&&(c.editor.editable||"1"!=urlParams["hide-pages"])?470:390,!0,!0)}));c.actions.addAction("open...",function(){c.pickFile()});
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
arguments);null!=O&&this.graph.applyNewEdgeStyle(O,[J]);return J};var G=new mxRubberband(this);this.getRubberband=function(){return G};var D=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var K=this.currentState;N.apply(this,arguments);K!=this.currentState?(D=(new Date).getTime(),F=0):F=(new Date).getTime()-D};var R=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(K){return mxEvent.isShiftDown(K.getEvent())&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
arguments);null!=O&&this.graph.applyNewEdgeStyle(O,[J]);return J};var G=new mxRubberband(this);this.getRubberband=function(){return G};var D=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var K=this.currentState;N.apply(this,arguments);K!=this.currentState?(D=(new Date).getTime(),F=0):F=(new Date).getTime()-D};var R=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(K){return mxEvent.isShiftDown(K.getEvent())&& mxEvent.isAltDown(K.getEvent())?!1:null!=this.currentState&&K.getState()==this.currentState&&2E3<F||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&R.apply(this,arguments)};var S=this.isToggleEvent;this.isToggleEvent=function(K){return S.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(K)};var Q=G.isForceRubberbandEvent;G.isForceRubberbandEvent=function(K){return Q.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(K.getEvent())||
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(m){var A=null;null!=m&&0<m.length&&("ER"==m.substring(0,2)?A="mxgraph.er":"sysML"==m.substring(0,5)&&(A="mxgraph.sysml"));return A};var F=mxMarker.createMarker;mxMarker.createMarker=function(m,A,M,Q,U,W,P,V,X,Y){if(null!=M&&null==mxMarker.markers[M]){var Z=this.getPackageForType(M);null!=Z&& mxStencilRegistry.getStencil(Z)}return F.apply(this,arguments)};var O=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(m,A,M,Q,U,W){"1"==mxUtils.getValue(A.style,"lineShape",null)&&m.setFillColor(mxUtils.getValue(A.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return O.apply(this,arguments)};PrintDialog.prototype.create=function(m,A){function M(){ba.value=Math.max(1,Math.min(V,Math.max(parseInt(ba.value),parseInt(da.value))));da.value=Math.max(1,Math.min(V,Math.min(parseInt(ba.value),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ma[ea])&&ba.push(ma[ea]);this.setHiddenTags(ba);this.refresh()}0<da.length&&(Q++,this.executeAnimations(da,V,Y?1:Z.steps,Y?0:Z.delay));0==Q?X():P()}else this.stoppingCustomActions=this.executingCustomActions=!1,P(),null!=A&&A()});X()}};Graph.prototype.doUpdateCustomLinksForCell=function(m,A){var M=this.getLinkForCell(A);null!=M&&"data:action/json,"==M.substring(0,17)&&this.setLinkForCell(A,this.updateCustomLink(m,M));if(this.isHtmlLabel(A)){var Q=document.createElement("div");Q.innerHTML=Graph.sanitizeHtml(this.getLabel(A)); for(var U=Q.getElementsByTagName("a"),W=!1,P=0;P<U.length;P++)M=U[P].getAttribute("href"),null!=M&&"data:action/json,"==M.substring(0,17)&&(U[P].setAttribute("href",this.updateCustomLink(m,M)),W=!0);W&&this.labelChanged(A,Q.innerHTML)}};Graph.prototype.updateCustomLink=function(m,A){if("data:action/json,"==A.substring(0,17))try{var M=JSON.parse(A.substring(17));null!=M.actions&&(this.updateCustomLinkActions(m,M.actions),A="data:action/json,"+JSON.stringify(M))}catch(Q){}return A};Graph.prototype.updateCustomLinkActions=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
arguments)};var z=this.graphHandler.getCells;this.graphHandler.getCells=function(K){for(var U=z.apply(this,arguments),L=new mxDictionary,O=[],X=0;X<U.length;X++){var W=this.graph.isTableCell(K)&&this.graph.isTableCell(U[X])&&this.graph.isCellSelected(U[X])?this.graph.model.getParent(U[X]):this.graph.isTableRow(K)&&this.graph.isTableRow(U[X])&&this.graph.isCellSelected(U[X])?U[X]:this.graph.getCompositeParent(U[X]);null==W||L.get(W)||(L.put(W,!0),O.push(W))}return O};var C=this.graphHandler.start;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
!c.isOfflineApp()&&isLocalStorage&&this.addMenuItem(p,"plugins",q),this.addMenuItems(p,["-","editDiagram"],q),this.addSubmenu("diagramLanguage",p,q),p.addSeparator(q),"1"!=urlParams.embed&&(isLocalStorage||mxClient.IS_CHROMEAPP)&&this.addMenuItems(p,["showStartScreen"],q),this.addMenuItems(p,["configuration"],q),p.addSeparator(q),"1"==urlParams.newTempDlg&&(c.actions.addAction("templates",function(){function J(O){return{id:O.id,isExt:!0,url:O.downloadUrl,title:O.title,imgUrl:O.thumbnailLink,changedBy:O.lastModifyingUserName, lastModifiedOn:O.modifiedDate}}var F=new TemplatesDialog(c,function(O){console.log(arguments)},null,null,null,"user",function(O,S,K){var R=new Date;R.setDate(R.getDate()-7);c.drive.listFiles(null,R,K?!0:!1,function(m){for(var A=[],M=0;M<m.items.length;M++)A.push(J(m.items[M]));O(A)},S)},function(O,S,K,R){c.drive.listFiles(O,null,R?!0:!1,function(m){for(var A=[],M=0;M<m.items.length;M++)A.push(J(m.items[M]));S(A)},K)},function(O,S,K){c.drive.getFile(O.id,function(R){S(R.data)},K)},null,function(O){O({Test:[]},
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
m.baseUrl||M.crossOriginImages&&M.isCorsEnabledForUrl(Q)?"chrome-extension://"==Q.substring(0,19)||mxClient.IS_CHROMEAPP||(Q=A.apply(this,arguments)):Q=PROXY_URL+"?url="+encodeURIComponent(Q)}return Q};return m};Editor.createSvgDataUri=function(m){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(m)))};Editor.prototype.convertImageToDataUri=function(m,A){try{var M=!0,Q=window.setTimeout(mxUtils.bind(this,function(){M=!1;A(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(m))mxUtils.get(m,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.isCellLocked=function(K){for(;null!=K;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(K),"locked","0"))return!0;K=this.model.getParent(K)}return!1};var qa=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(K,U){"mouseDown"==U.getProperty("eventName")&&(K=U.getProperty("event").getState(),qa=null==K||this.isSelectionEmpty()||this.isCellSelected(K.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(K,U){if(!mxEvent.isMultiTouchEvent(U)){K=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0==M%2,ea.flipBkg),A.parentNode.insertBefore(qa,A.nextSibling),A=qa;m.appendChild(ma);Ca();return m};StyleFormatPanel.prototype.addStyles=function(m){if(null!=this.defaultColorSchemes){var A=function(ea){mxEvent.addListener(ea,"mouseenter",function(){ea.style.opacity="1"});mxEvent.addListener(ea,"mouseleave",function(){ea.style.opacity="0.5"})},M=this.editorUi,Q=M.editor.graph,U=document.createElement("div");U.style.whiteSpace="nowrap";U.style.paddingLeft="24px";U.style.paddingRight="20px";m.style.paddingLeft=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.recentCustomFonts[Q]=U,A=document.getElementsByTagName("head")[0],null!=M&&("link"==U.elt.nodeName.toLowerCase()?(U.elt.onload=M,U.elt.onerror=M):M()),null!=A&&A.appendChild(U.elt)):null!=M&&M()}else null!=M&&M()}else null!=M&&M();return m};Graph.getFontUrl=function(m,A){m=Graph.customFontElements[m.toLowerCase()];null!=m&&(A=m.url);return A};Graph.processFontAttributes=function(m){m=m.getElementsByTagName("*");for(var A=0;A<m.length;A++){var M=m[A].getAttribute("data-font-src");if(null!=M){var Q=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
typeof window.mxUtilsBinaryToArray){Z=mxUtilsBinaryToArray(Z.request.responseBody).toArray();da=Array(Z.length);for(var ba=0;ba<Z.length;ba++)da[ba]=String.fromCharCode(Z[ba]);da=da.join("")}W=null!=W?W:"data:image/png;base64,";da=W+Editor.base64Encode(da)}A(da)}}else null!=M&&(0==Z.getStatus()?M({message:mxResources.get("accessDenied")},Z):404==Z.getStatus()?M({code:Z.getStatus()},Z):M({message:mxResources.get("error")+" "+Z.getStatus()},Z))}),function(Z){null!=M&&M({message:mxResources.get("error")+ " "+Z.getStatus()})},X,this.timeout,function(){U&&null!=M&&M({code:App.ERROR_TIMEOUT,retry:Y})},V)});Y()}catch(Z){null!=M&&M(Z)}};Editor.prototype.absoluteCssFonts=function(m){var A=null;if(null!=m){var M=m.split("url(");if(0<M.length){A=[M[0]];m=window.location.pathname;var Q=null!=m?m.lastIndexOf("/"):-1;0<=Q&&(m=m.substring(0,Q+1));Q=document.getElementsByTagName("base");var U=null;null!=Q&&0<Q.length&&(U=Q[0].getAttribute("href"));for(var W=1;W<M.length;W++)if(Q=M[W].indexOf(")"),0<Q){var P=Editor.trimCssUrl(M[W].substring(0,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null;B=mxUtils.button("",mxUtils.bind(this,function(H){this.pickColor(v||"none",function(L){v=L;n()});mxEvent.consume(H)}));n();B.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";B.style.marginLeft="4px";B.style.height="22px";B.style.width="22px";B.style.position="relative";B.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";B.className="geColorBtn";d.appendChild(B);mxUtils.br(d);return{getColor:function(){return v},getTarget:function(){return t.value},focus:function(){t.focus()}}};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
n)}}catch(t){}};EditorUi.prototype.updatePageLinksForCell=function(d,g){var n=document.createElement("div"),t=this.editor.graph,u=t.getLinkForCell(g);null!=u&&t.setLinkForCell(g,this.updatePageLink(d,u));if(t.isHtmlLabel(g)){n.innerHTML=Graph.sanitizeHtml(t.getLabel(g));for(var v=n.getElementsByTagName("a"),B=!1,H=0;H<v.length;H++)u=v[H].getAttribute("href"),null!=u&&(v[H].setAttribute("href",this.updatePageLink(d,u)),B=!0);B&&t.labelChanged(g,n.innerHTML)}for(H=0;H<t.model.getChildCount(g);H++)this.updatePageLinksForCell(d, t.model.getChildAt(g,H))};EditorUi.prototype.updatePageLink=function(d,g){if(Graph.isPageLink(g)){var n=d[g.substring(g.indexOf(",")+1)];g=null!=n?"data:page/id,"+n:null}else if("data:action/json,"==g.substring(0,17))try{var t=JSON.parse(g.substring(17));if(null!=t.actions){for(var u=0;u<t.actions.length;u++){var v=t.actions[u];if(null!=v.open&&Graph.isPageLink(v.open)){var B=v.open.substring(v.open.indexOf(",")+1);n=d[B];null!=n?v.open="data:page/id,"+n:null==this.getPageById(B)&&delete v.open}}g=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&&161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&4==d.charCodeAt(3)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&6==d.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(d){return 8<d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&& 161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||60==d.charCodeAt(0)&&63==d.charCodeAt(1)&&120==d.charCodeAt(2)&&109==d.charCodeAt(3)&&108==d.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(d){var g=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var n=g.getFunction,t=this.editor.graph,u=this;g.getFunction=function(v){if(t.isSelectionEmpty()&&null!=u.pages&&0<u.pages.length){var B=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Z+"')";break;default:null==V?K=[{driveId:P}]:K.push({name:Y,driveId:P,folderId:V}),qa=(P?"/drives/"+P:"/me/drive")+(V?"/items/"+V:"/root")+"/children"}ea||(qa+=(0<qa.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");var ia=[];ba()}}function L(P){U.className=U.className.replace("odCatSelected","");U=P;U.className+=" odCatSelected"}function G(P){S||(W=null,H("search",null,null,null, P))}var T="";null==e&&(e=u,T='<div style="text-align: center;" class="odPreview"></div>');null==k&&(k=function(){var P=null;try{P=JSON.parse(localStorage.getItem("mxODPickerRecentList"))}catch(V){}return P});null==l&&(l=function(P){if(null!=P){var V=k()||{};delete P["@microsoft.graph.downloadUrl"];V[P.id]=P;localStorage.setItem("mxODPickerRecentList",JSON.stringify(V))}});T='<div class="odCatsList"><div class="odCatsListLbl">OneDrive</div><div id="odFiles" class="odCatListTitle odCatSelected">'+mxUtils.htmlEntities(mxResources.get("files"))+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(F){if(g.isEnabled()&&1==g.getSelectionCount()){var O=g.getSelectionCell(),S=mxEvent.isControlDown(F)?null:g.getIncomingTreeEdges(O);F=[];if(null!=S&&0<S.length&&(S=g.getOutgoingTreeEdges(g.model.getTerminal(S[0],!0)),null!=S))for(var K=0;K<S.length;K++)F.push(g.model.getTerminal(S[K],!1));0==F.length&&(F=g.model.getChildren(g.model.getParent(O)));g.setSelectionCells(F)}},null,null,"Alt+Shift+S");var u=g.removeCells;g.removeCells=function(F,O){O=null!=O?O:!0;null==F&&(F=this.getDeletableCells(this.getSelectionCells())); O&&(F=this.getDeletableCells(this.addAllEdges(F)));for(var S=[],K=0;K<F.length;K++){var R=F[K];n.isEdge(R)&&l(R)&&(S.push(R),R=n.getTerminal(R,!1));if(c(R)){var m=[];g.traverse(R,!0,function(A,M){var Q=null!=M&&g.isTreeEdge(M);Q&&m.push(M);(null==M||Q)&&m.push(A);return null==M||Q});0<m.length&&(S=S.concat(m),R=g.getIncomingTreeEdges(F[K]),F=F.concat(R))}else null!=R&&S.push(F[K])}F=S;return u.apply(this,arguments)};d.hoverIcons.getStateAt=function(F,O,S){return c(F.cell)?null:this.graph.view.getState(this.graph.getCellAt(O,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.bind(this,function(ba){this.cachedFonts[X]=ba;Q--;U()}),mxUtils.bind(this,function(ba){Q--;U()}),!0,null,"data:"+Z+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(M[m].substring(0,W)),P)}U()}else A(m)};Editor.prototype.loadFonts=function(m){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(A){this.resolvedFontCss=A;null!=m&&m()})):null!=m&&m()};Editor.prototype.createGoogleFontCache=function(){var m={},A;for(A in Graph.fontMapping)Graph.isCssFontUrl(A)&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="21.2.8";EditorUi.compactUi="atlas"!=Editor.currentTheme;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
za.push(ea[Ba]);P.setSelectionCells(za)}function U(ea){P.setHiddenTags(ea?[]:V.slice());Q();P.refresh()}function W(ea,za){Y.innerText="";if(0<ea.length){var Ba=document.createElement("table");Ba.setAttribute("cellpadding","2");Ba.style.boxSizing="border-box";Ba.style.tableLayout="fixed";Ba.style.width="100%";var Ca=document.createElement("tbody");if(null!=ea&&0<ea.length)for(var ca=0;ca<ea.length;ca++)(function(fa){function qa(){var oa=P.getCellsForTags([fa],null,null,!0);P.isEnabled()?P.setSelectionCells(oa): P.highlightCells(oa,null,null,70)}var ia=0>mxUtils.indexOf(P.hiddenTags,fa),ya=document.createElement("tr"),xa=document.createElement("td");xa.style.align="center";xa.style.width="16px";var ta=document.createElement("img");ta.setAttribute("src",ia?Editor.visibleImage:Editor.hiddenImage);ta.setAttribute("title",mxResources.get(ia?"hideIt":"show",[fa]));mxUtils.setOpacity(ta,ia?75:25);ta.style.verticalAlign="middle";ta.style.cursor="pointer";ta.style.width="16px";if(A||Editor.isDarkMode())ta.style.filter=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxResources.get("mermaid")+"...","mermaid");I.showDialog(n.container,620,420,!0,!1);n.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),g=function(n,t,u,v){n.addItem(u,null,mxUtils.bind(this,function(){var B=new CreateGraphDialog(I,u,v);I.showDialog(B.container,620,420,!0,!1);B.init()}),t)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(n,t){for(var u=0;u<d.length;u++)"-"==d[u]?n.addSeparator(t):g(n,t,mxResources.get(d[u])+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
!1,!0)}finally{L.model.endUpdate()}}}catch(R){if(u)throw R;this.handleError(R)}return H};EditorUi.prototype.updatePageLinks=function(d,g){for(var n=0;n<g.length;n++)this.updatePageLinksForCell(d,g[n].root),null!=g[n].viewState&&this.updateBackgroundPageLink(d,g[n].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(d,g){try{if(null!=g&&Graph.isPageLink(g.originalSrc)){var n=d[g.originalSrc.substring(g.originalSrc.indexOf(",")+1)];null!=n&&(g.originalSrc="data:page/id,"+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"#ffffff");this.convertImages(da.getSvg(null,null,ba,ma,null,P,null,null,null,Y,null,za,Ba,Ca),mxUtils.bind(this,function(fa){try{var qa=new Image;qa.onload=mxUtils.bind(this,function(){try{var ya=function(){mxClient.IS_SF?window.setTimeout(function(){oa.drawImage(qa,0,0);m(xa,fa)},0):(oa.drawImage(qa,0,0),m(xa,fa))},xa=document.createElement("canvas"),ta=parseInt(fa.getAttribute("width")),Ka=parseInt(fa.getAttribute("height"));V=null!=V?V:1;null!=A&&(V=W?Math.min(1,Math.min(3*A/(4*Ka),A/ta)):A/ta);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
if(0==T&&0==G)T=F,G=1;else if(Math.abs(T-F)<=(O||1==u&&J?g:0))G+=1;else if(1<G&&J){t=t.slice(0,u+1);break}else if(3<=t.length-u&&!J)G=0,p=T=0!=q?q:0,t.splice(0,0==u?1:u),u=-1;else break;0!=p||O||(T=p=F)}3==t.length&&t[1]==I&&(p=0)}g=function(S,K,R,m){var A=[];if(m){m=C;var M=0}else m=0,M=C;A.push(new mxPoint(S.x-m,S.y-M));A.push(new mxPoint(S.x+m,S.y+M));A.push(S);A.push(K);A.push(new mxPoint(K.x-m,K.y-M));A.push(new mxPoint(K.x+m,K.y+M));if(null!=R)return R.points=A,R;S=new mxPolyline(A,mxConstants.GUIDE_COLOR, mxConstants.GUIDE_STROKEWIDTH);S.dialect=mxConstants.DIALECT_SVG;S.pointerEvents=!1;S.init(N.graph.getView().getOverlayPane());return S};T=function(S,K){if(S&&null!=N.guidesArrHor)for(S=0;S<N.guidesArrHor.length;S++)N.guidesArrHor[S].node.style.visibility="hidden";if(K&&null!=N.guidesArrVer)for(S=0;S<N.guidesArrVer.length;S++)N.guidesArrVer[S].node.style.visibility="hidden"};if(1<G&&G==t.length-1){G=[];q=N.guidesArrHor;D=[];E=0;u=t[0]==I?1:0;J=t[u].y+t[u].height;if(0<p)for(u=0;u<t.length-1;u++)d=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,e,f,c,k,l,x,y,E,D,z){var N=document.createElement("div");N.style.textAlign="center";z=null!=z?z:44;var I=document.createElement("div");I.style.padding="6px";I.style.overflow="auto";I.style.maxHeight=z+ "px";I.style.lineHeight="1.2em";mxUtils.write(I,e);N.appendChild(I);null!=D&&(I=document.createElement("div"),I.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",D),I.appendChild(e),N.appendChild(I));D=document.createElement("div");D.style.textAlign="center";D.style.whiteSpace="nowrap";var d=document.createElement("input");d.setAttribute("type","checkbox");l=mxUtils.button(l||mxResources.get("cancel"),function(){b.hideDialog();null!=c&&c(d.checked)});l.className="geBtn"; null!=y&&(l.innerHTML=y+"<br>"+l.innerHTML,l.style.paddingBottom="8px",l.style.paddingTop="8px",l.style.height="auto",l.style.width="40%");b.editor.cancelFirst&&D.appendChild(l);var g=mxUtils.button(k||mxResources.get("ok"),function(){b.hideDialog();null!=f&&f(d.checked)});D.appendChild(g);null!=x?(g.innerHTML=x+"<br>"+g.innerHTML+"<br>",g.style.paddingBottom="8px",g.style.paddingTop="8px",g.style.height="auto",g.className="geBtn",g.style.width="40%"):g.className="geBtn gePrimaryBtn";b.editor.cancelFirst|| D.appendChild(l);N.appendChild(D);E?(D.style.marginTop="10px",I=document.createElement("p"),I.style.marginTop="20px",I.style.marginBottom="0px",I.appendChild(d),k=document.createElement("span"),mxUtils.write(k," "+mxResources.get("rememberThisSetting")),I.appendChild(k),N.appendChild(I),mxEvent.addListener(k,"click",function(n){d.checked=!d.checked;mxEvent.consume(n)})):D.style.marginTop="12px";this.init=function(){g.focus()};this.container=N},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
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 e=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=e){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var f=mxFreehand.prototype.NORMAL_SMOOTHING,c=null,k=[],l,x=[],y,E=!1,D=!0,z=!0,N=!0,I=!0,d=[],g=!1,n=!1,t=!1,u={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},v=!0;this.setClosedPath=function(C){E=C};this.setAutoClose=function(C){D=C};this.setAutoInsert=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
I.formatElt.style.width)}function e(I,d){function g(u,v){var B=I.menus.get(u);u=n.addMenu(v,mxUtils.bind(this,function(){B.funct.apply(this,arguments)}));u.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;";u.className="geTitle";d.appendChild(u);return u}var n=new Menubar(I,d);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");K.querySelector("."+aa).src="/images/"+la+"-sel.svg";K.querySelector("."+pa).src="/images/"+ha+".svg";return!0}function v(ja,aa,la,na){function pa(wa,Ma){null==ka?(wa=/^https?:\/\//.test(wa)&&!b.editor.isCorsEnabledForUrl(wa)?PROXY_URL+"?url="+encodeURIComponent(wa):TEMPLATE_PATH+"/"+wa,mxUtils.get(wa,mxUtils.bind(this,function(Ia){200<=Ia.getStatus()&&299>=Ia.getStatus()&&(ka=Ia.getText());Ma(ka)}))):Ma(ka)}function ha(wa,Ma,Ia){if(null!=wa&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
new Image;T.onload=function(){try{var p=T.width,q=T.height;if(0==p&&0==q){var C=L.result,J=C.indexOf(","),F=decodeURIComponent(escape(atob(C.substring(J+1)))),O=mxUtils.parseXml(F).getElementsByTagName("svg");0<O.length&&(p=parseFloat(O[0].getAttribute("width")),q=parseFloat(O[0].getAttribute("height")))}n(L.result,p,q)}catch(S){t(S)}};T.src=L.result};L.onerror=function(G){t(G)}}else t(H)};B.onerror=function(H){t(H)};B.send()};EditorUi.prototype.insertAsPreText=function(d,g,n){var t=this.editor.graph,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
g.getCurrentCellStyle(F).treeMoving);return O}function l(F){var O=!1;null!=F&&(F=n.getParent(F),O=g.view.getState(F),O="tree"==(null!=O?O.style:g.getCellStyle(F)).containerType);return O}function x(F){var O=!1;null!=F&&(F=n.getParent(F),O=g.view.getState(F),g.view.getState(F),O=null!=(null!=O?O.style:g.getCellStyle(F)).childLayout);return O}function y(F){F=g.view.getState(F);if(null!=F){var O=g.getIncomingTreeEdges(F.cell);if(0<O.length&&(O=g.view.getState(O[0]),null!=O&&(O=O.absolutePoints,null!= O&&0<O.length&&(O=O[O.length-1],null!=O)))){if(O.y==F.y&&Math.abs(O.x-F.getCenterX())<F.width/2)return mxConstants.DIRECTION_SOUTH;if(O.y==F.y+F.height&&Math.abs(O.x-F.getCenterX())<F.width/2)return mxConstants.DIRECTION_NORTH;if(O.x>F.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function E(F,O){O=null!=O?O:!0;g.model.beginUpdate();try{var S=g.model.getParent(F),K=g.getIncomingTreeEdges(F),R=g.cloneCells([K[0],F]);g.model.setTerminal(R[0],g.model.getTerminal(K[0],
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(H=new mxCodec(mxUtils.createXmlDocument()),H=H.encode(new mxGraphModel(v.root)),this.editor.graph.saveViewState(v.viewState,H,null,t),B=B.cloneNode(!1),mxUtils.setTextContent(B,Graph.compressNode(H))));d(B)}return u};EditorUi.prototype.anonymizeString=function(d,g){for(var n=[],t=0;t<d.length;t++){var u=d.charAt(t);0<=EditorUi.ignoredAnonymizedChars.indexOf(u)?n.push(u):isNaN(parseInt(u))?u.toLowerCase()!=u?n.push(String.fromCharCode(65+Math.round(25*Math.random()))):u.toUpperCase()!=u?n.push(String.fromCharCode(97+ Math.round(25*Math.random()))):/\s/.test(u)?n.push(" "):n.push("?"):n.push(g?"0":Math.round(9*Math.random()))}return n.join("")};EditorUi.prototype.anonymizePatch=function(d){if(null!=d[EditorUi.DIFF_INSERT])for(var g=0;g<d[EditorUi.DIFF_INSERT].length;g++)try{var n=mxUtils.parseXml(d[EditorUi.DIFF_INSERT][g].data).documentElement.cloneNode(!1);null!=n.getAttribute("name")&&n.setAttribute("name",this.anonymizeString(n.getAttribute("name")));d[EditorUi.DIFF_INSERT][g].data=mxUtils.getXml(n)}catch(v){d[EditorUi.DIFF_INSERT][g].data=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
d[T].apply(this,arguments);null!=p&&G.push(p)}b.sidebar.showEntries(0<G.length?G.join(";"):"",t.checked);b.hideDialog()});E.className="geBtn gePrimaryBtn";f=document.createElement("div");f.style.marginTop="26px";f.style.textAlign="right"}b.editor.cancelFirst?(f.appendChild(l),f.appendChild(E)):(f.appendChild(E),f.appendChild(l));c.appendChild(f);this.container=c},PluginsDialog=function(b,e,f,c){function k(){E=!0;if(0==y.length)x.innerText=mxResources.get("noPlugins");else{x.innerText="";for(var g= 0;g<y.length;g++){var n=document.createElement("span");n.style.whiteSpace="nowrap";var t=document.createElement("span");t.className="geSprite geSprite-delete";t.style.position="relative";t.style.cursor="pointer";t.style.top="5px";t.style.marginRight="4px";t.style.display="inline-block";n.appendChild(t);mxUtils.write(n,y[g]);x.appendChild(n);mxUtils.br(x);mxEvent.addListener(t,"click",function(u){return function(){b.confirm(mxResources.get("delete")+' "'+y[u]+'"?',function(){null!=f&&f(y[u]);y.splice(u, 1);k()})}}(g))}}}var l=document.createElement("div"),x=document.createElement("div");x.style.height="180px";x.style.overflow="auto";var y=mxSettings.getPlugins().slice(),E=!1;l.appendChild(x);k();E=!1;var D=mxUtils.button(mxResources.get("add"),null!=e?function(){e(function(g){g&&0>mxUtils.indexOf(y,g)&&y.push(g);k()})}:function(){var g=document.createElement("div"),n=document.createElement("span");n.style.marginTop="6px";mxUtils.write(n,mxResources.get("builtinPlugins")+": ");g.appendChild(n);var t=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
arguments);D.style.backgroundColor=""};z.dblClick=function(){};var Q=z.getSelectionModel().changeSelection;z.getSelectionModel().changeSelection=function(){Q.call(this,[d],[d])}};E.onerror=function(){E.onload=null;E.src=Editor.errorImage};E.setAttribute("src",e);E.style.maxWidth="300px";E.style.maxHeight="300px";y.appendChild(E);x.appendChild(y);var D=document.createElement("div");D.style.width="300px";D.style.height="300px";D.style.overflow="hidden";D.style.backgroundColor="#fff9";x.appendChild(D);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=41,EditorUi.prototype.toolbarHeight=38);"sketch"==Editor.currentTheme&&(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(d,g,n,t,u,v,B){d=new ImageDialog(this,d,g,n,t,u,v,B);this.showDialog(d.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);d.init()};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
a.container.scrollLeft)<Y&&Math.abs(this.scrollTop-a.container.scrollTop)<Y&&Math.abs(this.startX-J.getGraphX())<Y&&Math.abs(this.startY-J.getGraphY())<Y&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?D():F(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var V=a.view.validate,aa=new mxPoint,ba=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=e.currentPage&&ba!=e.currentPage){ba=e.currentPage;var W= a.getPageLayout(a.getBoundingBoxFromGeometry(a.model.getCells(),!0),aa,1),J=a.getDefaultTranslate(W);this.x0=W.x;this.y0=W.y;a.setScrollbarPositions(e.currentPage.viewState,J.x,J.y);if(J.x!=this.translate.x||J.y!=this.translate.y){this.setTranslate(J.x,J.y);return}}W=a.getPagePadding();J=a.getPageSize();this.translate.x=W.x-(this.x0||0)*J.width;this.translate.y=W.y-(this.y0||0)*J.height}V.apply(this,arguments)};if(!a.isViewer()){var da=a.sizeDidChange;a.sizeDidChange=function(){if(null!=this.container&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(d,g,n,t,u,v,B,H){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,g,n,t,u,v,B,H)};EditorUi.prototype.loadFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(d)};EditorUi.prototype.createSvgDataUri=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(d)};EditorUi.prototype.embedCssFonts=function(d,g){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(d,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxConstants.GUIDE_STROKEWIDTH);S.dialect=mxConstants.DIALECT_SVG;S.pointerEvents=!1;S.init(N.graph.getView().getOverlayPane());return S};T=function(S,K){if(S&&null!=N.guidesArrHor)for(S=0;S<N.guidesArrHor.length;S++)N.guidesArrHor[S].node.style.visibility="hidden";if(K&&null!=N.guidesArrVer)for(S=0;S<N.guidesArrVer.length;S++)N.guidesArrVer[S].node.style.visibility="hidden"};if(1<G&&G==t.length-1){G=[];q=N.guidesArrHor;D=[];E=0;u=t[0]==I?1:0;J=t[u].y+t[u].height;if(0<p)for(u=0;u<t.length-1;u++)d=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(F.setAttribute("disabled","disabled"),C.setAttribute("disabled","disabled"));C.checked&&p.checked?q.getEditSelect().removeAttribute("disabled"):q.getEditSelect().setAttribute("disabled","disabled")});g=new CustomDialog(this,v,mxUtils.bind(this,function(){d(L.checked,G.checked,T.checked,p.checked,q.getLink(),F.checked)}),null,mxResources.get("embed"),u);this.showDialog(g.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(d,g,n,t,u,v,B,H){function L(C){var J=" ",F="";t&&(J=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+ EditorUi.lightboxHost+"/?client=1"+(null!=T?"&page="+T:"")+(u?"&edit=_blank":"")+(v?"&layers=1":"")+"');}})(this);\"",F+="cursor:pointer;");d&&(F+="max-width:100%;");var O="";n&&(O=' width="'+Math.round(G.width)+'" height="'+Math.round(G.height)+'"');B('<img src="'+C+'"'+O+(""!=F?' style="'+F+'"':"")+J+"/>")}var G=this.editor.graph.getGraphBounds(),T=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(C){var J=t?this.getFileData(!0):null;C=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.update)};var z=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?z.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(m){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var N=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(m){m=N.apply(this,arguments);var A=this.editorUi,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
P};var U=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,P,V,X,Y,Z){null!=W.handJiggle&&W.handJiggle.constructor==m?(W.handJiggle.passThrough=!0,U.apply(this,arguments),W.handJiggle.passThrough=!1):U.apply(this,arguments)}})();Editor.fastCompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:Graph.arrayBufferToString(pako.deflateRaw(m))};Editor.fastDecompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:pako.inflateRaw(Graph.stringToArrayBuffer(atob(m)),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
d&&null!=d.shape&&null!=d.shape.stencil)};var I=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);I.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(d,g,n,t,u,v,B,H){var L=d.editor.graph;if("xml"==n)d.hideDialog(),d.saveData(g,"xml",mxUtils.getXml(d.editor.getGraphXml()),"text/xml");
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
1));try{g=JSON.parse(d)}catch(t){}}}return g};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&""!=this.currentFile.getHash()&&null!=this.currentPage&&0<this.getSelectedPageIndex()){var d=this.getHashObject();d.pageId=this.currentPage.getId();this.setHashObject(d)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(d){if(Editor.enableHashObjects){var g=window.location.hash;if(null==g||""==g)g="#";var n=g.lastIndexOf("#");0<n&&(g=g.substring(0,n));try{null== d||mxUtils.isEmptyObject(d)||(g=g+"#"+encodeURIComponent(JSON.stringify(d)))}catch(t){}window.location.hash=g}};EditorUi.prototype.loadDescriptor=function(d,g,n){var t=window.location.hash,u=mxUtils.bind(this,function(B){var H=null!=d.data?d.data:"";null!=B&&0<B.length&&(0<H.length&&(H+="\n"),H+=B);B=new LocalFile(this,"csv"!=d.format&&0<H.length?H:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);B.getHash=function(){return t};this.fileLoaded(B);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null!=f&&f();b.openLink(e,null,!0)});y.className="geBtn gePrimaryBtn";y.style.width=x.style.width;l.appendChild(y);mxUtils.br(l);mxUtils.br(l);mxUtils.write(l,mxResources.get("allowPopups"));this.container=l},ImageDialog=function(b,e,f,c,k,l,x,y){function E(){0<N.value.length?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled")}l=null!=l?l:!0;var D=b.editor.graph,z=document.createElement("div");mxUtils.write(z,e);e=document.createElement("div");e.className="geTitle";e.style.backgroundColor=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null!=b.currentPage&&null!=b.pages&&(E=mxUtils.indexOf(b.pages,b.currentPage));for(I=e.length-1;0<=I;I--){var P=function(V){var X=new Date(V.modifiedDate),Y=null;if(0<=X.getTime()){var Z=function(ba){d.stop();x.innerText="";var ma=mxUtils.parseXml(ba),ea=b.editor.extractGraphModel(ma.documentElement,!0);if(null!=ea){var za=function(Ca){null!=Ca&&(Ca=Ba(Editor.parseDiagramNode(Ca)));return Ca},Ba=function(Ca){var ca=Ca.getAttribute("background");if(null==ca||""==ca||ca==mxConstants.NONE)ca=y.defaultPageBackgroundColor; l.style.backgroundColor=ca;(new mxCodec(Ca.ownerDocument)).decode(Ca,y.getModel());y.maxFitScale=1;y.fit(8);y.center();return Ca};K.style.display="none";K.innerText="";B=ma;H=ba;D=parseSelectFunction=null;z=0;if("mxfile"==ea.nodeName){ma=ea.getElementsByTagName("diagram");D=[];for(ba=0;ba<ma.length;ba++)D.push(ma[ba]);z=Math.min(E,D.length-1);0<D.length&&za(D[z]);if(1<D.length)for(K.removeAttribute("disabled"),K.style.display="",ba=0;ba<D.length;ba++)ma=document.createElement("option"),ea=D[ba].getAttribute("name")||
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(m,A,M){var Q=mxClient.IS_FF?8192:16384;return Math.min(M,Math.min(Q/m,Q/A))};Editor.prototype.exportToCanvas=function(m,A,M,Q,U,W,P,V,X,Y,Z,da,ba,ma,ea,za,Ba,Ca){try{W=null!=W?W:!0;P=null!=P?P:!0;da=null!=da?da:this.graph;ba=null!=ba?ba:0;var ca=X?null:da.background;ca==mxConstants.NONE&&(ca=null);null==ca&&(ca=Q);null==ca&&0==X&&(ca=za?this.graph.defaultPageBackgroundColor:
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Q));this.graph.isRelativeUrl(P)&&(P=null!=U?U+P:window.location.protocol+"//"+window.location.hostname+("/"==P.charAt(0)?"":m)+P);A.push('url("'+P+'"'+M[W].substring(Q))}else A.push(M[W])}else A=[m]}return null!=A?A.join(""):null};Editor.prototype.mapFontUrl=function(m,A,M){/^https?:\/\//.test(A)&&!this.isCorsEnabledForUrl(A)&&(A=PROXY_URL+"?url="+encodeURIComponent(A));M(m,A)};Editor.prototype.embedCssFonts=function(m,A){var M=m.split("url("),Q=0;null==this.cachedFonts&&(this.cachedFonts={});var U=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(m){this.model.beginUpdate();try{for(var A=0;A<m.length;A++)this.model.setVisible(m[A],!this.model.isVisible(m[A]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(m,A){this.model.beginUpdate();try{for(var M=0;M<m.length;M++)this.model.setVisible(m[M],A)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(m,A,M,Q){for(var U=0;U<m.length;U++)this.highlightCell(m[U],A,M,Q)};Graph.prototype.highlightCell=function(m,A,M,Q,U){A=null!=A?A:mxConstants.DEFAULT_VALID_COLOR;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
d.style.textAlign="right";g=document.createElement("div");g.className="geToolbarContainer";g.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function p(F){if(null!=F){var O=F.getAttribute("background");if(null==O||""==O||O==mxConstants.NONE)O=Editor.isDarkMode()?"transparent":"#ffffff";t.style.backgroundColor=O;(new mxCodec(F.ownerDocument)).decode(F,u.getModel());u.maxFitScale=1;u.fit(8);u.center()}return F}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.menubarContainer)),null!=this.buttonContainer&&(this.buttonContainer.style.display="",this.buttonContainer.style.padding="",this.menubar.container.appendChild(this.buttonContainer))};EditorUi.prototype.createMenu=function(d,g,n,t){n=null!=n?n:"geToolbarButton";var u=this.menus.get(d);t=this.menubar.addMenu(mxResources.get(d),u.funct,null,t);t.className=n;t.style.display="inline-block";t.style.cursor="pointer";t.style.height="24px";t.setAttribute("title",mxResources.get(d));this.menus.menuCreated(u, t,n);null!=g&&(t.style.backgroundImage="url("+g+")",t.style.backgroundPosition="center center",t.style.backgroundRepeat="no-repeat",t.style.backgroundSize="100% 100%",t.style.width="24px",t.innerText="");return t};EditorUi.prototype.createToolbarButton=function(d,g,n,t){t=null!=t?t:24;var u=document.createElement("a");u.className="geToolbarButton geAdaptiveAsset";u.setAttribute("title",g);u.style.backgroundImage="url("+d+")";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
R){k(R)},300),mouseUp:function(K,R){k(R)}};z.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||c("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);this.selectionChangeListener=function(K,R){K=function(M){return null!=M?M.id:null};var m=null!=b.currentPage?b.currentPage.getId():null,A=R.getProperty("added");R=R.getProperty("removed");c("selectionChange",{pageId:m,removed:A?A.map(K):[],added:R?
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"6px"):mxClient.IS_FF&&(B.style.paddingTop="0px",B.style.marginTop="-2px");if(null!=n)for(N=0;N<n.length;N++)mxUtils.br(B),mxUtils.write(B,n[N]);if(null!=g&&null==b[g]){H.style.visibility="hidden";mxUtils.setOpacity(B,10);var L=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});L.spin(v);var G=window.setTimeout(function(){null==b[g]&&(L.stop(),v.style.display="none")},3E4);b.addListener("clientLoaded", mxUtils.bind(this,function(T,p){null!=b[g]&&p.getProperty("client")==b[g]&&(window.clearTimeout(G),mxUtils.setOpacity(B,100),H.style.visibility="",L.stop(),u(),"drive"==g&&null!=D.parentNode&&D.parentNode.removeChild(D))}))}else u();E.appendChild(v)}f=null!=f?f:2;var k=document.createElement("div");k.style.textAlign="center";k.style.whiteSpace="nowrap";k.style.paddingTop="0px";k.style.paddingBottom="20px";var l=document.createElement("div");l.style.border="1px solid #d3d3d3";l.style.borderWidth="1px 0px 1px 0px";
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"transform-origin",null);0==u&&t()}),300)}),10)};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var E=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var d=this.formatWindow;return null!=d?d.window.isVisible():E.apply(this,arguments)};var D=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(d){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){d=null!=d?d:!0;if("1"!=urlParams.embedInline){var g= this.container.clientWidth;this.container==document.body&&(g=document.body.clientWidth||document.documentElement.clientWidth);var n=this.getDiagramContainerOffset();var t=n.x;var u=n.y;"simple"==Editor.currentTheme&&(u+=this.sketchMainMenuElt.offsetHeight);this.diagramContainer.style.top=u+"px";this.diagramContainer.style.bottom="0";"simple"==Editor.currentTheme?(this.hsplit.style.top=this.sketchMainMenuElt.offsetHeight+"px",this.sidebarContainer.style.top=this.hsplit.style.top,this.formatContainer.style.top= this.hsplit.style.top,g=Math.max(0,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-this.formatWidth,Math.min(this.hsplitPosition,g-this.splitSize-40))),this.sidebarContainer.style.width=g+"px",this.diagramContainer.style.left=g+t+"px",this.tabContainer.style.left=g+"px",this.tabContainer.style.right=this.formatWidth+"px",this.sketchMainMenuElt.style.left="0px",this.sketchMainMenuElt.style.right="0px",this.hsplit.style.left=g+"px",this.diagramContainer.style.right= this.formatWidth+"px",this.formatContainer.style.width=this.formatWidth+"px",this.hsplit.style.bottom=this.tabContainer.offsetHeight+"px",this.diagramContainer.style.bottom=this.hsplit.style.bottom,this.checkTabScrollerOverflow()):(this.diagramContainer.style.left=n.x+"px",this.diagramContainer.style.right="0")}d&&this.editor.graph.sizeDidChange()}else D.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(d){var g=mxUtils.bind(this,function(t){t=this.createMenu(t,null,"geTitle");
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"geCommentActionLnk";mxUtils.write(Y,W);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){P(Z,q);Z.preventDefault();mxEvent.consume(Z)});U.appendChild(X);V&&(X.style.display="none")}function K(){function W(X){P.push(V);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)V=V.nextSibling,W(X.replies[Y])}var P=[],V=m;W(q);return{pdiv:V,replies:P}}function R(W,P,V,X,Y){function Z(){D(ea);q.addReply(ma,function(za){ma.id=za;q.replies.push(ma);N(ea);V&&V()},function(za){da();z(ea);b.handleError(za, null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Y)}function da(){y(ma,ea,function(za){Z()},!0)}var ba=K().pdiv,ma=b.newComment(W,b.getCurrentUser());ma.pCommentId=q.id;null==q.replies&&(q.replies=[]);var ea=I(ma,q.replies,ba,F+1);P?da():Z()}if(O||!q.isResolved){B.style.display="none";var m=document.createElement("div");m.className="geCommentContainer";m.setAttribute("data-commentId",q.id);m.style.marginLeft=20*F+5+"px";q.isResolved&&!Editor.isDarkMode()&&(m.style.backgroundColor=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"geCommentActionLnk";mxUtils.write(Y,W);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){P(Z,q);Z.preventDefault();mxEvent.consume(Z)});U.appendChild(X);V&&(X.style.display="none")}function K(){function W(X){P.push(V);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)V=V.nextSibling,W(X.replies[Y])}var P=[],V=m;W(q);return{pdiv:V,replies:P}}function R(W,P,V,X,Y){function Z(){D(ea);q.addReply(ma,function(za){ma.id=za;q.replies.push(ma);N(ea);V&&V()},function(za){da();z(ea);b.handleError(za,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.graphHandler.start=function(K,U,L,O){var X=!1;this.graph.isTableCell(K)&&(this.graph.isCellSelected(K)?X=!0:K=this.graph.model.getParent(K));X||this.graph.isTableRow(K)&&this.graph.isCellSelected(K)||(K=this.graph.getCompositeParent(K));C.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(K,U){U=this.graph.getCompositeParent(U);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(K,U,L,O,X,W){var J=mxConnectionHandler.prototype.insertEdge.apply(this,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")}),mxResources.get("cancel"),f,480,null,!1)};GitHubClient.prototype.executeRequest=function(e,f,c,k,l){var x=mxUtils.bind(this,function(E){var D=!0,z=window.setTimeout(mxUtils.bind(this,function(){D=!1;c({code:App.ERROR_TIMEOUT,retry:y})}),this.ui.timeout),N=this.authToken+" "+b;e.setRequestHeaders=function(I,d){I.setRequestHeader("Authorization",N)};e.send(mxUtils.bind(this,function(){window.clearTimeout(z);var I=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:d)};var k=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode()),null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());k.apply(this, arguments)};var l=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var d=this,g=this.editor.graph;Graph.touchStyle&&(g.panningHandler.isPanningTrigger=function(K){var R=K.getEvent();return null==K.getState()&&!mxEvent.isMouseEvent(R)&&!g.freehand.isDrawing()||mxEvent.isPopupTrigger(R)&&(null==K.getState()||mxEvent.isControlDown(R)||mxEvent.isShiftDown(R))});g.cellEditor.editPlantUmlData=function(K,R,m){var A=JSON.parse(m);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
DriveComment.prototype.deleteComment=function(b,e){this.file.ui.drive.executeRequest(this.pCommentId?{url:"/files/"+this.file.getId()+"/comments/"+this.pCommentId+"/replies/"+this.id,method:"DELETE"}:{url:"/files/"+this.file.getId()+"/comments/"+this.id,method:"DELETE"},b,e)};function mxODPicker(b,e,f,c,k,l,x,y,E,D,z,N,I,d){function g(P,V){V=V||document;return V.querySelector(P)}function n(P,V,X){if(null==P["@microsoft.graph.downloadUrl"])if(null==P.parentReference)X();else{c(P.id,P.parentReference.driveId,function(da){n(da,V,X)},X);return}var Y=new XMLHttpRequest;Y.open("GET",P["@microsoft.graph.downloadUrl"]);var Z=P.file?"image/png"==P.file.mimeType:!1;Y.onreadystatechange=function(){if(4==this.readyState){if(200<=this.status&&299>=this.status)try{var da=Y.responseText;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe