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 |
|---|---|---|---|---|---|---|---|
mxStencilRegistry.parseStencilSet=function(b,e,g){if("stencils"==b.nodeName)for(var n=b.firstChild;null!=n;)"shapes"==n.nodeName&&mxStencilRegistry.parseStencilSet(n,e,g),n=n.nextSibling;else{g=null!=g?g:!0;n=b.firstChild;var y="";b=b.getAttribute("name");for(null!=b&&(y=b+".");null!=n;){if(n.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=n.getAttribute("name"),null!=b)){y=y.toLowerCase();var q=b.replace(/ /g,"_");g&&mxStencilRegistry.addStencil(y+q.toLowerCase(),new mxStencil(n));if(null!=e){var E=n.getAttribute("w"),
N=n.getAttribute("h");E=null==E?80:parseInt(E,10);N=null==N?80:parseInt(N,10);e(y,q,b,E,N)}}n=n.nextSibling}}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxVertexHandler.prototype.getSelectionBounds=function(x){var L=this.graph.getModel(),P=L.getParent(x.cell),X=this.graph.getCellGeometry(x.cell);return L.isEdge(P)&&null!=X&&X.relative&&2>x.width&&2>x.height&&null!=x.text&&null!=x.text.boundingBox?(L=x.text.unrotatedBoundingBox||x.text.boundingBox,new mxRectangle(Math.round(L.x),Math.round(L.y),Math.round(L.width),Math.round(L.height))):Oa.apply(this,arguments)};var Qa=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(x,
L){var P=this.graph.getModel(),X=P.getParent(this.state.cell),ea=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(L)==mxEvent.ROTATION_HANDLE||!P.isEdge(X)||null==ea||!ea.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Qa.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var x=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),L=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"none",e.style.display="none");var F=this;N.getImageFromBundles=function(R){return F.getImageUrl(R)};var K=n.createTemporaryGraph;n.createTemporaryGraph=function(){var R=K.apply(this,arguments);R.getImageFromBundles=function(W){return F.getImageUrl(W)};return R};this.graphConfig.move&&(N.isMoveCellsEvent=function(R){return!0});mxUtils.setPrefixedStyle(T.style,"border-radius","4px");T.style.position="fixed";GraphViewer.resizeSensorEnabled=!1;document.body.style.overflow="hidden";mxClient.IS_SF||mxClient.IS_EDGE|| | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
B))};mxCellRenderer.registerShape("umlLifeline",Z);mxUtils.extend(aa,mxShape);aa.prototype.width=60;aa.prototype.height=30;aa.prototype.corner=10;aa.prototype.configurePointerEvents=function(c){var l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=l&&l!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(c.pointerEvents=!1)};aa.prototype.getLabelMargins=function(c){return new mxRectangle(0, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.createSvgNode=function(b,e,g,n,y){var q=mxUtils.createXmlDocument(),E=null!=q.createElementNS?q.createElementNS(mxConstants.NS_SVG,"svg"):q.createElement("svg");null!=y&&(null!=E.style?E.style.backgroundColor=y:E.setAttribute("style","background-color:"+y));null==q.createElementNS?(E.setAttribute("xmlns",mxConstants.NS_SVG),E.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):E.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);E.setAttribute("version","1.1");
E.setAttribute("width",g+"px");E.setAttribute("height",n+"px");E.setAttribute("viewBox",b+" "+e+" "+g+" "+n);q.appendChild(E);return E};Graph.htmlToPng=function(b,e,g,n){var y=document.createElement("canvas");y.width=e;y.height=g;var q=document.createElement("img");q.onload=mxUtils.bind(this,function(){y.getContext("2d").drawImage(q,0,0);n(y.toDataURL())});q.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml"><style>em{color:red;}</style><em>I</em> lick <span>cheese</span></div></foreignObject></svg>')}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.createSelectionState=function(){for(var b=this.editor.graph,e=b.getSelectionCells(),g=this.initSelectionState(),n=!0,y=0;y<e.length;y++){var q=b.getCurrentCellStyle(e[y]);"0"!=mxUtils.getValue(q,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(g,e[y],e,n),n=!1)}this.updateSelectionStateForTableCells(g);return g}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph=function(b,e,g,n,y,q){mxGraph.call(this,b,e,g,n);this.themes=y||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=q?q:!1;b=this.baseUrl;e=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<e&&(e=b.indexOf("/",e+2),0<e&&(this.domainUrl=b.substring(0,e)),e=b.lastIndexOf("/"),0<e&&(this.domainPathUrl=b.substring(0,e+1)));this.isHtmlLabel=function(S){S=this.getCurrentCellStyle(S);
return null!=S?"1"==S.html||"wrap"==S[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var E=null,N=null,T=null,F=null,K=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(S,U){if("mouseDown"==U.getProperty("eventName")&&this.isEnabled()){S=U.getProperty("event");var Q=S.getState();U=this.view.scale;if(!mxEvent.isAltDown(S.getEvent())&&null!=Q&&!this.panningHandler.isActive()&&!mxEvent.isControlDown(S.getEvent())){var Y=this.selectionCellsHandler.getHandler(Q.cell); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.editor.getOrCreateFilename=function(){var U=d.defaultFilename,Q=d.getCurrentFile();null!=Q&&(U=null!=Q.getTitle()?Q.getTitle():U);return U};var ma=this.actions.get("print");ma.setEnabled(!mxClient.IS_IOS||!navigator.standalone);ma.visible=ma.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,"insertText"),this.keyHandler.bindAction(83, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(S,U){return!1};this.alternateEdgeStyle="vertical";null==n&&this.loadStylesheet();var R=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var S=R.apply(this,arguments);if(this.graph.pageVisible){var U=[],Q=this.graph.pageFormat,Y=this.graph.pageScale,m=Q.width*Y;Q=Q.height*Y;Y=this.graph.view.translate;for(var C=this.graph.view.scale,M=this.graph.getPageLayout(),ba=0;ba<M.width;ba++)U.push(new mxRectangle(((M.x+ba)*m+Y.x)*C,(M.y*Q+Y.y)*C,m*C,Q*C));for(ba=1;ba<M.height;ba++)U.push(new mxRectangle((M.x* | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
arguments);var P=this.graph.getEditingValue(x.cell,L);"1"==mxUtils.getValue(x.style,"nl2Br","1")&&(P=P.replace(/\n/g,"<br/>"));return P=Graph.sanitizeHtml(P,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(x){if("0"==mxUtils.getValue(x.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var L=Graph.sanitizeHtml(this.textarea.innerHTML,!0);return L="1"==mxUtils.getValue(x.style,"nl2Br","1")?L.replace(/\r\n/g,
"<br/>").replace(/\n/g,"<br/>"):L.replace(/\r\n/g,"").replace(/\n/g,"")};var O=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(x){this.codeViewMode&&this.toggleViewMode();O.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(x){}};var G=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(x,L){this.graph.getModel().beginUpdate();try{G.apply(this,arguments),""==L&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function W(){mxShape.call(this)}function d(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function z(){mxActor.call(this)}function A(){mxActor.call(this)}function H(){mxActor.call(this)}function J(){mxActor.call(this)}function O(){mxActor.call(this)}function G(){mxActor.call(this)}function ja(){mxActor.call(this)}function fa(c,l){this.canvas=c;this.canvas.setLineJoin("round"); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxResources.get("loading")))for(var C=d.length,M=C,ba=[],V=mxUtils.bind(this,function(aa,ka){ba[aa]=ka;if(0==--M){this.spinner.stop();if(null!=J)J(ba);else{var qa=[];Y.getModel().beginUpdate();try{for(aa=0;aa<ba.length;aa++){var ra=ba[aa]();null!=ra&&(qa=qa.concat(ra))}}finally{Y.getModel().endUpdate()}}A(qa)}}),Z=0;Z<C;Z++)mxUtils.bind(this,function(aa){var ka=d[aa];if(null!=ka){var qa=new FileReader;qa.onload=mxUtils.bind(this,function(ra){if(null==H||H(ka))try{if("image/"==ka.type.substring(0, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
return null!=this.corsRegExp&&this.corsRegExp.test(m)||"https://raw.githubusercontent.com/"===m.substring(0,34)||"https://fonts.googleapis.com/"===m.substring(0,29)||"https://fonts.gstatic.com/"===m.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var m=new mxUrlConverter;m.updateBaseUrl();var C=m.convert,M=this;m.convert=function(ba){if(null!=ba){var V="http://"==ba.substring(0,7)||"https://"==ba.substring(0,8);V&&!navigator.onLine?ba=Editor.svgBrokenImage.src:!V||ba.substring(0,
m.baseUrl.length)==m.baseUrl||M.crossOriginImages&&M.isCorsEnabledForUrl(ba)?"chrome-extension://"==ba.substring(0,19)||mxClient.IS_CHROMEAPP||(ba=C.apply(this,arguments)):ba=PROXY_URL+"?url="+encodeURIComponent(ba)}return ba};return m};Editor.createSvgDataUri=function(m){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(m)))};Editor.prototype.convertImageToDataUri=function(m,C){try{var M=!0,ba=window.setTimeout(mxUtils.bind(this,function(){M=!1;C(Editor.svgBrokenImage.src)}),this.timeout); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(x=2);return x};var Q=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=function(){return Q.apply(this,arguments).grow(-this.getSelectionBorderInset())};var Y=null,m=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==Y&&(Y=mxCellRenderer.defaultShapes.tableLine);var x=m.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var L=function(bb,
$a,Ra){for(var db=[],lb=0;lb<bb.length;lb++){var kb=bb[lb];db.push(null==kb?null:new mxPoint((sa+kb.x+$a)*la,(va+kb.y+Ra)*la))}return db},P=this,X=this.graph,ea=X.model,la=X.view.scale,oa=this.state,xa=this.selectionBorder,sa=this.state.origin.x+X.view.translate.x,va=this.state.origin.y+X.view.translate.y;null==x&&(x=[]);var Fa=X.view.getCellStates(ea.getChildCells(this.state.cell,!0));if(0<Fa.length){var Ua=ea.getChildCells(Fa[0].cell,!0),ab=X.getTableLines(this.state.cell,!1,!0),Na=X.getTableLines(this.state.cell, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
!0;Editor.enableRealtime=!0;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.config=null;Editor.configVersion=null;Editor.defaultBorder=5;Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(m){m.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(m,C){return"1"==mxUtils.getValue(m.style, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,n,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
arguments);this.lastX=c;this.lastY=l};fa.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo};var kb=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(c){kb.apply(this,arguments);null==c.handJiggle&&(c.handJiggle=this.createHandJiggle(c))};var Pa=mxShape.prototype.afterPaint; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.prototype.createWipeAnimations=function(b,e){for(var g=[],n=0;n<b.length;n++){var y=this.view.getState(b[n]);null!=y&&null!=y.shape&&(this.model.isEdge(y.cell)&&null!=y.absolutePoints&&1<y.absolutePoints.length?g.push(this.createEdgeWipeAnimation(y,e)):this.model.isVertex(y.cell)&&null!=y.shape.bounds&&g.push(this.createVertexWipeAnimation(y,e)))}return g}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Editor.createRoughCanvas=function(m){var C=rough.canvas({getContext:function(){return m}});C.draw=function(M){var ba=M.sets||[];M=M.options||this.getDefaultOptions();for(var V=0;V<ba.length;V++){var Z=ba[V];switch(Z.type){case "path":null!=M.stroke&&this._drawToContext(m,Z,M);break;case "fillPath":this._drawToContext(m,Z,M);break;case "fillSketch":this.fillSketch(m,Z,M)}}};C.fillSketch=function(M,ba,V){var Z=m.state.strokeColor,aa=m.state.strokeWidth,ka=m.state.strokeAlpha,qa=m.state.dashed,ra=V.fillWeight; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.prototype.isViewer=function(){return!1};Graph.prototype.labelLinkClicked=function(b,e,g){var n=e.getAttribute("href");n!=Graph.sanitizeLink(n)&&Graph.sanitizeNode(e);if(null!=n&&!this.isCustomLink(n)&&(mxEvent.isLeftMouseButton(g)&&!mxEvent.isPopupTrigger(g)||mxEvent.isTouchEvent(g))){if(!this.isEnabled()||this.isCellLocked(b.cell))b=this.isBlankLink(n)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(n),b);mxEvent.consume(g)}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.createTimeout=function(b,e,g){var n=!0,y=null,q=mxUtils.bind(this,function(N){y.clear()&&(n=!1,N=null!=N?N:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,e,g)})},null!=g?g(N):this.handleError(N))}),E=window.setTimeout(q,null!=b?b:this.timeout);y={clear:function(){window.clearTimeout(E);return n},isAlive:function(){return n}};null!=e&&this.tryAndHandle(mxUtils.bind(this,function(){e(y)}),q);return y}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxUtils.bind(this,fa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,fa.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function ia(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function da(){mxActor.call(this)}function S(){mxActor.call(this)}function U(){mxRectangleShape.call(this)}function Q(){mxRectangleShape.call(this)}function Y(){mxCylinder.call(this)}function m(){mxShape.call(this)}function C(){mxShape.call(this)}function M(){mxEllipse.call(this)} | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function X(){mxEllipse.call(this)}function ea(){mxEllipse.call(this)}function la(){mxRhombus.call(this)}function oa(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function sa(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Fa(){mxActor.call(this)}function Ua(){mxActor.call(this)}function ab(){mxActor.call(this)}function Na(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.editor.resolvedFontCss&&this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(d,k),f(d)}catch(v){f(d)}}))}catch(k){f(d)}}))};EditorUi.prototype.exportImage=function(d,f,k,v,z,A,H,J,O,G,ja,fa,ca){O=null!=O?O:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var ia=this.editor.graph.isSelectionEmpty();k=null!=k?k:ia;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,
function(ma){this.spinner.stop();try{this.saveCanvas(ma,z?this.getFileData(!0,null,null,null,k,J):null,O,null==this.pages||0==this.pages.length,ja)}catch(da){this.handleError(da)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(ma){this.spinner.stop();this.handleError(ma)}),null,k,d||1,f,v,null,null,A,H,G,fa,ca)}catch(ma){this.spinner.stop(),this.handleError(ma)}}};EditorUi.prototype.isCorsEnabledForUrl=function(d){return this.editor.isCorsEnabledForUrl(d)};EditorUi.prototype.importXml= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
PrintDialog.createPrintPreview=function(b,e,g,n,y,q,E){e=new mxPrintPreview(b,e,g,n,y,q);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=E;b=b.background;if(null==b||""==b||b==mxConstants.NONE)b="#ffffff";e.backgroundColor=b;var N=e.writeHead;e.writeHead=function(T){N.apply(this,arguments);T.writeln('<style type="text/css">');T.writeln("@media screen {");T.writeln(" body > div { padding:30px;box-sizing:content-box; }");T.writeln("}");T.writeln("</style>")};
return e};PrintDialog.previewEnabled=!0; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
try{this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),0==this.ui.pages.length&&this.ui.pages.push(this.ui.createPage()),0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0)}finally{N.container.style.visibility="";N.model.endUpdate();N.cellRenderer.redraw=R;this.changeListenerEnabled=T;g||(y.history=q,y.indexOfNextAdd=E,y.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)K!=N.mathEnabled?
(this.ui.editor.updateGraphComponents(),N.refresh()):(F!=N.foldingEnabled?N.view.revalidate():N.view.validate(),N.sizeDidChange());null!=this.sync&&this.isRealtime()&&!n&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",g)}return b}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
l,u,p,t){var B=c.view;p=null!=p&&0<p.length?p[0]:null;var D=c.absolutePoints,ha=D[0];D=D[D.length-1];null!=p&&(p=B.transformControlPoint(c,p));null==ha&&null!=l&&(ha=new mxPoint(l.getCenterX(),l.getCenterY()));null==D&&null!=u&&(D=new mxPoint(u.getCenterX(),u.getCenterY()));var I=Bb.x,ua=Bb.y,na=vb.x,Za=vb.y,qb="horizontal"==mxUtils.getValue(c.style,"elbow","horizontal");if(null!=D&&null!=ha){c=function(Ga,Ja,Ia){Ga-=fb.x;var Ha=Ja-fb.y;Ja=(Za*Ga-na*Ha)/(I*Za-ua*na);Ga=(ua*Ga-I*Ha)/(ua*na-I*Za);qb?
(Ia&&(fb=new mxPoint(fb.x+I*Ja,fb.y+ua*Ja),t.push(fb)),fb=new mxPoint(fb.x+na*Ga,fb.y+Za*Ga)):(Ia&&(fb=new mxPoint(fb.x+na*Ga,fb.y+Za*Ga),t.push(fb)),fb=new mxPoint(fb.x+I*Ja,fb.y+ua*Ja));t.push(fb)};var fb=ha;null==p&&(p=new mxPoint(ha.x+(D.x-ha.x)/2,ha.y+(D.y-ha.y)/2));c(p.x,p.y,!0);c(D.x,D.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var Cb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(c,l){if(l==mxEdgeStyle.IsometricConnector){var u= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.prototype.updateAlternateBounds=function(b,e,g){if(null!=b&&null!=e&&null!=this.layoutManager&&null!=e.alternateBounds){var n=this.layoutManager.getLayout(this.model.getParent(b));null!=n&&n.constructor==mxStackLayout&&(n.horizontal?e.alternateBounds.height=0:e.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.isMoveCellsEvent=function(b,e){return mxEvent.isShiftDown(b)||"1"==mxUtils.getValue(e.style,"moveCells","0")}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
xa),sa,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",sa))}finally{X.endUpdate()}return la};Graph.prototype.insertImage=function(x,L,P){if(null!=x&&null!=this.cellEditor.textarea){for(var X=this.cellEditor.textarea.getElementsByTagName("img"),ea=[],la=0;la<X.length;la++)ea.push(X[la]);document.execCommand("insertimage",!1,x);x=this.cellEditor.textarea.getElementsByTagName("img");if(x.length==ea.length+1)for(la=x.length-1;0<=la;la--)if(0==la||x[la]!=ea[la-1]){x[la].setAttribute("width", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function X(){mxEllipse.call(this)}function ea(){mxEllipse.call(this)}function la(){mxRhombus.call(this)}function oa(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function sa(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Fa(){mxActor.call(this)}function Ua(){mxActor.call(this)}function ab(){mxActor.call(this)}function Na(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"-rev_"+this.ui.hashValue(N):"")+(null!=z?"-latest_"+z:"")+(null!=k?"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+W,action:y,label:"user_"+R+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+d+"-patches_"+e.length+"-size_"+this.getSize()})}catch(A){}}),b)}}catch(k){}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
["clearWaypoints"],null,Y)}1==f.getSelectionCount()&&this.addMenuItems(U,["enterGroup"],null,Y);m=d.getSelectionState();null!=m.mergeCell?this.addMenuItem(U,"mergeCells"):(1<m.style.colspan||1<m.style.rowspan)&&this.addMenuItem(U,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return n};Graph.prototype.createParent=function(b,e,g,n,y){b=this.cloneCell(b);for(var q=0;q<g;q++){var E=this.cloneCell(e),N=this.getCellGeometry(E);null!=N&&(N.x+=q*n,N.y+=q*y);b.insert(E)}return b}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
v.getAttribute("placeholders"));null!=F&&mxEvent.isShiftDown(F)||k.setAttribute("label",q.convertValueToString(f));W.setValue(f,k)}F=null!=K?K:F;var W=q.getModel();if(q.isEnabled()&&!q.isSelectionEmpty()&&null!=n.copiedValue){W.beginUpdate();try{var d=q.getEditableCells(q.getSelectionCells());if(0==d.length)R(W.getRoot(),n.copiedValue);else for(K=0;K<d.length;K++)R(d[K],n.copiedValue)}finally{W.endUpdate()}}},null,null,"Alt+Shift+E");this.addAction("delete",function(F,K){F=null!=K?K:F;null!=F&&mxEvent.isShiftDown(F)? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
B,D,l+p/2,u+t/2);s=this.scale;l=this.bounds.x/s;u=this.bounds.y/s;p=this.bounds.width/s;t=this.bounds.height/s;this.paintTableForeground(c,l,u,p,t)}};e.prototype.paintTableForeground=function(c,l,u,p,t){p=this.state.view.graph.getTableLines(this.state.cell,"0"!=mxUtils.getValue(this.state.style,"rowLines","1"),"0"!=mxUtils.getValue(this.state.style,"columnLines","1"));for(t=0;t<p.length;t++)b.prototype.paintTableLine(c,p[t],l,u)};e.prototype.configurePointerEvents=function(c){0==this.getTitleSize()?
c.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",e);mxUtils.extend(g,e);g.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",g);mxUtils.extend(n,mxCylinder);n.prototype.size=20;n.prototype.darkOpacity=0;n.prototype.darkOpacity2=0;n.prototype.paintVertexShape=function(c,l,u,p,t){var B=Math.max(0,Math.min(p,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),D=Math.max(-1,Math.min(1, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
f&&(H.responseType="blob");H.onload=function(J){if(200<=this.status&&300>this.status)if("txt"==f)k(this.response);else{var O=new FileReader;O.readAsDataURL(this.response);O.onloadend=function(G){var ja=new Image;ja.onload=function(){try{var fa=ja.width,ca=ja.height;if(0==fa&&0==ca){var ia=O.result,ma=ia.indexOf(","),da=decodeURIComponent(escape(atob(ia.substring(ma+1)))),S=mxUtils.parseXml(da).getElementsByTagName("svg");0<S.length&&(fa=parseFloat(S[0].getAttribute("width")),ca=parseFloat(S[0].getAttribute("height")))}k(O.result,
fa,ca)}catch(U){v(U)}};ja.src=O.result};O.onerror=function(G){v(G)}}else v(J)};H.onerror=function(J){v(J)};H.send()};EditorUi.prototype.insertAsPreText=function(d,f,k){var v=this.editor.graph,z=null;v.getModel().beginUpdate();try{z=v.insertVertex(null,null,"<pre>"+d+"</pre>",f,k,1,1,"text;html=1;align=left;verticalAlign=top;"),v.updateCellSize(z,!0)}finally{v.getModel().endUpdate()}return z};EditorUi.prototype.insertTextAt=function(d,f,k,v,z,A,H,J){A=null!=A?A:!0;H=null!=H?H:!0;if(null!=d)if(Graph.fileSupport&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
M()})):null!=window.console&&console.log("Error in MathJax.typeset: "+ka.toString())}};window.MathJax=null!=C?C:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var aa=0;aa<Editor.mathJaxQueue.length;aa++)Editor.doMathJaxRender(Editor.mathJaxQueue[aa])}}};Editor.MathJaxRender=function(aa){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(aa): | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
}catch(A){null!=g&&g(A)}};DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var e=new mxCodec(mxUtils.createXmlDocument()),g=e.document.createElement("mxfile");if(null!=b)for(var n=0;n<b.length;n++){var y=e.encode(new mxGraphModel(b[n].root));"1"!=urlParams.dev&&(y=this.ui.anonymizeNode(y,!0));y.setAttribute("id",b[n].getId());b[n].viewState&&this.ui.editor.graph.saveViewState(b[n].viewState,y,!0);g.appendChild(y)}return mxUtils.getPrettyXml(g)}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
A?A:!0;var O=document.createElement("input");O.style.marginRight="8px";O.style.marginTop="16px";O.setAttribute("type",H?"radio":"checkbox");H="geCheckbox-"+Editor.guid();O.id=H;null!=J&&O.setAttribute("name",J);k&&(O.setAttribute("checked","checked"),O.defaultChecked=!0);v&&O.setAttribute("disabled","disabled");A&&(d.appendChild(O),k=document.createElement("label"),mxUtils.write(k,f),k.setAttribute("for",H),d.appendChild(k),z||mxUtils.br(d));return O};EditorUi.prototype.addEditButton=function(d,f){var k=
this.addCheckbox(d,mxResources.get("edit")+":",!0,null,!0);k.style.marginLeft="24px";var v=this.getCurrentFile(),z="";null!=v&&v.getMode()!=App.MODE_DEVICE&&v.getMode()!=App.MODE_BROWSER&&(z=window.location.href);var A=document.createElement("select");A.style.maxWidth="200px";A.style.width="auto";A.style.marginLeft="8px";A.style.marginRight="10px";A.className="geBtn";v=document.createElement("option");v.setAttribute("value","blank");mxUtils.write(v,mxResources.get("makeCopy"));A.appendChild(v);v=
document.createElement("option");v.setAttribute("value","custom");mxUtils.write(v,mxResources.get("custom")+"...");A.appendChild(v);d.appendChild(A);mxEvent.addListener(A,"change",mxUtils.bind(this,function(){if("custom"==A.value){var H=new FilenameDialog(this,z,mxResources.get("ok"),function(J){null!=J?z=J:A.value="blank"},mxResources.get("url"),null,null,null,null,function(){A.value="blank"});this.showDialog(H.container,300,80,!0,!1);H.init()}}));mxEvent.addListener(k,"change",mxUtils.bind(this,
function(){k.checked&&(null==f||f.checked)?A.removeAttribute("disabled"):A.setAttribute("disabled","disabled")}));mxUtils.br(d);return{getLink:function(){return k.checked?"blank"===A.value?"_blank":z:null},getEditInput:function(){return k},getEditSelect:function(){return A}}};EditorUi.prototype.addLinkSection=function(d,f){function k(){var J=document.createElement("div");J.style.width="100%";J.style.height="100%";J.style.boxSizing="border-box";null!=A&&A!=mxConstants.NONE?(J.style.border="1px solid black", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.updateCssForMarker=function(b,e,g,n,y){b.style.display="inline-flex";b.style.alignItems="center";b.style.justifyContent="center";b.innerText="";"flexArrow"==g?b.className=null!=n&&n!=mxConstants.NONE?"geSprite geSprite-"+e+"blocktrans":"geSprite geSprite-noarrow":(g=this.getImageForMarker(n,y),null!=g?(n=document.createElement("img"),n.className="geAdaptiveAsset",n.setAttribute("src",g),b.className="","end"==e&&mxUtils.setPrefixedStyle(n.style,"transform","scaleX(-1)"),b.appendChild(n)):
(b.className="geSprite geSprite-noarrow",b.innerHTML=mxUtils.htmlEntities(mxResources.get("none")),b.style.backgroundImage="none",b.style.fontSize="11px",b.style.filter="none"))}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
var G=this.click;this.click=function(S){var U=null==S.state&&null!=S.sourceState&&this.isCellLocked(this.getLayerForCell(S.sourceState.cell));if(this.isEnabled()&&!U||S.isConsumed())return G.apply(this,arguments);U=U?S.sourceState.cell:S.getCell();null!=U&&(U=this.getClickableLinkForCell(U),null!=U&&(this.isCustomLink(U)?this.customLinkClicked(U):this.openLink(U)))};this.tooltipHandler.getStateForEvent=function(S){return S.sourceState};var ja=this.tooltipHandler.show;this.tooltipHandler.show=function(){ja.apply(this, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.prototype.replaceElement=function(x,L){L=x.ownerDocument.createElement(null!=L?L:"span");for(var P=Array.prototype.slice.call(x.attributes);attr=P.pop();)L.setAttribute(attr.nodeName,attr.nodeValue);L.innerHTML=x.innerHTML;x.parentNode.replaceChild(L,x)};Graph.prototype.processElements=function(x,L){if(null!=x){x=x.getElementsByTagName("*");for(var P=0;P<x.length;P++)L(x[P])}};Graph.prototype.updateLabelElements=function(x,L,P){x=null!=x?x:this.getSelectionCells();for(var X=document.createElement("div"), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
ta);mxUtils.extend(Aa,mxRectangleShape);Aa.prototype.dx=20;Aa.prototype.dy=20;Aa.prototype.isHtmlAllowed=function(){return!1};Aa.prototype.paintForeground=function(c,l,u,p,t){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var B=0;if(this.isRounded){var D=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;B=Math.max(B,Math.min(p*D,t*D))}D=Math.max(B,Math.min(p,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));B=Math.max(B,Math.min(t,
parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.begin();c.moveTo(l,u+B);c.lineTo(l+p,u+B);c.end();c.stroke();c.begin();c.moveTo(l+D,u);c.lineTo(l+D,u+t);c.end();c.stroke()};mxCellRenderer.registerShape("internalStorage",Aa);mxUtils.extend(Ea,mxActor);Ea.prototype.dx=20;Ea.prototype.dy=20;Ea.prototype.redrawPath=function(c,l,u,p,t){l=Math.max(0,Math.min(p,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dy",this.dy)))); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.path.push(this.canvas.format(this.lastY))};m.prototype.lineTo=function(Z,aa){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,Z,aa),this.lastX=Z,this.lastY=aa)};m.prototype.moveTo=function(Z,aa){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,Z,aa),this.lastX=Z,this.lastY=aa,this.firstX=Z,this.firstY=aa)};m.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
return Q};var z=f.setBackgroundImage;f.setBackgroundImage=function(U){null!=U&&null!=U.originalSrc&&(U=d.createImageForPageLink(U.originalSrc,d.currentPage,this));z.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(U,Q){U=null!=f.backgroundImage?f.backgroundImage.originalSrc: | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
p,u+t/2);c.end();c.stroke()};mxCellRenderer.registerShape("sortShape",la);mxUtils.extend(oa,mxEllipse);oa.prototype.paintVertexShape=function(c,l,u,p,t){c.begin();c.moveTo(l,u);c.lineTo(l+p,u);c.lineTo(l+p/2,u+t/2);c.close();c.fillAndStroke();c.begin();c.moveTo(l,u+t);c.lineTo(l+p,u+t);c.lineTo(l+p/2,u+t/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",oa);mxUtils.extend(xa,mxEllipse);xa.prototype.paintVertexShape=function(c,l,u,p,t){var B=c.state.strokeWidth/2,D=10+2*B,ha=u+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
focus:function(){v.focus()}}};EditorUi.prototype.createUrlParameters=function(d,f,k,v,z,A,H){H=null!=H?H:[];v&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||H.push("lightbox=1"),"auto"!=d&&H.push("target="+d),null!=f&&f!=mxConstants.NONE&&H.push("highlight="+("#"==f.charAt(0)?f.substring(1):f)),null!=z&&0<z.length&&H.push("edit="+encodeURIComponent(z)),A&&H.push("layers=1"),this.editor.graph.foldingEnabled&&H.push("nav=1"));k&&null!=this.currentPage&&null!=this.pages&&
this.currentPage!=this.pages[0]&&H.push("page-id="+this.currentPage.getId());return H};EditorUi.prototype.createLink=function(d,f,k,v,z,A,H,J,O,G){O=this.createUrlParameters(d,f,k,v,z,A,O);d=this.getCurrentFile();f=!0;null!=H?k="#U"+encodeURIComponent(H):(d=this.getCurrentFile(),J||null==d||d.constructor!=window.DriveFile?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+d.getHash(),f=!1));f&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0),!1,null,0,.5*(u-p)));return c};d.prototype.getConstraints=function(c,l,u){c=[];l=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,l));c.push(new mxConnectionConstraint(new mxPoint(1,
0),!1,null,0,l));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1,null,0,-l));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1,null,0,-l));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,l+.5*(.5*u-l)));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,l+.5*(.5*u-l)));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,u-l-.5*(.5*u-l)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u-l-.5*(.5*u-l)));c.push(new mxConnectionConstraint(new mxPoint(.145,
0),!1,null,0,.29*l));c.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*l));c.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-l));c.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-l));return c};k.prototype.getConstraints=function(c,l,u){c=[];var p=Math.max(0,Math.min(l,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth)))),t=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
TableLayout.prototype.getRowLayout=function(b,e){var g=this.graph.model.getChildCells(b,!0),n=this.graph.getActualStartSize(b,!0);b=this.getSize(g,!0);e=e-n.x-n.width;var y=[];n=n.x;for(var q=0;q<g.length;q++){var E=this.graph.getCellGeometry(g[q]);null!=E&&(n+=(null!=E.alternateBounds?E.alternateBounds.width:E.width)*e/b,y.push(Math.round(n)))}return y}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxUtils.bind(this,fa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,fa.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function ia(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function da(){mxActor.call(this)}function S(){mxActor.call(this)}function U(){mxRectangleShape.call(this)}function Q(){mxRectangleShape.call(this)}function Y(){mxCylinder.call(this)}function m(){mxShape.call(this)}function C(){mxShape.call(this)}function M(){mxEllipse.call(this)} | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"Control"!=L.type&&(x=L.createRange(),x.collapse(!0),P=L.createRange(),P.setEndPoint("StartToStart",x),P.select())};Graph.prototype.flipEdgePoints=function(x,L,P){var X=this.getCellGeometry(x);if(null!=X){X=X.clone();if(null!=X.points)for(var ea=0;ea<X.points.length;ea++)L?X.points[ea].x=P+(P-X.points[ea].x):X.points[ea].y=P+(P-X.points[ea].y);ea=function(la){null!=la&&(L?la.x=P+(P-la.x):la.y=P+(P-la.y))};ea(X.getTerminalPoint(!0));ea(X.getTerminalPoint(!1));this.model.setGeometry(x,X)}};Graph.prototype.flipChildren= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
E)};Graph.prototype.isGlassState=function(E){E=mxUtils.getValue(E.style,mxConstants.STYLE_SHAPE,null);return"label"==E||"rectangle"==E||"internalStorage"==E||"ext"==E||"umlLifeline"==E||"swimlane"==E||"process"==E};Graph.prototype.isRoundedState=function(E){return null!=E.shape?E.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(E.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(E){var N=mxUtils.getValue(E.style,mxConstants.STYLE_SHAPE,null); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.handleError(ia)}))})))}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,H,null,1<J,O,v,A,z);J=this.isServices(J)?4<J?390:280:160;this.showDialog(d.container,420,J,!0,!0);d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,f,k,v,z,A){};EditorUi.prototype.pickFolder=function(d,f,k){f(null)};EditorUi.prototype.exportSvg= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
z=v.indexOf(",");0<z&&(z=N.getIndexById(v.substring(z+1)),0<=z&&(k=N.getImageForGraphModel(Editor.parseDiagramNode(N.diagrams[z])),k.originalSrc=v))}W.apply(this,arguments)};var d=this.graph.getGraphBounds;this.graph.getGraphBounds=function(k){var v=d.apply(this,arguments);k=this.backgroundImage;if(null!=k){var z=this.view.translate,A=this.view.scale;v=mxRectangle.fromRectangle(v);v.add(new mxRectangle((z.x+k.x)*A,(z.y+k.y)*A,k.width*A,k.height*A))}return v};this.addListener("xmlNodeChanged",F);F(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(x){var L=x.getEvent();return null==x.getState()&&!mxEvent.isMouseEvent(L)||mxEvent.isPopupTrigger(L)&&(null==x.getState()||mxEvent.isControlDown(L)||mxEvent.isShiftDown(L))};var aa=mxGraphHandler.prototype.mouseDown;mxGraphHandler.prototype.mouseDown=function(x,L){aa.apply(this,arguments);mxEvent.isTouchEvent(L.getEvent())&&this.graph.isCellSelected(L.getCell())&&1<this.graph.getSelectionCount()&&(this.delayedSelection=!1)}}else mxPanningHandler.prototype.isPanningTrigger=function(x){var L= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
D.x-B.x),Math.min(B.height,D.y-B.y)))/c)},!1)];u&&mxUtils.getValue(p.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(pb(p));return t}},gb=function(c,l,u,p,t){u=null!=u?u:.5;return function(B){var D=[hb(B,["size"],function(ha){var I=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ua=parseFloat(mxUtils.getValue(this.state.style,"size",I?t:c));return new mxPoint(ha.x+Math.max(0,Math.min(.5*ha.width,ua*(I?1:ha.width))),ha.getCenterY())},function(ha,I,ua){ha=null!=t&&"0"!=mxUtils.getValue(this.state.style,
"fixedSize","0")?I.x-ha.x:Math.max(0,Math.min(u,(I.x-ha.x)/ha.width));this.state.style.size=ha},!1,p)];l&&mxUtils.getValue(B.style,mxConstants.STYLE_ROUNDED,!1)&&D.push(pb(B));return D}},tb=function(c,l,u){c=null!=c?c:.5;return function(p){var t=[hb(p,["size"],function(B){var D=null!=u?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ha=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,"size",D?u:l)));return new mxPoint(B.x+Math.min(.75*B.width*c,ha*(D?.75:.75*B.width)),B.y+B.height/ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.handleError(ia)}))})))}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,H,null,1<J,O,v,A,z);J=this.isServices(J)?4<J?390:280:160;this.showDialog(d.container,420,J,!0,!0);d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,f,k,v,z,A){};EditorUi.prototype.pickFolder=function(d,f,k){f(null)};EditorUi.prototype.exportSvg= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.insertHandler(J,null,null,O.defaultVertexStyle,O.defaultEdgeStyle,!1,!0)}finally{O.model.endUpdate()}}}catch(Y){if(z)throw Y;this.handleError(Y)}return J};EditorUi.prototype.updatePageLinks=function(d,f){for(var k=0;k<f.length;k++)this.updatePageLinksForCell(d,f[k].root),null!=f[k].viewState&&this.updateBackgroundPageLink(d,f[k].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(d,f){try{if(null!=f&&Graph.isPageLink(f.originalSrc)){var k=d[f.originalSrc.substring(f.originalSrc.indexOf(",")+ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.isEnabled()&&(S=U.getProperty("event"),U=S.getState(),!mxEvent.isAltDown(S.getEvent())&&null!=U&&this.model.isEdge(U.cell)&&(E=new mxPoint(S.getGraphX(),S.getGraphY()),K=this.isCellSelected(U.cell),T=U,N=S,null!=U.text&&null!=U.text.boundingBox&&mxUtils.contains(U.text.boundingBox,S.getGraphX(),S.getGraphY())?F=mxEvent.LABEL_HANDLE:(U=this.selectionCellsHandler.getHandler(U.cell),null!=U&&null!=U.bends&&0<U.bends.length&&(F=U.getHandleForEvent(S)))))}));this.addMouseListener({mouseDown:function(S,
U){},mouseMove:mxUtils.bind(this,function(S,U){S=this.selectionCellsHandler.handlers.map;for(var Q in S)if(null!=S[Q].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(U.getEvent())){var Y=this.tolerance;if(null!=E&&null!=T&&null!=N){if(Q=T,null!=F||Math.abs(E.x-U.getGraphX())>Y||Math.abs(E.y-U.getGraphY())>Y){var m=this.selectionCellsHandler.getHandler(Q.cell);if(null!=m&&null!=m.bends&&0<m.bends.length){m.redrawHandles();S=null!=F?F:m.getHandleForEvent(N);var C= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};m.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};m.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0>ra&&(ra=V.strokeWidth/2);m.setStrokeAlpha(m.state.fillAlpha);m.setStrokeColor(V.fill||"");m.setStrokeWidth(ra);m.setDashed(!1);this._drawToContext(M,ba,V);m.setDashed(qa);m.setStrokeWidth(aa);m.setStrokeColor(Z);m.setStrokeAlpha(ka)};C._drawToContext=function(M,ba,V){M.begin();for(var Z=0;Z<ba.ops.length;Z++){var aa=ba.ops[Z],ka=aa.data;switch(aa.op){case "move":M.moveTo(ka[0],ka[1]);break;case "bcurveTo":M.curveTo(ka[0],ka[1],ka[2],ka[3],ka[4],ka[5]);break;case "lineTo":M.lineTo(ka[0],ka[1])}}M.end();
"fillPath"===ba.type&&V.filled?M.fill():M.stroke()};return C};(function(){function m(Z,aa,ka){this.canvas=Z;this.rc=aa;this.shape=ka;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,m.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,m.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,m.prototype.rect);this.originalRoundrect=this.canvas.roundrect; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
if(0<T.length){if(null!=this.pageId)for(var F=0;F<T.length;F++)if(this.pageId==T[F].getAttribute("id")){this.currentPage=F;break}var K=this.graph.getGlobalVariable;N=this;this.graph.getGlobalVariable=function(k){var v=T[N.currentPage];return"page"==k?v.getAttribute("name")||"Page-"+(N.currentPage+1):"pagenumber"==k?N.currentPage+1:"pagecount"==k?T.length:K.apply(this,arguments)}}}this.diagrams=[];var R=null;this.selectPage=function(k){this.handlingResize||(this.currentPage=mxUtils.mod(k,this.diagrams.length),
this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};this.selectPageById=function(k){k=this.getIndexById(k);var v=0<=k;v&&this.selectPage(k);return v};F=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=R&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),R=this.xmlNode)});var W=this.graph.setBackgroundImage;this.graph.setBackgroundImage=function(k){if(null!=k&&Graph.isPageLink(k.src)){var v=k.src, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.scale=1,this.translate.x=0,this.translate.y=0);e.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var g=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(E){E=g.apply(this,arguments);for(var N=[],T=0;T<E.length;T++)this.isTableRow(E[T])||this.isTableCell(E[T])||N.push(E[T]);return N};var n=mxGraph.prototype.getCellsForUngroup; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0>mxUtils.indexOf(x,la)&&0>mxUtils.indexOf(P,la))){for(var oa=this.model.getChildCells(la,!0),xa=0,sa=0;sa<oa.length;sa++)0<=mxUtils.indexOf(x,oa[sa])&&xa++;xa==oa.length&&P.push(la)}P.push(x[X])}P=d.apply(this,[P,L])}finally{this.model.endUpdate()}return P};Graph.prototype.updateCustomLinks=function(x,L,P){P=null!=P?P:new Graph;for(var X=0;X<L.length;X++)null!=L[X]&&P.updateCustomLinksForCell(x,L[X],P)};Graph.prototype.updateCustomLinksForCell=function(x,L){this.doUpdateCustomLinksForCell(x,L);for(var P=
this.model.getChildCount(L),X=0;X<P;X++)this.updateCustomLinksForCell(x,this.model.getChildAt(L,X))};Graph.prototype.doUpdateCustomLinksForCell=function(x,L){};Graph.prototype.getAllConnectionConstraints=function(x,L){if(null!=x){L=mxUtils.getValue(x.style,"points",null);if(null!=L){x=[];try{var P=JSON.parse(L);for(L=0;L<P.length;L++){var X=P[L];x.push(new mxConnectionConstraint(new mxPoint(X[0],X[1]),2<X.length?"0"!=X[2]:!0,null,3<X.length?X[3]:0,4<X.length?X[4]:0))}}catch(la){}return x}if(null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
y.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);y.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);y.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);y.getView().addListener("unitChanged",this.selectionStateListener);this.editor.chromeless&&!this.editor.editable&&(this.footerHeight=0,y.isEnabled=function(){return!1},y.panningHandler.isForcePanningEvent=function(Q){return!mxEvent.isPopupTrigger(Q.getEvent())});this.actions=new Actions(this);this.menus= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0),new mxPoint(p-l,0),new mxPoint(p,.5*t),new mxPoint(p-l,t),new mxPoint(l,t),new mxPoint(0,.5*t)],this.isRounded,u,!0)};mxCellRenderer.registerShape("hexagon",S);mxUtils.extend(U,mxRectangleShape);U.prototype.isHtmlAllowed=function(){return!1};U.prototype.paintForeground=function(c,l,u,p,t){var B=Math.min(p/5,t/5)+1;c.begin();c.moveTo(l+p/2,u+B);c.lineTo(l+p/2,u+t-B);c.moveTo(l+B,u+t/2);c.lineTo(l+p-B,u+t/2);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
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,f,k,v,z,A,H){d=new ImageDialog(this,d,f,k,v,z,A,H);this.showDialog(d.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);d.init()};EditorUi.prototype.showLocalStorageDialog=function(d,f,k,v,z,A){var H=localStorage.getItem(f); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(Va){try{null!=Va&&this.addFontCss(Aa,Va),this.loadFonts(za)}catch(La){null!=V&&V(La)}}))}catch(Va){null!=V&&V(Va)}}),M,pa)}catch(Aa){null!=V&&V(Aa)}};Editor.crcTable=[];for(var y=0;256>y;y++)for(var q=y,E=0;8>E;E++)q=1==(q&1)?3988292384^q>>>1:q>>>1,Editor.crcTable[y]=q;Editor.updateCRC=function(m,C,M,ba){for(var V=0;V<ba;V++)m=Editor.crcTable[(m^C.charCodeAt(M+V))&255]^m>>>8;return m};Editor.crc32=function(m){for(var C=-1,M=0;M<m.length;M++)C=C>>>8^Editor.crcTable[(C^m.charCodeAt(M))&255];
return(C^-1)>>>0};Editor.writeGraphModelToPng=function(m,C,M,ba,V){function Z(pa,wa){var Da=qa;qa+=wa;return pa.substring(Da,qa)}function aa(pa){pa=Z(pa,4);return pa.charCodeAt(3)+(pa.charCodeAt(2)<<8)+(pa.charCodeAt(1)<<16)+(pa.charCodeAt(0)<<24)}function ka(pa){return String.fromCharCode(pa>>24&255,pa>>16&255,pa>>8&255,pa&255)}m=m.substring(m.indexOf(",")+1);m=window.atob?atob(m):Base64.decode(m,!0);var qa=0;if(Z(m,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=V&&V(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return l*=p,new mxRectangle(c.x,c.y+l,u,p-2*l);l*=u;return new mxRectangle(c.x+l,c.y,u-2*l,p)}return c};mxCellRenderer.registerShape("tape",A);mxUtils.extend(H,mxActor);H.prototype.size=.3;H.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*c.height):null};H.prototype.redrawPath=function(c,l,u,
p,t){l=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,0);c.lineTo(p,0);c.lineTo(p,t-l/2);c.quadTo(3*p/4,t-1.4*l,p/2,t-l/2);c.quadTo(p/4,t-l*(1-1.4),0,t-l/2);c.lineTo(0,l/2);c.close();c.end()};mxCellRenderer.registerShape("document",H);var lb=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(c,l,u,p){var t=mxUtils.getValue(this.style,"size");return null!=t?p*Math.max(0,Math.min(1,t)):lb.apply(this,arguments)};mxCylinder.prototype.getLabelMargins= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
x.y+x.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var V=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(x,L){V.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display=
"none")};var Z=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(x,L){Z.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(x,L){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));var P=this.graph.view.translate,X=this.graph.view.scale,ea=this.roundLength(L.x/X-P.x);P=this.roundLength(L.y/X-P.y);X=this.graph.view.unit;this.hint.innerHTML= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
arguments));this.originalClose.apply(this.canvas,arguments)};fa.prototype.quadTo=function(c,l,u,p){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=u;this.lastY=p};fa.prototype.curveTo=function(c,l,u,p,t,B){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=B};fa.prototype.arcTo=function(c,l,u,p,t,B,D){this.originalArcTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=D};fa.prototype.lineTo=function(c,l){if(null!=this.lastX&&null!=this.lastY){var u=function(na){return"number"===
typeof na?na?0>na?-1:1:na===na?0:NaN:NaN},p=Math.abs(c-this.lastX),t=Math.abs(l-this.lastY),B=Math.sqrt(p*p+t*t);if(2>B){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;return}var D=Math.round(B/10),ha=this.defaultVariation;5>D&&(D=5,ha/=3);var I=u(c-this.lastX)*p/D;u=u(l-this.lastY)*t/D;p/=B;t/=B;for(B=0;B<D;B++){var ua=(Math.random()-.5)*ha;this.originalLineTo.call(this.canvas,I*B+this.lastX-ua*t,u*B+this.lastY-ua*p)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,
arguments);this.lastX=c;this.lastY=l};fa.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo};var kb=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(c){kb.apply(this,arguments);null==c.handJiggle&&(c.handJiggle=this.createHandJiggle(c))};var Pa=mxShape.prototype.afterPaint; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
q);mxUtils.extend(E,mxActor);E.prototype.size=20;E.prototype.redrawPath=function(c,l,u,p,t){l=Math.min(p,t/Ra);c.translate((p-l)/2,(t-l)/2+l/4);c.moveTo(0,.25*l);c.lineTo(.5*l,l*db);c.lineTo(l,.25*l);c.lineTo(.5*l,(.5-db)*l);c.lineTo(0,.25*l);c.close();c.end()};mxCellRenderer.registerShape("isoRectangle",E);mxUtils.extend(N,mxCylinder);N.prototype.size=20;N.prototype.redrawPath=function(c,l,u,p,t,B){l=Math.min(p,t/(.5+Ra));B?(c.moveTo(0,.25*l),c.lineTo(.5*l,(.5-db)*l),c.lineTo(l,.25*l),c.moveTo(.5* | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
[c,p,u]);3<=c.state.strokeWidth&&(p=mxUtils.getValue(this.style,"fillColor",null),null!=p&&(c.setStrokeColor(p),c.setStrokeWidth(c.state.strokeWidth-2),c.setDashed(t,B),bb.prototype.origPaintEdgeShape.apply(this,[c,l,u])))};mxCellRenderer.registerShape("filledEdge",bb);"undefined"!==typeof StyleFormatPanel&&function(){var c=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var l=this.editorUi.getSelectionState(),u=c.apply(this,arguments);"umlFrame"==
l.style.shape&&u.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return u}}();mxMarker.addMarker("dash",function(c,l,u,p,t,B,D,ha,I,ua){var na=t*(D+I+1),Za=B*(D+I+1);return function(){c.begin();c.moveTo(p.x-na/2-Za/2,p.y-Za/2+na/2);c.lineTo(p.x+Za/2-3*na/2,p.y-3*Za/2-na/2);c.stroke()}});mxMarker.addMarker("box",function(c,l,u,p,t,B,D,ha,I,ua){var na=t*(D+I+1),Za=B*(D+I+1),qb=p.x+na/2,fb=p.y+Za/2;p.x-=na;p.y-=Za;return function(){c.begin();c.moveTo(qb-na/2- | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
[mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_NORTH],Pa=mxUtils.getValue(lb.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);this.setCellStyles(mxConstants.STYLE_DIRECTION,kb[mxUtils.mod(mxUtils.indexOf(kb,Pa)+(L?-1:1),kb.length)],[la])}X.push(la)}}}finally{P.endUpdate()}return X};Graph.prototype.stencilHasPlaceholders=function(x){if(null!=x&&null!=x.fgNode)for(x=x.fgNode.firstChild;null!=x;){if("text"==x.nodeName&&"1"==x.getAttribute("placeholders"))return!0; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0),new mxPoint(p-l,0),new mxPoint(p,.5*t),new mxPoint(p-l,t),new mxPoint(l,t),new mxPoint(0,.5*t)],this.isRounded,u,!0)};mxCellRenderer.registerShape("hexagon",S);mxUtils.extend(U,mxRectangleShape);U.prototype.isHtmlAllowed=function(){return!1};U.prototype.paintForeground=function(c,l,u,p,t){var B=Math.min(p/5,t/5)+1;c.begin();c.moveTo(l+p/2,u+B);c.lineTo(l+p/2,u+t-B);c.moveTo(l+B,u+t/2);c.lineTo(l+p-B,u+t/2);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
["clearWaypoints"],null,Y)}1==f.getSelectionCount()&&this.addMenuItems(U,["enterGroup"],null,Y);m=d.getSelectionState();null!=m.mergeCell?this.addMenuItem(U,"mergeCells"):(1<m.style.colspan||1<m.style.rowspan)&&this.addMenuItem(U,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(K){y.apply(this,arguments);this.graph.model.isEdge(K.cell)&&1!=K.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(K)};mxGraphView.prototype.updateLineJumps=function(K){var R=K.absolutePoints;if(Graph.lineJumpsEnabled){var W=null!=K.routedPoints,d=null;if(null!=R&&null!=this.validEdges&&"none"!==mxUtils.getValue(K.style,"jumpStyle","none")){var f=function(ia,ma,da){var S=new mxPoint(ma,da);S.type=ia;d.push(S);S=null!=K.routedPoints?K.routedPoints[d.length-1]:null;return null==S||S.type!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
DrawioFile.prototype.saveFile=function(b,e,g,n){};DrawioFile.prototype.getFileUrl=function(){return null};DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
R);mxUtils.extend(W,mxShape);W.prototype.size=15;W.prototype.paintVertexShape=function(c,l,u,p,t){var B=Math.max(0,Math.min(.5*t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.translate(l,u);0==B?(c.rect(0,0,p,t),c.fillAndStroke()):(c.begin(),c.moveTo(0,B),c.arcTo(.5*p,B,0,0,1,.5*p,0),c.arcTo(.5*p,B,0,0,1,p,B),c.lineTo(p,t-B),c.arcTo(.5*p,B,0,0,1,.5*p,t),c.arcTo(.5*p,B,0,0,1,0,t-B),c.close(),c.fillAndStroke(),c.setShadow(!1),c.begin(),c.moveTo(p,B),c.arcTo(.5*p,B,0,0,1,.5*p,2*B),c.arcTo(.5*
p,B,0,0,1,0,B),c.stroke())};mxCellRenderer.registerShape("cylinder2",W);mxUtils.extend(d,mxCylinder);d.prototype.size=15;d.prototype.paintVertexShape=function(c,l,u,p,t){var B=Math.max(0,Math.min(.5*t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),D=mxUtils.getValue(this.style,"lid",!0);c.translate(l,u);0==B?(c.rect(0,0,p,t),c.fillAndStroke()):(c.begin(),D?(c.moveTo(0,B),c.arcTo(.5*p,B,0,0,1,.5*p,0),c.arcTo(.5*p,B,0,0,1,p,B)):(c.moveTo(0,0),c.arcTo(.5*p,B,0,0,0,.5*p,B),c.arcTo(.5*p,B, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
!1,Y=function(){Q||(Q=!0,window.setTimeout(function(){var m=y.getSelectedEditingElement();null!=m&&(m=mxUtils.getCurrentStyle(m),null!=m&&null!=n.toolbar&&(n.toolbar.setFontName(Graph.stripQuotes(m.fontFamily)),n.toolbar.setFontSize(parseInt(m.fontSize))));Q=!1},0))};mxEvent.addListener(y.cellEditor.textarea,"input",Y);mxEvent.addListener(y.cellEditor.textarea,"touchend",Y);mxEvent.addListener(y.cellEditor.textarea,"mouseup",Y);mxEvent.addListener(y.cellEditor.textarea,"keyup",Y);Y()}};var ma=y.cellEditor.stopEditing; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
40;Z.prototype.isHtmlAllowed=function(){return!1};Z.prototype.getLabelBounds=function(c){var l=Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(c.x,c.y,c.width,l)};Z.prototype.paintBackground=function(c,l,u,p,t){var B=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),D=mxUtils.getValue(this.style,"participant");null==D||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,c,l, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
y.cellEditor.stopEditing=function(Q,Y){try{ma.apply(this,arguments),ca()}catch(m){n.handleError(m)}};y.container.setAttribute("tabindex","0");y.container.style.cursor="default";if(window.self===window.top&&null!=y.container.parentNode)try{y.container.focus()}catch(Q){}var da=y.fireMouseEvent;y.fireMouseEvent=function(Q,Y,m){try{Q==mxEvent.MOUSE_DOWN&&this.container.focus(),da.apply(this,arguments)}catch(C){n.handleError(C)}};var S=y.foldCells;y.foldCells=function(Q,Y,m,C,M){try{S.apply(this,arguments)}catch(ba){n.handleError(ba)}}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxConstants.NONE,1,!0);Ra.isDashed=xa.isDashed;Ra.svgStrokeTolerance++;$a=new mxHandle($a,"col-resize",null,Ra);$a.tableHandle=!0;var kb=0;$a.shape.node.parentNode.insertBefore($a.shape.node,$a.shape.node.parentNode.firstChild);$a.redraw=function(){if(null!=this.shape){this.shape.stroke=0==kb?mxConstants.NONE:xa.stroke;if(this.shape.constructor==Y)this.shape.line=L(ab[bb],kb,0),this.shape.updateBoundsFromLine();else{var eb=X.getActualStartSize(oa.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=
this.state.x+(db.width+kb)*la;this.shape.bounds.y=oa.y+(bb==Ua.length-1?0:eb.y*la);this.shape.bounds.height=oa.height-(bb==Ua.length-1?0:(eb.height+eb.y)*la)}this.shape.redraw()}};var Pa=!1;$a.setPosition=function(eb,jb,ib){kb=Math.max(Graph.minTableColumnWidth-db.width,jb.x-eb.x-db.width);Pa=mxEvent.isShiftDown(ib.getEvent());null==lb||Pa||(kb=Math.min(kb,lb.width-Graph.minTableColumnWidth))};$a.execute=function(eb){if(0!=kb)X.setTableColumnWidth(this.state.cell,kb,Pa);else if(!P.blockDelayedSelection){var jb= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
v))}}finally{n.getModel().endUpdate()}}else{v=n.model.getParent(k);var z=n.getView().scale;d=null;1==n.getSelectionCount()&&n.model.isVertex(k)&&null!=n.layoutManager&&!n.isCellLocked(k)&&(d=n.layoutManager.getLayout(v));if(null!=d&&d.constructor==mxStackLayout)W=v.getIndex(k),37==R||38==R?n.model.add(v,k,Math.max(0,W-1)):(39==R||40==R)&&n.model.add(v,k,Math.min(n.model.getChildCount(v),W+1));else{var A=n.graphHandler;null!=A&&(null==A.first&&A.start(k,0,0,n.getMovableCells(f)),null!=A.first&&(k=
f=0,37==R?f=-W:38==R?k=-W:39==R?f=W:40==R&&(k=W),A.currentDx+=f*z,A.currentDy+=k*z,A.checkPreview(),A.updatePreview()),null!=E&&window.clearTimeout(E),E=window.setTimeout(function(){if(null!=A.first){var H=A.roundLength(A.currentDx/z),J=A.roundLength(A.currentDy/z);A.moveCells(A.cells,H,J);A.reset()}},400))}}}}var g=this,n=this.editor.graph,y=new mxKeyHandler(n),q=y.isEventIgnored;y.isEventIgnored=function(R){return!(mxEvent.isShiftDown(R)&&9==R.keyCode)&&(!this.isControlDown(R)||mxEvent.isShiftDown(R)|| | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function W(){mxShape.call(this)}function d(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function z(){mxActor.call(this)}function A(){mxActor.call(this)}function H(){mxActor.call(this)}function J(){mxActor.call(this)}function O(){mxActor.call(this)}function G(){mxActor.call(this)}function ja(){mxActor.call(this)}function fa(c,l){this.canvas=c;this.canvas.setLineJoin("round");
this.canvas.setLineCap("round");this.defaultVariation=l;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,fa.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,fa.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,fa.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,fa.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=
mxUtils.bind(this,fa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,fa.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function ia(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function da(){mxActor.call(this)}function S(){mxActor.call(this)}function U(){mxRectangleShape.call(this)}function Q(){mxRectangleShape.call(this)}function Y(){mxCylinder.call(this)}function m(){mxShape.call(this)}function C(){mxShape.call(this)}function M(){mxEllipse.call(this)} | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
K.width/e),g.getElementsByTagName("svg")[0].setAttribute("height",K.height/n))}catch(R){}finally{document.body.removeChild(g)}}b=Editor.createSvgDataUri(mxUtils.getXml(q[0]))}}}catch(R){}return b};Graph.stripQuotes=function(b){null!=b&&("'"==b.charAt(0)&&(b=b.substring(1)),"'"==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1)),'"'==b.charAt(0)&&(b=b.substring(1)),'"'==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1)));return b}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.graph.currentTranslate);y.apply(this,arguments);E&&(this.scale=N,this.translate=T)};var q=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(E,N,T){var F=this.useCssTransforms,K=this.view.scale,R=this.view.translate;F&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=!1);q.apply(this,arguments);F&&(this.view.scale=K,this.view.translate=R,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
c.begin(),c.moveTo(p-B,0),c.lineTo(p-B,B),c.lineTo(p,B),c.close(),c.fill()),c.begin(),c.moveTo(p-B,0),c.lineTo(p-B,B),c.lineTo(p,B),c.end(),c.stroke())};mxCellRenderer.registerShape("note",F);mxUtils.extend(K,F);mxCellRenderer.registerShape("note2",K);K.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,0)}return null};mxUtils.extend(R,mxShape);R.prototype.isoAngle= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"defs"):ba.createElement("defs"),null!=m.firstChild?m.insertBefore(M,m.firstChild):m.appendChild(M)):M=M[0];m=null!=ba.createElementNS?ba.createElementNS(mxConstants.NS_SVG,"style"):ba.createElement("style");m.setAttribute("type","text/css");mxUtils.setTextContent(m,C);M.appendChild(m)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(m,C,M){var ba=mxClient.IS_FF?8192:16384;return Math.min(M,Math.min(ba/ | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(d,f,k,v){d=null!=d?d:mxUtils.bind(this,function(z,A,H,J){A||(z=new ChangePageSetup(this,v?H:null,z),z.ignoreColor=!v,null!=J&&v&&(z.shadowVisible=J),this.editor.graph.model.execute(z))});d=new BackgroundImageDialog(this,d,f,k,v);this.showDialog(d.container,400,v?240:220,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(d,f,k,v,z){d=new LibraryDialog(this,d,f,k,v,z);this.showDialog(d.container,640,440,!0,!1,mxUtils.bind(this,function(A){A&&null==this.getCurrentFile()&&"1"!=urlParams.embed&& | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
return(C^-1)>>>0};Editor.writeGraphModelToPng=function(m,C,M,ba,V){function Z(pa,wa){var Da=qa;qa+=wa;return pa.substring(Da,qa)}function aa(pa){pa=Z(pa,4);return pa.charCodeAt(3)+(pa.charCodeAt(2)<<8)+(pa.charCodeAt(1)<<16)+(pa.charCodeAt(0)<<24)}function ka(pa){return String.fromCharCode(pa>>24&255,pa>>16&255,pa>>8&255,pa&255)}m=m.substring(m.indexOf(",")+1);m=window.atob?atob(m):Base64.decode(m,!0);var qa=0;if(Z(m,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=V&&V(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxUtils.bind(this,function(ca){A=null!=A?A:"pdf"==f?"application/pdf":"image/"+f;if(null!=v)try{this.exportFile(v,G,A,!0,ja,ca)}catch(ia){this.handleError(ia)}else this.spinner.spin(document.body,mxResources.get("saving"))&&fa.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=fa.getStatus()&&299>=fa.getStatus())try{this.exportFile(fa.getText(),G,A,!0,ja,ca)}catch(ia){this.handleError(ia)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(ia){this.spinner.stop(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
m.shareCursorPosition);null!=m.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=m.showRemoteCursors);null!=m.restrictExport&&(DrawioFile.RESTRICT_EXPORT=m.restrictExport)}};Editor.isAutoDarkMode=function(m){return!m&&"auto"==urlParams.dark||Editor.isSettingsEnabled()&&"auto"==mxSettings.settings.darkMode};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(m){if(null!=m){Editor.prototype.fontCss=
m;var C=document.getElementsByTagName("script")[0];if(null!=C&&null!=C.parentNode){var M=document.createElement("style");M.setAttribute("type","text/css");M.appendChild(document.createTextNode(m));C.parentNode.insertBefore(M,C);m=m.split("url(");for(M=1;M<m.length;M++){var ba=m[M].indexOf(")");ba=Editor.trimCssUrl(m[M].substring(0,ba));var V=document.createElement("link");V.setAttribute("rel","preload");V.setAttribute("href",ba);V.setAttribute("as","font");V.setAttribute("crossorigin","");C.parentNode.insertBefore(V,
C)}}}};Editor.trimCssUrl=function(m){return m.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(m){m=null!=m?m:Editor.GUID_LENGTH;for(var C=[],M=0;M<m;M++)C.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return C.join("")};Editor.updateStatusInterval= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"Invalid data",toString:function(){return this.message}};};var e=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(m,C){m=null!=m?m:!0;var M=e.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&M.setAttribute("style",this.graph.currentStyle);var ba=this.graph.getBackgroundImageObject(this.graph.backgroundImage,C);null!=ba&&M.setAttribute("backgroundImage",JSON.stringify(ba));M.setAttribute("math",this.graph.mathEnabled?"1":"0");M.setAttribute("shadow", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(S){for(var U=W.apply(this,arguments),Q=new mxDictionary,Y=[],m=0;m<U.length;m++){var C=this.graph.isTableCell(S)&&this.graph.isTableCell(U[m])&&this.graph.isCellSelected(U[m])?this.graph.model.getParent(U[m]):this.graph.isTableRow(S)&&this.graph.isTableRow(U[m])&&this.graph.isCellSelected(U[m])?U[m]:this.graph.getCompositeParent(U[m]);null==C||Q.get(C)||(Q.put(C,!0),Y.push(C))}return Y};var d=this.graphHandler.start;this.graphHandler.start=function(S,U,Q,Y){var m=!1;this.graph.isTableCell(S)&&
(this.graph.isCellSelected(S)?m=!0:S=this.graph.model.getParent(S));m||this.graph.isTableRow(S)&&this.graph.isCellSelected(S)||(S=this.graph.getCompositeParent(S));d.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(S,U){U=this.graph.getCompositeParent(U);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(S,U,Q,Y,m,C){var M=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=Y&&this.graph.applyNewEdgeStyle(Y, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxEvent.consume(C)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(C){mxEvent.isTouchEvent(C)||v(30)}));var O=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(C,M){this.startX=M.getGraphX();this.startY=M.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(C,M){},mouseUp:function(C,M){mxEvent.isTouchEvent(M.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)< | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
40;Z.prototype.isHtmlAllowed=function(){return!1};Z.prototype.getLabelBounds=function(c){var l=Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(c.x,c.y,c.width,l)};Z.prototype.paintBackground=function(c,l,u,p,t){var B=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),D=mxUtils.getValue(this.style,"participant");null==D||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,c,l, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};ma.prototype.isRoundable=function(){return!0};ma.prototype.redrawPath=function(c,l,u,p,t){l=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var B=p*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),D=p*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",
this.position2)))),ha=Math.max(0,Math.min(p,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(p,0),new mxPoint(p,t-u),new mxPoint(Math.min(p,B+ha),t-u),new mxPoint(D,t),new mxPoint(Math.max(0,B),t-u),new mxPoint(0,t-u)],this.isRounded,l,!0,[4])};mxCellRenderer.registerShape("callout",ma);mxUtils.extend(da,mxActor);da.prototype.size=.2;da.prototype.fixedSize=20;da.prototype.isRoundable=function(){return!0};da.prototype.redrawPath=function(c, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.graph.currentTranslate,T=this.graph.currentScale;E=new mxRectangle((E.x+N.x)*T,(E.y+N.y)*T,E.width*T,E.height*T)}return E};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(E){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"none",e.style.display="none");var F=this;N.getImageFromBundles=function(R){return F.getImageUrl(R)};var K=n.createTemporaryGraph;n.createTemporaryGraph=function(){var R=K.apply(this,arguments);R.getImageFromBundles=function(W){return F.getImageUrl(W)};return R};this.graphConfig.move&&(N.isMoveCellsEvent=function(R){return!0});mxUtils.setPrefixedStyle(T.style,"border-radius","4px");T.style.position="fixed";GraphViewer.resizeSensorEnabled=!1;document.body.style.overflow="hidden";mxClient.IS_SF||mxClient.IS_EDGE|| | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.