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
90!=R.keyCode&&89!=R.keyCode&&188!=R.keyCode&&190!=R.keyCode&&85!=R.keyCode)&&(66!=R.keyCode&&73!=R.keyCode||!this.isControlDown(R)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&q.apply(this,arguments)};y.isEnabledForEvent=function(R){return!mxEvent.isConsumed(R)&&this.isGraphEvent(R)&&this.isEnabled()&&(null==g.dialogs||0==g.dialogs.length)};y.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var E=null,N={37:mxConstants.DIRECTION_WEST,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
lb=db.ownerDocument,kb=null!=lb.createElementNS?lb.createElementNS(mxConstants.NS_SVG,"g"):lb.createElement("g");db.appendChild(kb);var Pa=this.createSvgCanvas(kb);Pa.foOffset=ea?-.5:0;Pa.textOffset=ea?-.5:0;Pa.imageOffset=ea?-.5:0;Pa.translate(Math.floor(P/L-$a.x/Ra),Math.floor(P/L-$a.y/Ra));var eb=document.createElement("div"),jb=Pa.getAlternateText;Pa.getAlternateText=function(nb,ub,gb,tb,ob,pb,hb,Ab,Db,Bb,vb,zb,yb){if(null!=pb&&0<this.state.fontSize)try{mxUtils.isNode(pb)?pb=pb.innerText:(eb.innerHTML= pb,pb=mxUtils.extractTextWithWhitespace(eb.childNodes));for(var Cb=Math.ceil(2*tb/this.state.fontSize),c=[],l=0,u=0;(0==Cb||l<Cb)&&u<pb.length;){var p=pb.charCodeAt(u);if(10==p||13==p){if(0<l)break}else c.push(pb.charAt(u)),255>p&&l++;u++}c.length<pb.length&&1<pb.length-c.length&&(pb=mxUtils.trim(c.join(""))+"...");return pb}catch(t){return jb.apply(this,arguments)}else return jb.apply(this,arguments)};var ib=this.backgroundImage;if(null!=ib){x=Ra/L;var mb=this.view.translate;ab=new mxRectangle((ib.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
DrawioFile.prototype.save=function(b,e,g,n,y,q){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",n,"overwrite",y,"manual",q,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!y&&this.invalidChecksum)if(null!=g)g({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=e&&e();else if(null!=g)g({message:mxResources.get("readOnly")}); else throw Error(mxResources.get("readOnly"));}catch(E){if(null!=g)g(E);else throw E;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var e=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=e&&(e.viewState=this.ui.editor.graph.getViewState(),e.needsUpdate=!0)}e=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return e};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
TableLayout.prototype.layoutRow=function(b,e,g,n){var y=this.graph.getModel(),q=y.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var E=b.x,N=0;null!=e&&(e=e.slice(),e.splice(0,0,b.x));for(var T=0;T<q.length;T++){var F=this.graph.getCellGeometry(q[T]);null!=F&&(F=F.clone(),F.y=b.y,F.height=g-b.y-b.height,null!=e?(F.x=e[T],F.width=e[T+1]-F.x,T==q.length-1&&T<e.length-2&&(F.width=n-F.x-b.x-b.width)):(F.x=E,E+=F.width,T==q.length-1?F.width=n-b.x-b.width-N:N+=F.width),F.alternateBounds=new mxRectangle(0, 0,F.width,F.height),y.setGeometry(q[T],F))}return N};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
["size"],function(u){var p=Math.max(0,Math.min(.5*u.height,parseFloat(mxUtils.getValue(this.state.style,"size",c))));return new mxPoint(u.x,u.y+p)},function(u,p){this.state.style.size=Math.max(0,p.y-u.y)},!0)]}},ub=function(c,l,u){return function(p){var t=[hb(p,["size"],function(B){var D=Math.max(0,Math.min(B.width,Math.min(B.height,parseFloat(mxUtils.getValue(this.state.style,"size",l)))))*c;return new mxPoint(B.x+D,B.y+D)},function(B,D){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(B.width, 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,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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
document.createElement("span"),v.setAttribute("title",mxResources.get("help")),v.style.cssText="color:#a3a3a3;text-decoration:none;margin-right:2px;cursor:pointer;",mxUtils.write(v,"?"),mxEvent.addGestureListeners(v,mxUtils.bind(this,function(Q){this.openLink(EditorUi.scratchpadHelpLink);mxEvent.consume(Q)})),G.insertBefore(v,G.firstChild))}O.appendChild(G);O.style.paddingRight=18*G.childNodes.length+"px"}};EditorUi.prototype.addLibraryEntries=function(d,f){for(var k=0;k<d.length;k++){var v=d[k], z=v.data;if(null!=z){z=this.convertDataUri(z);var A="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==v.aspect&&(A+="aspect=fixed;");f.appendChild(this.sidebar.createVertexTemplate(A+"image="+z,v.w,v.h,"",v.title||"",!1,null,!0))}else null!=v.xml&&(z=this.stringToCells("<"==v.xml.charAt(0)?v.xml:Graph.decompress(v.xml)),0<z.length&&f.appendChild(this.sidebar.createVertexTemplateFromCells(z,v.w,v.h,v.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(d){return null!=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
b.view.getState(n[q])&&y.push(n[q]);b.setSelectionCells(y)}};e.addListener(mxEvent.UNDO,g);e.addListener(mxEvent.REDO,g);return e};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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};var T=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=function(x){return null!=x&&T.apply(this,arguments)?this.isTableCell(x)||this.isTableRow(x)?this.isCellMovable(this.model.getParent(x)):!0:!1};var F=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(x){var L=this.model.getParent(x);if(null!=L){var P=this.getCurrentCellStyle(L);if(null!=P.expand)return"0"!=P.expand}return F.apply(this,arguments)&&(null==L||!this.isTable(L))};var K=Graph.prototype.splitEdge;
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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)};mxCellRenderer.registerShape("flexArrow",Ta);mxUtils.extend(ta,mxActor);ta.prototype.size=30;ta.prototype.isRoundable=function(){return!0};ta.prototype.redrawPath=function(c,l,u,p,t){l=Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)));u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(0,l),new mxPoint(p,0),new mxPoint(p,t)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("manualInput",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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;this.indent=2;this.rectOutline="single"}function bb(){mxConnector.call(this)}function $a(c,l,u,p,t,B,D,ha,I,ua){D+=I;var na=p.clone();p.x-=t*(2*D+I);p.y-=B*(2*D+I);t*=D+I;B*=D+I;return function(){c.ellipse(na.x-t-D,na.y-B-D,2*D,2*D);ua?c.fillAndStroke():c.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var l=0;l<this.line.length;l++){var u=this.line[l];null!=u&&(u=new mxRectangle(u.x,u.y,this.strokewidth,this.strokewidth),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
ja.prototype.redrawPath=function(c,l,u,p,t){c.setStrokeWidth(1);c.setFillColor(this.stroke);l=p/5;c.rect(0,0,l,t);c.fillAndStroke();c.rect(2*l,0,l,t);c.fillAndStroke();c.rect(4*l,0,l,t);c.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",ja);fa.prototype.moveTo=function(c,l){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;this.firstX=c;this.firstY=l};fa.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas, 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"===
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.openLink=function(b,e,g){var n=window;try{if(b=Graph.sanitizeLink(b),null!=b)if("_self"==e&&window!=window.top)window.location.href=b;else if(b.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==b.charAt(this.baseUrl.length)&&"_top"==e&&window==window.top){var y=b.split("#")[1];window.location.hash=="#"+y&&(window.location.hash="");window.location.hash=y}else n=window.open(b,null!=e?e:"_blank"),null==n||g||(n.opener=null)}catch(q){}return n};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Graph.prototype.getParentByName=function(x,L,P){for(;null!=x&&x.nodeName!=L;){if(x==P)return null;x=x.parentNode}return x};Graph.prototype.getParentByNames=function(x,L,P){for(;null!=x&&!(0<=mxUtils.indexOf(L,x.nodeName));){if(x==P)return null;x=x.parentNode}return x};Graph.prototype.selectNode=function(x){var L=null;if(window.getSelection){if(L=window.getSelection(),L.getRangeAt&&L.rangeCount){var P=document.createRange();P.selectNode(x);L.removeAllRanges();L.addRange(P)}}else(L=document.selection)&& "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
Graph.prototype.setTableValues=function(b,e,g){for(var n=this.model.getChildCells(b,!0),y=0;y<n.length;y++)if(null!=g&&(n[y].value=g[y]),null!=e)for(var q=this.model.getChildCells(n[y],!0),E=0;E<q.length;E++)null!=e[y][E]&&(q[E].value=e[y][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
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Ca(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function P(){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
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Ca(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function P(){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
null!=this.currentState&&S.getState()==this.currentState&&2E3<v||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&A.apply(this,arguments)};var H=this.isToggleEvent;this.isToggleEvent=function(S){return H.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(S)};var J=f.isForceRubberbandEvent;f.isForceRubberbandEvent=function(S){return J.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(S.getEvent())||mxUtils.hasScrollbars(this.graph.container)&& mxClient.IS_FF&&mxClient.IS_WIN&&null==S.getState()&&mxEvent.isTouchEvent(S.getEvent())};var O=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(O=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=O)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(S){return mxEvent.isMouseEvent(S.getEvent())};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
!0),ea.push(xa))}for(var L=fa.apply(this,arguments),P=new mxDictionary,X=this.graph.model,ea=[],la=0;la<L.length;la++){var oa=L[la];this.graph.isTableCell(oa)?x(X.getParent(X.getParent(oa))):this.graph.isTableRow(oa)&&x(X.getParent(oa));x(oa)}return ea};var ca=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return ca.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&& !this.graph.isSwimlane(this.state.cell)};var ia=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=function(x){var L=ia.apply(this,arguments);L.stroke="#C0C0C0";L.strokewidth=1;return L};var ma=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(x){var L=ma.apply(this,arguments);L.stroke="#C0C0C0";L.strokewidth=1;return L};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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]);return M};var f=new mxRubberband(this);this.getRubberband=function(){return f};var k=(new Date).getTime(),v=0,z=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var S=this.currentState;z.apply(this,arguments);S!=this.currentState?(k=(new Date).getTime(),v=0):v=(new Date).getTime()-k};var A=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(S){return mxEvent.isShiftDown(S.getEvent())&&mxEvent.isAltDown(S.getEvent())?!1: null!=this.currentState&&S.getState()==this.currentState&&2E3<v||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&A.apply(this,arguments)};var H=this.isToggleEvent;this.isToggleEvent=function(S){return H.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(S)};var J=f.isForceRubberbandEvent;f.isForceRubberbandEvent=function(S){return J.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(S.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.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
c.lineTo(l+p,u);c.lineTo(l+p,u+t);c.lineTo(l,u+t);c.lineTo(l,u+ha);c.stroke()};mxCellRenderer.registerShape("umlFrame",aa);mxPerimeter.CenterPerimeter=function(c,l,u,p){return new mxPoint(c.getCenterX(),c.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(c,l,u,p){p=Z.prototype.size;null!=l&&(p=mxUtils.getValue(l.style,"size",p)*l.view.scale);l=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*l.view.scale/2-1;u.x<c.getCenterX()&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(){var x=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+x.x/2,this.bounds.y+this.rotationHandleVSpacing-x.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(x,L){return this.graph.isRecursiveVertexResize(x)&&!mxEvent.isAltDown(L.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(x,L){return mxEvent.isControlDown(L.getEvent())||mxEvent.isMetaDown(L.getEvent())};var da=mxVertexHandler.prototype.isRotationHandleVisible;
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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==E&&(E=T.hasAttribute(N)?null!=T.getAttribute(N)?T.getAttribute(N):"":null)),T=this.model.getParent(T);null==E&&(E=this.getGlobalVariable(N));null==E&&null!=g&&(E=g[N])}n.push(e.substring(y,match.index)+(null!=E?E:q));y=match.index+q.length}}n.push(e.substring(y))}return n.join("")};Graph.prototype.restoreSelection=function(b){if(null!=b&&0<b.length){for(var e=[],g=0;g<b.length;g++){var n=this.model.getCell(b[g].id);null!=n&&e.push(n)}this.setSelectionCells(e)}else this.clearSelection()};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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
b.view.getState(n[q])&&y.push(n[q]);b.setSelectionCells(y)}};e.addListener(mxEvent.UNDO,g);e.addListener(mxEvent.REDO,g);return e};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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
arguments);c.setStrokeColor(this.stroke);c.setFillColor(this.stroke);c.setDashed(!1);null!=u&&u();null!=p&&p()};mxCellRenderer.registerShape("wire",y);mxUtils.extend(q,mxCylinder);q.prototype.size=6;q.prototype.paintVertexShape=function(c,l,u,p,t){c.setFillColor(this.stroke);var B=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;c.ellipse(l+.5*(p-B),u+.5*(t-B),B,B);c.fill();c.setFillColor(mxConstants.NONE);c.rect(l,u,p,t);c.fill()};mxCellRenderer.registerShape("waypoint",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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=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)|| 90!=R.keyCode&&89!=R.keyCode&&188!=R.keyCode&&190!=R.keyCode&&85!=R.keyCode)&&(66!=R.keyCode&&73!=R.keyCode||!this.isControlDown(R)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&q.apply(this,arguments)};y.isEnabledForEvent=function(R){return!mxEvent.isConsumed(R)&&this.isGraphEvent(R)&&this.isEnabled()&&(null==g.dialogs||0==g.dialogs.length)};y.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var E=null,N={37:mxConstants.DIRECTION_WEST,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.createVertexWipeAnimation=function(b,e){var g=new mxRectangle.fromRectangle(b.shape.bounds);return{execute:mxUtils.bind(this,function(n,y){null!=b.shape&&(y=n/y,e||(y=1-y),b.shape.bounds=new mxRectangle(g.x,g.y,g.width*y,g.height),b.shape.redraw(),0==n&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=y))}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&& (b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};Graph.prototype.executeAnimations=function(b,e,g,n){g=null!=g?g:30;n=null!=n?n:30;var y=null,q=0,E=mxUtils.bind(this,function(){if(q==g||this.stoppingCustomActions){window.clearInterval(y);for(var N=0;N<b.length;N++)b[N].stop();null!=e&&e()}else for(N=0;N<b.length;N++)b[N].execute(q,g);q++});y=window.setInterval(E,n);E()};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
0,c.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),c.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};aa.prototype.paintBackground=function(c,l,u,p,t){var B=this.corner,D=Math.min(p,Math.max(B,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),ha=Math.min(t,Math.max(1.5*B,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),I=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);I!=mxConstants.NONE&& (c.setFillColor(I),c.rect(l,u,p,t),c.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(c,l,u,p,t),c.setGradient(this.fill,this.gradient,l,u,p,t,this.gradientDirection)):c.setFillColor(this.fill);c.pointerEvents=!0;c.begin();c.moveTo(l,u);c.lineTo(l+D,u);c.lineTo(l+D,u+Math.max(0,ha-1.5*B));c.lineTo(l+Math.max(0,D-B),u+ha);c.lineTo(l,u+ha);c.close();c.fillAndStroke();this.configurePointerEvents(c);c.begin();c.moveTo(l+D,u); c.lineTo(l+p,u);c.lineTo(l+p,u+t);c.lineTo(l,u+t);c.lineTo(l,u+ha);c.stroke()};mxCellRenderer.registerShape("umlFrame",aa);mxPerimeter.CenterPerimeter=function(c,l,u,p){return new mxPoint(c.getCenterX(),c.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(c,l,u,p){p=Z.prototype.size;null!=l&&(p=mxUtils.getValue(l.style,"size",p)*l.view.scale);l=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*l.view.scale/2-1;u.x<c.getCenterX()&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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;q.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):E=g.apply(this,arguments);b.updatePasteActionStates();return E};var n=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){n.apply(this,arguments);b.updatePasteActionStates()};var y=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(q,E){y.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxPerimeter.HexagonPerimeter2=function(c,l,u,p){var t="0"!=mxUtils.getValue(l.style,"fixedSize","0"),B=t?S.prototype.fixedSize:S.prototype.size;null!=l&&(B=mxUtils.getValue(l.style,"size",B));t&&(B*=l.view.scale);var D=c.x,ha=c.y,I=c.width,ua=c.height,na=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(t=t?Math.max(0,Math.min(ua,B)):ua* Math.max(0,Math.min(1,B)),ha=[new mxPoint(na,ha),new mxPoint(D+I,ha+t),new mxPoint(D+I,ha+ua-t),new mxPoint(na,ha+ua),new mxPoint(D,ha+ua-t),new mxPoint(D,ha+t),new mxPoint(na,ha)]):(t=t?Math.max(0,Math.min(I,B)):I*Math.max(0,Math.min(1,B)),ha=[new mxPoint(D+t,ha),new mxPoint(D+I-t,ha),new mxPoint(D+I,c),new mxPoint(D+I-t,ha+ua),new mxPoint(D+t,ha+ua),new mxPoint(D,c),new mxPoint(D+t,ha)]);na=new mxPoint(na,c);p&&(u.x<D||u.x>D+I?na.y=u.y:na.x=u.x);return mxUtils.getPerimeterPoint(ha,na,u)};mxStyleRegistry.putValue("hexagonPerimeter2",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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=-1*(l+1));return new mxPoint(c.getCenterX()+l,Math.min(c.y+c.height,Math.max(c.y+p,u.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(c,l,u,p){p=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(c,l,u,p){p=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*l.view.scale/2-1;null!=l.style.backboneSize&& (p+=parseFloat(l.style.backboneSize)*l.view.scale/2-1);if("south"==l.style[mxConstants.STYLE_DIRECTION]||"north"==l.style[mxConstants.STYLE_DIRECTION])return u.x<c.getCenterX()&&(p=-1*(p+1)),new mxPoint(c.getCenterX()+p,Math.min(c.y+c.height,Math.max(c.y,u.y)));u.y<c.getCenterY()&&(p=-1*(p+1));return new mxPoint(Math.min(c.x+c.width,Math.max(c.x,u.x)),c.getCenterY()+p)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(c,l,u,p){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(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.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
Graph.prototype.getDefaultTranslate=function(b){var e=this.getPagePadding(),g=this.getPageSize();return new mxPoint(e.x-b.x*g.width,e.y-b.y*g.height)};Graph.prototype.updateMinimumSize=function(){var b=this.getPageLayout(),e=this.getPagePadding(),g=this.getPageSize(),n=Math.ceil(2*e.x+b.width*g.width);b=Math.ceil(2*e.y+b.height*g.height);if(null==this.minimumGraphSize||this.minimumGraphSize.width!=n||this.minimumGraphSize.height!=b)this.minimumGraphSize=new mxRectangle(0,0,n,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
m.prototype.quadTo=function(Z,aa,ka,qa){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,Z,aa,ka,qa),this.lastX=ka,this.lastY=qa)};m.prototype.curveTo=function(Z,aa,ka,qa,ra,pa){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,Z,aa,ka,qa,ra,pa),this.lastX=ra,this.lastY=pa)};m.prototype.arcTo=function(Z,aa,ka,qa,ra,pa,wa){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var Da=mxUtils.arcToCurves(this.lastX,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.executeLayout=function(b,e,g){var n=this.editor.graph;n.getModel().beginUpdate();try{b()}catch(y){throw y;}finally{this.allowAnimation&&e&&n.isEnabled()?(b=new mxMorphing(n),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){n.getModel().endUpdate();null!=g&&g()})),b.startAnimation()):(n.getModel().endUpdate(),null!=g&&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.arrayBufferIndexOfString=function(b,e,g){var n=e.charCodeAt(0),y=1,q=-1;for(g=g||0;g<b.byteLength;g++)if(b[g]==n){q=g;break}for(g=q+1;-1<q&&g<b.byteLength&&g<q+e.length-1;g++){if(b[g]!=e.charCodeAt(y))return Graph.arrayBufferIndexOfString(b,e,q+1);y++}return y==e.length-1?q:-1};Graph.compress=function(b,e){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=e?pako.deflate(encodeURIComponent(b)):pako.deflateRaw(encodeURIComponent(b));return btoa(Graph.arrayBufferToString(new Uint8Array(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
"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", this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(ba=this.graph.extFonts.map(function(V){return V.name+"^"+V.url}),M.setAttribute("extFonts",ba.join("|")));return M};Editor.prototype.isDataSvg=function(m){try{var C=mxUtils.parseXml(m).documentElement.getAttribute("content");if(null!=C&&(null!=C&&"<"!=C.charAt(0)&&"%"!=C.charAt(0)&&(C=unescape(window.atob?atob(C):Base64.decode(cont,C))),null!=C&&"%"==C.charAt(0)&&(C=decodeURIComponent(C)),null!=C&&0<C.length)){var M=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
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=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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
q&&(this.lastAutosaveRevision=(new Date).getTime());this.save(q,mxUtils.bind(this,function(E){this.autosaveCompleted();null!=g&&g(E)}),mxUtils.bind(this,function(E){null!=n&&n(E)}))}else this.isModified()||this.ui.editor.setStatus(""),null!=g&&g(null)}catch(E){null!=n&&n(E)}}),b);EditorUi.debug("DrawioFile.autosave",[this],"thread",y,"delay",b,"saving",this.savingFile);this.autosaveThread=y};DrawioFile.prototype.isAutosaveNow=function(){return!0};DrawioFile.prototype.autosaveCompleted=function(){};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.mathJaxQueue.push(aa)};Editor.onMathJaxDone=function(){};var V=Editor.prototype.init;Editor.prototype.init=function(){V.apply(this,arguments);var aa=mxUtils.bind(this,function(ka,qa){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,aa);this.graph.addListener(mxEvent.REFRESH,aa)};C=document.getElementsByTagName("script");if(null!=C&&0<C.length){var Z=document.createElement("script");Z.setAttribute("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
EditorUi.prototype.readGraphModelFromClipboard=function(b){this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(e){null!=e?b(e):this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(g){if(null!=g){var n=decodeURIComponent(g);this.isCompatibleString(n)&&(g=n)}b(g)}),"text")}),"html")};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
N=T}return N};var b=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(E){if(this.useCssTransforms){var N=this.currentScale,T=this.currentTranslate;E=new mxRectangle((E.x+2*T.x)*N-T.x,(E.y+2*T.y)*N-T.y,E.width*N,E.height*N)}b.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=function(E){E=this.strokeWidth;this.graph.useCssTransforms&&(E/=this.graph.currentScale);return E};mxGraphView.prototype.getGraphBounds=function(){var E=this.graphBounds;if(this.graph.useCssTransforms){var N=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Actions.prototype.addAction=function(b,e,g,n,y){if("..."==b.substring(b.length-3)){b=b.substring(0,b.length-3);var q=mxResources.get(b)+"..."}else q=mxResources.get(b);return this.put(b,new Action(q,e,g,n,y))};Actions.prototype.put=function(b,e){return this.actions[b]=e};Actions.prototype.get=function(b){return this.actions[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.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var cb=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(cb.apply(this),null!=this.state&&null!=this.linkHint)){var x=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(x=new mxRectangle(x.x,x.y,x.width,x.height),x.add(this.state.text.bounds)); this.linkHint.style.left=Math.max(0,Math.round(x.x+(x.width-this.linkHint.clientWidth)/2))+"px";this.linkHint.style.top=Math.round(x.y+x.height+Editor.hintOffset)+"px"}};var Ca=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){Ca.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Ma=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Ma.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.diagramLanguage=Graph.diagramLanguage);return{format:f,from:da,to:S,allPages:U,bg:null!=A?A:mxConstants.NONE,base64:v,embedXml:G,xml:k,filename:null!=d?d:"",extras:JSON.stringify(z),scale:H,border:J,w:fa&&isFinite(fa)?fa:null,h:ca&&isFinite(ca)?ca:null}};EditorUi.prototype.setMode=function(d,f){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var f=d.indexOf("#");0<=f&&(d=d.substring(0,f))}return d};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
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()?
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.getCellAt(eb.getGraphX(),eb.getGraphY())||oa.cell;X.graphHandler.selectCellForEvent(jb,eb)}kb=0};$a.positionChanged=function(){};$a.reset=function(){kb=0};x.push($a)})(ea)}}return null!=x?x.reverse():null};var C=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(x){C.apply(this,arguments);if(null!=this.moveHandles)for(var L=0;L<this.moveHandles.length;L++)null!=this.moveHandles[L]&&(this.moveHandles[L].node.style.visibility=x?"":"hidden");if(null!=this.cornerHandles)for(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
ba),Z.height=Math.max(Z.height,V),f.cellsResized([U],[Z],!1));f.setAttributeForCell(U,"mermaidData",JSON.stringify({data:C,config:m.config},null,2))}finally{f.getModel().endUpdate()}},function(M){d.handleError(M)})},null,null,400,220);d.showDialog(Q.container,420,300,!0,!0);Q.init()};var k=f.cellEditor.startEditing;f.cellEditor.startEditing=function(U,Q){try{var Y=this.graph.getAttributeForCell(U,"plantUmlData");if(null!=Y)this.editPlantUmlData(U,Q,Y);else if(Y=this.graph.getAttributeForCell(U,"mermaidData"), null!=Y)this.editMermaidData(U,Q,Y);else{var m=f.getCellStyle(U);"1"==mxUtils.getValue(m,"metaEdit","0")?d.showDataDialog(U):k.apply(this,arguments)}}catch(C){d.handleError(C)}};f.getLinkTitle=function(U){return d.getLinkTitle(U)};f.customLinkClicked=function(U){var Q=!1;try{d.handleCustomLink(U),Q=!0}catch(Y){d.handleError(Y)}return Q};var v=f.parseBackgroundImage;f.parseBackgroundImage=function(U){var Q=v.apply(this,arguments);null!=Q&&null!=Q.src&&Graph.isPageLink(Q.src)&&(Q={originalSrc:Q.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
null!=Y)this.editMermaidData(U,Q,Y);else{var m=f.getCellStyle(U);"1"==mxUtils.getValue(m,"metaEdit","0")?d.showDataDialog(U):k.apply(this,arguments)}}catch(C){d.handleError(C)}};f.getLinkTitle=function(U){return d.getLinkTitle(U)};f.customLinkClicked=function(U){var Q=!1;try{d.handleCustomLink(U),Q=!0}catch(Y){d.handleError(Y)}return Q};var v=f.parseBackgroundImage;f.parseBackgroundImage=function(U){var Q=v.apply(this,arguments);null!=Q&&null!=Q.src&&Graph.isPageLink(Q.src)&&(Q={originalSrc:Q.src}); 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
EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(b.container,"scroll",mxUtils.bind(this,function(){b.tooltipHandler.hide();null!=b.connectionHandler&&null!=b.connectionHandler.constraintHandler&&b.connectionHandler.constraintHandler.reset()}));b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){b.tooltipHandler.hide();var n=b.getRubberband();null!=n&&n.cancel()}));mxEvent.addListener(b.container, "keydown",mxUtils.bind(this,function(n){this.onKeyDown(n)}));mxEvent.addListener(b.container,"keypress",mxUtils.bind(this,function(n){this.onKeyPress(n)}));this.addUndoListener();this.addBeforeUnloadListener();b.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));b.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));var e=b.setDefaultParent,g=this;this.editor.graph.setDefaultParent=function(){e.apply(this, arguments);g.updateActionStates()};b.editLink=g.actions.get("editLink").funct;this.updateActionStates();this.initClipboard();this.initCanvas();null!=this.format&&this.format.init()}};EditorUi.prototype.clearSelectionState=function(){this.selectionState=null};EditorUi.prototype.getSelectionState=function(){null==this.selectionState&&(this.selectionState=this.createSelectionState());return this.selectionState};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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)};mxCellRenderer.registerShape("process",ca);mxCellRenderer.registerShape("process2",ca);mxUtils.extend(ia,mxRectangleShape);ia.prototype.paintBackground=function(c,l,u,p,t){c.setFillColor(mxConstants.NONE);c.rect(l,u,p,t);c.fill()};ia.prototype.paintForeground=function(c,l,u,p,t){};mxCellRenderer.registerShape("transparent",ia);mxUtils.extend(ma,mxHexagon);ma.prototype.size=30;ma.prototype.position=.5;ma.prototype.position2=.5;ma.prototype.base=20;ma.prototype.getLabelMargins=function(){return new mxRectangle(0, 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",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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
P.appendChild(ea);L.appendChild(P)}};Graph.prototype.updateSvgLinks=function(x,L,P){x=x.getElementsByTagName("a");for(var X=0;X<x.length;X++)if(null==x[X].getAttribute("target")){var ea=x[X].getAttribute("href");null==ea&&(ea=x[X].getAttribute("xlink:href"));null!=ea&&(null!=L&&/^https?:\/\//.test(ea)?x[X].setAttribute("target",L):P&&this.isCustomLink(ea)&&x[X].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(x){x=new mxSvgCanvas2D(x);x.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth; x.pointerEvents=!0;return x};Graph.prototype.getSelectedTextBlocks=function(){function x(oa){if(oa.firstChild)return oa.firstChild;for(;oa;){if(oa.nextSibling)return oa.nextSibling;oa=oa.parentNode}}function L(oa){var xa=oa.startContainer,sa=oa.endContainer;oa=oa.commonAncestorContainer;var va=[],Fa;for(Fa=xa.parentNode;Fa&&(va.push(Fa),Fa!=oa);Fa=Fa.parentNode);va.reverse();for(Fa=xa;Fa&&(va.push(Fa),Fa!=sa);Fa=x(Fa));return va}var P=[this.getSelectedElement()];if(window.getSelection){var X=window.getSelection();
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.rewritePageLinks=function(b){function e(n,y){var q=n.getAttribute(y);null!=q&&Graph.isPageLink(q)&&n.setAttribute(y,"#"+q.substring(q.indexOf(":")+1))}b=b.getElementsByTagName("a");for(var g=0;g<b.length;g++)e(b[g],"href"),e(b[g],"xlink:href")};Graph.isLink=function(b){return null!=b&&Graph.linkPattern.test(b)};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(){return S.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};var U=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(x){return x.tableHandle||U.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var x=0;this.graph.isTableRow(this.state.cell)?x=1:this.graph.isTableCell(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
fb=Math.sqrt(ua*ua+qb*qb);D.x=(D.x+B.x)*na;D.y=(D.y+B.y)*na;t.call(this,fb,ua/fb,qb/fb,Za,I,D,ha)})},xb=function(c,l){return function(u){return[wb(u,["startWidth"],!0,function(p,t,B,D,ha){ha=mxUtils.getNumber(u.style,"startWidth",c)*u.view.scale+l;return new mxPoint(D.x+t*p/4+B*ha/2,D.y+B*p/4-t*ha/2)},function(p,t,B,D,ha,I){p=Math.sqrt(mxUtils.ptSegDistSq(D.x,D.y,ha.x,ha.y,I.x,I.y));u.style.startWidth=Math.round(2*p)/u.view.scale-l})]}},rb=function(c){return function(l){return[hb(l,["arrowWidth",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(u.width,2*(u.x+u.width-p.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(u.width-p.x+u.x)/Math.min(u.width,u.height))))})},hb=function(c,l,u,p,t,B,D){var ha=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);ha.execute=function(ua){for(var na=0;na<l.length;na++)this.copyStyle(l[na]);D&&D(ua)};ha.getPosition=u;ha.setPosition=p;ha.ignoreGrid=null!=t?t:!0;if(B){var I=ha.positionChanged; ha.positionChanged=function(){I.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return ha},Ab={link:function(c){return[mb(c,!0,10),mb(c,!1,10)]},flexArrow:function(c){var l=c.view.graph.gridSize/c.view.scale,u=[];mxUtils.getValue(c.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(u.push(wb(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(p,t,B,D,ha){p=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;ha=3*mxUtils.getNumber(c.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
"fold"==B)&&c.lineTo(ha,0);else c.lineTo(0,0)};Na.prototype.paintTop=function(c,l,u,p,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.lineTo(p,0):c.lineTo(p-ha,0)};Na.prototype.paintNE=function(c,l,u,p,t,B,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==B||"invRound"==D||"default"==D&&"invRound"==B){l=0;if("rounded"==D||"default"==D&&"rounded"==B)l=1;c.arcTo(ha,ha,0,0,l,p,ha)}else("snip"==D||"default"==D&&"snip"==B||"fold"==D||"default"==D&&"fold"==B)&&c.lineTo(p,ha);else c.lineTo(p,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
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
k=f.lastChild;var v=k.previousSibling;f.insertBefore(k,d);f.insertBefore(v,k)};EditorUi.prototype.loadLibrary=function(d,f){var k=mxUtils.parseXml(d.getData());if("mxlibrary"==k.documentElement.nodeName){var v=JSON.parse(mxUtils.getTextContent(k.documentElement));this.libraryLoaded(d,v,k.documentElement.getAttribute("title"),f)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(d){return""};EditorUi.prototype.libraryLoaded=function(d,f,k,v){if(null!=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(Z){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?C.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(Z):this.createRoughCanvas(Z)};var M=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(Z,aa,ka,qa,ra){null!=Z.handJiggle&&Z.handJiggle.passThrough||M.apply(this,arguments)};var ba=mxShape.prototype.paint;mxShape.prototype.paint=function(Z){var aa=Z.addTolerance,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
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
return!mxUtils.getValue(E.style,mxConstants.STYLE_CURVED,!1)&&("connector"==N||"filledEdge"==N||"wire"==N)};Graph.prototype.isAutoSizeState=function(E){return"1"==mxUtils.getValue(E.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(E){return null!=mxUtils.getValue(E.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(E){return"image"!=mxUtils.getValue(E.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.getVerticesAndEdges=function(E,N){E=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
X[xa].height)}}finally{this.getModel().endUpdate()}}}return L};Graph.prototype.isCloneEvent=function(x){return mxClient.IS_MAC&&mxEvent.isMetaDown(x)||mxEvent.isControlDown(x)};Graph.prototype.createSvgImageExport=function(){var x=new mxImageExport;x.getLinkForCellState=mxUtils.bind(this,function(L,P){return this.getLinkForCell(L.cell)});return x};Graph.prototype.parseBackgroundImage=function(x){var L=null;null!=x&&0<x.length&&(x=JSON.parse(x),L=new mxImage(x.src,x.width,x.height));return L};Graph.prototype.getBackgroundImageObject=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(){window.openFile=null});if(!f){var z=this.dialog,A=z.close;this.dialog.close=mxUtils.bind(this,function(H){Editor.useLocalStorage=v;A.apply(z,arguments);H&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(d,f,k){var v=this,z=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(d).then(function(A){if(mxUtils.isEmptyObject(A.files))k();else{var H=0,J,O=!1;A.forEach(function(G,ja){G= ja.name.toLowerCase();"diagram/diagram.xml"==G?(O=!0,ja.async("string").then(function(fa){0==fa.indexOf("<mxfile ")?f(fa):k()})):0==G.indexOf("versions/")&&(G=parseInt(G.substr(9)),G>H&&(H=G,J=ja))});0<H?J.async("string").then(function(G){(new XMLHttpRequest).upload&&v.isRemoteFileFormat(G,d.name)?v.isOffline()?v.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,k):v.parseFileData(G,mxUtils.bind(this,function(ja){4==ja.readyState&&(200<=ja.status&&299>=ja.status?f(ja.responseText): k())}),d.name):k()}):O||k()}},function(A){k(A)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?z():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",z,null,null,null,k))};EditorUi.prototype.importFile=function(d,f,k,v,z,A,H,J,O,G,ja,fa){G=null!=G?G:!0;var ca=!1,ia=null,ma=mxUtils.bind(this,function(da){var S=null;null!=da&&"<mxlibrary"==da.substring(0,10)?this.loadLibrary(new LocalLibrary(this,da,H)):S=this.importXml(da,k,v,G,null,null!=fa?mxEvent.isControlDown(fa):
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(Ea,za,Va){V(aa,mxUtils.bind(this,function(){if(null!=Ea&&Ea.length<G){var La=ma&&this.isResampleImageSize(ka.size,ja)?Math.min(1,Math.min(v/za,v/Va)):1;return z(Ea,ka.type,f+aa*m,k+aa*m,Math.round(za*La),Math.round(Va*La),ka.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),ma,v,ja,ka.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else pa=ra.target.result,z(pa,ka.type,f+aa*m,k+aa*m,240,160,ka.name,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
ma.width=ja;ma.height=fa;var da=ma.toDataURL();ia!==da&&(f=ia,J=ja,O=fa)}}}catch(S){}k(f,J,O)};EditorUi.prototype.extractGraphModelFromPng=function(d){return Editor.extractGraphModelFromPng(d)};EditorUi.prototype.loadImage=function(d,f,k){try{var v=new Image;v.onload=function(){v.width=0<v.width?v.width:120;v.height=0<v.height?v.height:120;f(v)};null!=k&&(v.onerror=k);v.src=d}catch(z){if(null!=k)k(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=function(){var d="1"==urlParams.sketch;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
this.currentState=this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=oa.tooltipHandler&&oa.tooltipHandler.hide()}};oa.click=function(sa){};oa.addMouseListener(xa);mxEvent.addListener(document,"mouseleave",function(sa){xa.clear()})};Graph.prototype.duplicateCells=function(x,L){x=null!=x?x:this.getSelectionCells();L=null!=L?L:!0;for(var P=0;P<x.length;P++)this.isTableCell(x[P])&&(x[P]=this.model.getParent(x[P]));x=this.model.getTopmostCells(x);var X=this.getModel(),ea=this.gridSize,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.data;if(null!=z){z=this.convertDataUri(z);var A="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==v.aspect&&(A+="aspect=fixed;");f.appendChild(this.sidebar.createVertexTemplate(A+"image="+z,v.w,v.h,"",v.title||"",!1,null,!0))}else null!=v.xml&&(z=this.stringToCells("<"==v.xml.charAt(0)?v.xml:Graph.decompress(v.xml)),0<z.length&&f.appendChild(this.sidebar.createVertexTemplateFromCells(z,v.w,v.h,v.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(d){return null!= d?d[mxLanguage]||d.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"atlas"==Editor.currentTheme&&(mxClient.link("stylesheet",STYLE_PATH+"/atlas.css"),"undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground="linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(Z){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?C.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(Z):this.createRoughCanvas(Z)};var M=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(Z,aa,ka,qa,ra){null!=Z.handJiggle&&Z.handJiggle.passThrough||M.apply(this,arguments)};var ba=mxShape.prototype.paint;mxShape.prototype.paint=function(Z){var aa=Z.addTolerance, ka=!0;null!=this.style&&(ka="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=Z.handJiggle&&Z.handJiggle.constructor==m&&!this.outline){Z.save();var qa=this.fill,ra=this.stroke;this.stroke=this.fill=null;var pa=this.configurePointerEvents,wa=Z.setStrokeColor;Z.setStrokeColor=function(){};var Da=Z.setFillColor;Z.setFillColor=function(){};ka||null==qa||(this.configurePointerEvents=function(){});Z.handJiggle.passThrough=!0;ba.apply(this,arguments);Z.handJiggle.passThrough= !1;Z.setFillColor=Da;Z.setStrokeColor=wa;this.configurePointerEvents=pa;this.stroke=ra;this.fill=qa;Z.restore();ka&&null!=qa&&(Z.addTolerance=function(){})}ba.apply(this,arguments);Z.addTolerance=aa};var V=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(Z,aa,ka,qa,ra,pa){null!=Z.handJiggle&&Z.handJiggle.constructor==m?(Z.handJiggle.passThrough=!0,V.apply(this,arguments),Z.handJiggle.passThrough=!1):V.apply(this,arguments)}})();Editor.fastCompress=function(m){return null==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxEvent.getSource(g)==this.graph.container&&this.setDisplay("none")}));this.graph.addListener(mxEvent.START_EDITING,mxUtils.bind(this,function(g){this.reset()}));var b=this.graph.click;this.graph.click=mxUtils.bind(this,function(g){b.apply(this.graph,arguments);null==this.currentState||this.graph.isCellSelected(this.currentState.cell)||!mxEvent.isTouchEvent(g.getEvent())||this.graph.model.isVertex(g.getCell())||this.reset()});var e=!1;this.graph.addMouseListener({mouseDown:mxUtils.bind(this,function(g, n){e=!1;g=n.getEvent();this.isResetEvent(g)?this.reset():this.isActive()||(n=this.getState(n.getState()),null==n&&mxEvent.isTouchEvent(g)||this.update(n));this.setDisplay("none")}),mouseMove:mxUtils.bind(this,function(g,n){g=n.getEvent();this.isResetEvent(g)?this.reset():this.graph.isMouseDown||mxEvent.isTouchEvent(g)||this.update(this.getState(n.getState()),n.getGraphX(),n.getGraphY());null!=this.graph.connectionHandler&&null!=this.graph.connectionHandler.shape&&(e=!0)}),mouseUp:mxUtils.bind(this,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
DrawioFile.prototype.redirectToNewApp=function(b,e){this.ui.spinner.stop();if(!this.redirectDialogShowing){this.redirectDialogShowing=!0;var g=window.location.protocol+"//"+window.location.host+"/"+this.ui.getSearch("create title mode url drive splash state".split(" "))+"#"+this.getHash(),n=mxResources.get("redirectToNewApp");null!=e&&(n+=" ("+e+")");e=mxUtils.bind(this,function(){var y=mxUtils.bind(this,function(){this.redirectDialogShowing=!1;window.location.href==g?window.location.reload():window.location.href= g});null==b&&this.isModified()?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.redirectDialogShowing=!1}),y,mxResources.get("cancel"),mxResources.get("discardChanges")):y()});null!=b?this.isModified()?this.ui.confirm(n,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()}),e,mxResources.get("cancel"),mxResources.get("discardChanges")):this.ui.confirm(n,e,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()})):this.ui.alert(mxResources.get("redirectToNewApp"), e)}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.prototype.createLibraryDataFromImages=function(d){if(!Editor.defaultCompressed)for(var f=0;f<d.length;f++)null!=d[f].xml&&"<"!=d[f].xml.charAt(0)&&(d[f].xml=mxUtils.trim(Graph.decompress(d[f].xml)));f=mxUtils.createXmlDocument();var k=f.createElement("mxlibrary");mxUtils.setTextContent(k,JSON.stringify(d,null,2));f.appendChild(k);return mxUtils.getXml(f,"\n")};EditorUi.prototype.closeLibrary=function(d){null!=d&&(this.removeLibrarySidebar(d.getHash()),d.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(d.getHash()), ".scratchpad"==d.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(d){var f=this.sidebar.palettes[d];if(null!=f){for(var k=0;k<f.length;k++)f[k].parentNode.removeChild(f[k]);delete this.sidebar.palettes[d]}};EditorUi.prototype.repositionLibrary=function(d){var f=this.sidebar.getEntryContainer();if(null==d){var k=this.sidebar.palettes["L.scratchpad"];null==k&&(k=this.sidebar.palettes.search);null!=k&&(d=k[k.length-1].nextSibling)}d=null!=d?d:f.firstChild.nextSibling.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
Graph.prototype.getSwimlaneAt=function(b,e,g){var n=mxGraph.prototype.getSwimlaneAt.apply(this,arguments);this.isCellLocked(n)&&(n=null);return n};Graph.prototype.isCellFoldable=function(b){var e=this.getCurrentCellStyle(b);return this.foldingEnabled&&"0"!=mxUtils.getValue(e,mxConstants.STYLE_RESIZABLE,"1")&&("1"==e.treeFolding||!this.isCellLocked(b)&&(this.isContainer(b)&&"0"!=e.collapsible||!this.isContainer(b)&&"1"==e.collapsible))};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.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, 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
ma.width=ja;ma.height=fa;var da=ma.toDataURL();ia!==da&&(f=ia,J=ja,O=fa)}}}catch(S){}k(f,J,O)};EditorUi.prototype.extractGraphModelFromPng=function(d){return Editor.extractGraphModelFromPng(d)};EditorUi.prototype.loadImage=function(d,f,k){try{var v=new Image;v.onload=function(){v.width=0<v.width?v.width:120;v.height=0<v.height?v.height:120;f(v)};null!=k&&(v.onerror=k);v.src=d}catch(z){if(null!=k)k(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=function(){var d="1"==urlParams.sketch;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
"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
function ba(){mxShape.call(this)}function V(){mxShape.call(this)}function Z(){mxRectangleShape.call(this)}function aa(){mxShape.call(this)}function ka(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function pa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Da(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function ya(){mxDoubleEllipse.call(this)}function Oa(){mxDoubleEllipse.call(this)}function Qa(){mxArrowConnector.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
Graph.arrayBufferIndexOfString=function(b,e,g){var n=e.charCodeAt(0),y=1,q=-1;for(g=g||0;g<b.byteLength;g++)if(b[g]==n){q=g;break}for(g=q+1;-1<q&&g<b.byteLength&&g<q+e.length-1;g++){if(b[g]!=e.charCodeAt(y))return Graph.arrayBufferIndexOfString(b,e,q+1);y++}return y==e.length-1?q:-1};Graph.compress=function(b,e){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=e?pako.deflate(encodeURIComponent(b)):pako.deflateRaw(encodeURIComponent(b));return btoa(Graph.arrayBufferToString(new Uint8Array(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
FilenameDialog.createTypeHint=function(b,e,g){var n=document.createElement("img");n.style.backgroundPosition="center bottom";n.style.backgroundRepeat="no-repeat";n.style.margin="2px 0 0 4px";n.style.verticalAlign="top";n.style.cursor="pointer";n.style.height="16px";n.style.width="16px";mxUtils.setOpacity(n,70);var y=function(){n.setAttribute("src",Editor.helpImage);n.setAttribute("title",mxResources.get("help"));for(var q=0;q<g.length;q++)if(0<g[q].ext.length&&e.value.toLowerCase().substring(e.value.length- g[q].ext.length-1)=="."+g[q].ext){n.setAttribute("title",mxResources.get(g[q].title));break}};mxEvent.addListener(e,"keyup",y);mxEvent.addListener(e,"change",y);mxEvent.addListener(n,"click",function(q){var E=n.getAttribute("title");n.getAttribute("src")==Editor.helpImage?b.editor.graph.openLink(FilenameDialog.filenameHelpLink):""!=E&&b.showError(null,E,mxResources.get("help"),function(){b.editor.graph.openLink(FilenameDialog.filenameHelpLink)},null,mxResources.get("ok"),null,null,null,340,90);mxEvent.consume(q)});
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Ka);mxUtils.extend(cb,mxActor);cb.prototype.size=.1;cb.prototype.fixedSize=20;cb.prototype.redrawPath=function(c,l,u,p,t){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(p,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):p*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(l,0);c.lineTo(p,0);c.quadTo(p-2*l,t/2,p,t);c.lineTo(l,t);c.quadTo(l-2*l,t/2,l,0);c.close();c.end()};mxCellRenderer.registerShape("dataStorage",cb);
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
(new mxXmlRequest(SAVE_URL,"format="+R+"&xml="+encodeURIComponent(F)+"&filename="+encodeURIComponent(b)+(q?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(F)}));N()}});q?(e=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(F){T(F)}),n,this.ui.getCurrentFile()!=this?E:null,e.scale,e.border)):T(E)};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
EditorUi.parsePng=function(b,e,g){function n(N,T){var F=q;q+=T;return N.substring(F,q)}function y(N){N=n(N,4);return N.charCodeAt(3)+(N.charCodeAt(2)<<8)+(N.charCodeAt(1)<<16)+(N.charCodeAt(0)<<24)}var q=0;if(n(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(n(b,4),"IHDR"!=n(b,4))null!=g&&g();else{n(b,17);do{g=y(b);var E=n(b,4);if(null!=e&&e(q-8,E,g))break;value=n(b,g);n(b,4);if("IEND"==E)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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:mxCellMarker.prototype.intersects.apply(E,arguments)});return E};mxGraphView.prototype.createBackgroundPageShape=function(E){return new mxRectangleShape(E,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var E=this.getGraphBounds(),N=0<E.width?E.x/this.scale-this.translate.x:0,T=0<E.height?E.y/this.scale-this.translate.y:0,F=this.graph.pageFormat,K=this.graph.pageScale,R=F.width*K;F=F.height*K;K=Math.floor(Math.min(0,N)/R);var W=Math.floor(Math.min(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.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(g,n){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var y=g.view.graph.tolerance,q=!0,E=null,N=mxUtils.bind(this,function(K){q=!0;E=new mxPoint(mxEvent.getClientX(K),mxEvent.getClientY(K))}),T=mxUtils.bind(this,function(K){q=q&&null!=E&&Math.abs(E.x-mxEvent.getClientX(K))<y&&Math.abs(E.y-mxEvent.getClientY(K))<y}),F=mxUtils.bind(this,function(K){if(q)for(var R=mxEvent.getSource(K);null!= R&&R!=n.node;){if("a"==R.nodeName.toLowerCase()){g.view.graph.labelLinkClicked(g,R,K);break}R=R.parentNode}});mxEvent.addGestureListeners(n.node,N,T,F);mxEvent.addListener(n.node,"click",function(K){mxEvent.consume(K)})};if(null!=this.tooltipHandler){var e=this.tooltipHandler.init;this.tooltipHandler.init=function(){e.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(g){var n=mxEvent.getSource(g);"A"==n.nodeName&&(n=n.getAttribute("href"),null!= n&&this.graph.isCustomLink(n)&&(mxEvent.isTouchEvent(g)||!mxEvent.isPopupTrigger(g))&&this.graph.customLinkClicked(n)&&mxEvent.consume(g))}))}}this.addListener(mxEvent.SIZE,mxUtils.bind(this,function(g,n){null!=this.container&&this.flowAnimationStyle&&(g=this.flowAnimationStyle.getAttribute("id"),this.flowAnimationStyle.innerHTML=this.getFlowAnimationStyleCss(g))}));this.initLayoutManager()};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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); return!mxUtils.getValue(E.style,mxConstants.STYLE_CURVED,!1)&&("connector"==N||"filledEdge"==N||"wire"==N)};Graph.prototype.isAutoSizeState=function(E){return"1"==mxUtils.getValue(E.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(E){return null!=mxUtils.getValue(E.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(E){return"image"!=mxUtils.getValue(E.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.getVerticesAndEdges=function(E,N){E=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.outerStroke&&(c.ellipse(l,u,p,t),c.stroke())};mxCellRenderer.registerShape("endState",ya);mxUtils.extend(Oa,ya);Oa.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",Oa);mxUtils.extend(Qa,mxArrowConnector);Qa.prototype.defaultWidth=4;Qa.prototype.isOpenEnded=function(){return!0};Qa.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};Qa.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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,.5*(l-p),u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-p),.5*(u+t)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-p),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*l-.25*p,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*t));return c};Ea.prototype.getConstraints=function(c,l,u){c=[];var p=Math.max(0,Math.min(l,parseFloat(mxUtils.getValue(this.style, "dx",this.dx)))),t=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+p),t));c.push(new mxConnectionConstraint(new mxPoint(0, 0),!1,null,p,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,p,.5*(u+t)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,p,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*p,u));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));return c};za.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(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 x};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var x="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",L="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),P=0;P<L.length;P++)null!= this.currentEdgeStyle[L[P]]&&(x+=L[P]+"="+this.currentEdgeStyle[L[P]]+";");null!=this.currentEdgeStyle.orthogonalLoop?x+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(x+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?x+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(x+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+ ";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(x+="elbow="+this.currentEdgeStyle.elbow+";");return x=null!=this.currentEdgeStyle.html?x+("html="+this.currentEdgeStyle.html+";"):x+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var x=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,e=function(n){return"function"===typeof n||"[object Function]"===b.call(n)},g=Math.pow(2,53)-1;return function(n){var y=Object(n);if(null==n)throw new TypeError("Array.from requires an array-like object - not null or undefined");var q=1<arguments.length?arguments[1]:void 0,E;if("undefined"!==typeof q){if(!e(q))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(E=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
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* l,(.5-db)*l),c.lineTo(.5*l,(1-db)*l)):(c.translate((p-l)/2,(t-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*db),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-db)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",N);mxUtils.extend(T,mxCylinder);T.prototype.redrawPath=function(c,l,u,p,t,B){l=Math.min(t/2,Math.round(t/8)+this.strokewidth-1);if(B&&null!=this.fill||!B&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,p,2*l,p,l),B||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(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
"size",this.fixedSize)))):p*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(l,0),new mxPoint(p,0),new mxPoint(p-l,t)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("parallelogram",J);mxUtils.extend(O,mxActor);O.prototype.size=.2;O.prototype.fixedSize=20;O.prototype.isRoundable=function(){return!0};O.prototype.redrawPath=function(c, l,u,p,t){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*p,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):p*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(l,0),new mxPoint(p-l,0),new mxPoint(p,t)],this.isRounded,u,!0)};mxCellRenderer.registerShape("trapezoid",O);mxUtils.extend(G,mxActor);
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
ha.positionChanged=function(){I.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return ha},Ab={link:function(c){return[mb(c,!0,10),mb(c,!1,10)]},flexArrow:function(c){var l=c.view.graph.gridSize/c.view.scale,u=[];mxUtils.getValue(c.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(u.push(wb(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(p,t,B,D,ha){p=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;ha=3*mxUtils.getNumber(c.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
Graph.prototype.getSwimlaneAt=function(b,e,g){var n=mxGraph.prototype.getSwimlaneAt.apply(this,arguments);this.isCellLocked(n)&&(n=null);return n};Graph.prototype.isCellFoldable=function(b){var e=this.getCurrentCellStyle(b);return this.foldingEnabled&&"0"!=mxUtils.getValue(e,mxConstants.STYLE_RESIZABLE,"1")&&("1"==e.treeFolding||!this.isCellLocked(b)&&(this.isContainer(b)&&"0"!=e.collapsible||!this.isContainer(b)&&"1"==e.collapsible))};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Sa,I,Ia),B.paintLeft(c,l,u,p,t,D,Sa,I,Ga),B.lineNWInner(c,l,u,p,t,D,Sa,I,na,Ga,Ha),B.paintLeftInner(c,l,u,p,t,D,Ya,I,na,Ia,Ha),c.close(),c.fillAndStroke());c.begin();B.paintFolds(c,l,u,p,t,D,Sa,Wa,Xa,Ya,I,Ga,Ja,Ia,Ha);c.stroke()};Na.prototype.moveNW=function(c,l,u,p,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.moveTo(0,0):c.moveTo(0,ha)};Na.prototype.moveNE=function(c,l,u,p,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.moveTo(p,0):c.moveTo(p-ha,0)};Na.prototype.moveSE=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
"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