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
M&&f.isCustomLink(M)&&(mxEvent.isTouchEvent(C)||!mxEvent.isPopupTrigger(C))&&f.customLinkClicked(M)&&mxEvent.consume(C);null!=m&&m(C,M)};J.call(this,U,Q,Y)};q.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var O=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(U,Q,Y){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(U,["zoomIn","zoomOut","-"],null,Y);O.apply(this,arguments); f.isSelectionEmpty()||null==d.addSelectionToScratchpad||this.addMenuItems(U,["-","addToScratchpad"],null,Y);f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(U,["-","exitGroup","home"],null,Y)};var G=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(U,Q,Y){if(d.editor.graph.isSelectionEmpty())G.apply(this,arguments),d.menus.addMenuItems(U,["copyAsImage"],null,Y);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(U,Q,Y):this.addPopupMenuArrangeItems(U,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(c,l,u){c=[];var p=Math.max(0,Math.min(l,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-p),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-p,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-.5*p,.5*p));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,p));c.push(new mxConnectionConstraint(new mxPoint(0, 0),!1,null,l,.5*(u+p)));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));l>=2*p&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};z.prototype.getConstraints=function(c,l,u){c=[];var p=Math.max(0,Math.min(l,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(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
ta);mxUtils.extend(Aa,mxRectangleShape);Aa.prototype.dx=20;Aa.prototype.dy=20;Aa.prototype.isHtmlAllowed=function(){return!1};Aa.prototype.paintForeground=function(c,l,u,p,t){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var B=0;if(this.isRounded){var D=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;B=Math.max(B,Math.min(p*D,t*D))}D=Math.max(B,Math.min(p,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));B=Math.max(B,Math.min(t,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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)}}}};Editor.trimCssUrl=function(m){return m.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(m){m=null!=m?m:Editor.GUID_LENGTH;for(var C=[],M=0;M<m;M++)C.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return C.join("")};Editor.updateStatusInterval=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
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)&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(S,U,Q){return this.graph.isCellSelected(S)?!1:ca.apply(this,arguments)};var ia=this.updateMouseEvent;this.updateMouseEvent=function(S){S=ia.apply(this,arguments);null!=S.state&&this.isCellLocked(this.getLayerForCell(S.getCell()))&&(S.state=null);return S};var ma=this.isCellSelectable;this.isCellSelectable=function(S){return ma.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(S))};this.isCellLocked=function(S){for(;null!=S;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(S),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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))}}finally{this.graph.model.endUpdate()}}else oa=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(oa,L.getEvent());L.consume()}}};mxRubberband.prototype.mouseMove=function(x,L){if(!L.isConsumed()&&null!=this.first){var P=mxUtils.getScrollOrigin(this.graph.container);x=mxUtils.getOffset(this.graph.container);P.x-=x.x;P.y-=x.y;x=L.getX()+P.x;P=L.getY()+P.y;var X=this.first.x-x,ea=this.first.y-P,la=this.graph.tolerance;if(null!=this.div||Math.abs(X)>la||Math.abs(ea)>la)null==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
parseFloat(d.getAttribute("scale"))),d.hasAttribute("dx")||d.hasAttribute("dy"))z.view.translate=new mxPoint(parseFloat(d.getAttribute("dx")||0),parseFloat(d.getAttribute("dy")||0))}else"fit"==d.nodeName&&(H=d.hasAttribute("max-scale")?parseFloat(d.getAttribute("max-scale")):1);d=d.nextSibling}}finally{A.endUpdate()}null!=H&&this.chromelessResize&&this.chromelessResize(!0,H)}return k};EditorUi.prototype.getCopyFilename=function(d,f){var k=null!=d&&null!=d.getTitle()?d.getTitle():this.defaultFilename; d="";var v=k.lastIndexOf(".");0<=v&&(d=k.substring(v),k=k.substring(0,v));if(f){f=k;var z=new Date;k=z.getFullYear();v=z.getMonth()+1;var A=z.getDate(),H=z.getHours(),J=z.getMinutes();z=z.getSeconds();k=f+(" "+(k+"-"+v+"-"+A+"-"+H+"-"+J+"-"+z))}return k=mxResources.get("copyOf",[k])+d};EditorUi.prototype.fileLoaded=function(d,f,k){var v=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var z=!1;this.hideDialog();null!=v&&(EditorUi.debug("File.closed",[v]),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
n);var Ra=Math.tan(mxUtils.toRadians(30)),db=(.5-Ra)/2;mxCellRenderer.registerShape("isoRectangle",E);mxUtils.extend(y,mxConnector);y.prototype.paintEdgeShape=function(c,l){var u=this.createMarker(c,l,!0),p=this.createMarker(c,l,!1);c.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&c.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);c.setShadow(!1);c.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this, 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
EditorUi.prototype.prompt=function(b,e,g){b=new FilenameDialog(this,e,mxResources.get("apply"),function(n){g(parseFloat(n))},b);this.showDialog(b.container,300,80,!0,!0);b.init()};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
(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
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
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
GraphViewer.createViewerForElement=function(b,e){var g=b.getAttribute("data-mxgraph");if(null!=g){var n=JSON.parse(g),y=function(q){q=mxUtils.parseXml(q);q=new GraphViewer(b,q.documentElement,n);null!=e&&e(q)};null!=n.url?GraphViewer.getUrl(n.url,function(q){y(q)}):y(n.xml)}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.onKeyDown=function(b){var e=this.editor.graph;if(9==b.which&&e.isEnabled()&&!mxEvent.isControlDown(b)){if(e.isEditing())if(mxEvent.isAltDown(b))e.stopEditing(!1);else try{var g=e.cellEditor.isContentEditing()&&e.cellEditor.isTextSelected();if(window.getSelection&&e.cellEditor.isContentEditing()&&!g&&!mxClient.IS_IE&&!mxClient.IS_IE11){var n=window.getSelection(),y=0<n.rangeCount?n.getRangeAt(0).commonAncestorContainer:null;g=null!=y&&("LI"==y.nodeName||null!=y.parentNode&&"LI"== y.parentNode.nodeName)}g?document.execCommand(mxEvent.isShiftDown(b)?"outdent":"indent",!1,null):mxEvent.isShiftDown(b)?e.stopEditing(!1):e.cellEditor.insertTab(e.cellEditor.isContentEditing()?null:4)}catch(q){}else mxEvent.isAltDown(b)?e.selectParentCell():e.selectCell(!mxEvent.isShiftDown(b));mxEvent.consume(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
var z=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(Q,Y){return n.isSpaceDown()||z.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(Q){16==Q.which?this.shiftDown=!0:32!=Q.which||y.isEditing()?mxEvent.isConsumed(Q)||27!=Q.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),y.container.style.cursor="move",y.isEditing()||mxEvent.getSource(Q)!=y.container||mxEvent.consume(Q))});mxEvent.addListener(document,"keydown",this.keydownHandler);
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.resetScrollbars=function(){var b=this.editor.graph,e=b.container;if(!this.editor.extendCanvas)e.scrollTop=0,e.scrollLeft=0,mxUtils.hasScrollbars(e)||b.view.setTranslate(0,0);else if(!this.editor.isChromelessView())if(mxUtils.hasScrollbars(e))if(b.pageVisible){var g=b.getPagePadding();e.scrollTop=Math.floor(g.y-this.editor.initialTopSpacing)-1;e.scrollLeft=Math.floor(Math.min(g.x,(e.scrollWidth-e.clientWidth)/2))-1;g=b.getGraphBounds();0<g.width&&0<g.height&&(g.x>e.scrollLeft+.9* e.clientWidth&&(e.scrollLeft=Math.min(g.x+g.width-e.clientWidth,g.x-10)),g.y>e.scrollTop+.9*e.clientHeight&&(e.scrollTop=Math.min(g.y+g.height-e.clientHeight,g.y-10)))}else if(g=b.getGraphBounds(),0==g.width&&0==g.height)e.scrollLeft=(e.scrollWidth-e.clientWidth)/2,e.scrollTop=(e.scrollHeight-e.clientHeight)/2;else{var n=Math.max(g.width,b.scrollTileSize.width*b.view.scale);e.scrollTop=Math.floor(Math.max(0,g.y-Math.max(20,(e.clientHeight-Math.max(g.height,b.scrollTileSize.height*b.view.scale))/4))); e.scrollLeft=Math.floor(Math.max(0,g.x-Math.max(0,(e.clientWidth-n)/2)))}else{g=mxRectangle.fromRectangle(b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds());n=b.view.translate;var y=b.view.scale;g.x=g.x/y-n.x;g.y=g.y/y-n.y;g.width/=y;g.height/=y;b.view.setTranslate(Math.floor(Math.max(0,(e.clientWidth-g.width)/2)-g.x+2),Math.floor((b.pageVisible?0:Math.max(0,(e.clientHeight-g.height)/4))-g.y+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
la.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return la};var L=!1,P=!1,X=!1,ea=this.fireMouseEvent;this.fireMouseEvent=function(la,oa,xa){la==mxEvent.MOUSE_DOWN&&(oa=this.updateMouseEvent(oa),L=this.isCellSelected(oa.getCell()),P=this.isSelectionEmpty(),X=this.popupMenuHandler.isMenuShowing());ea.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(la,oa){var xa=mxEvent.isMouseEvent(oa.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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+=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, new mxRectangle(0,0,0,Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(l.style,"size",ma.prototype.size))*l.view.scale))),l.style),l,u,p)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(c,l,u,p){var t="0"!=mxUtils.getValue(l.style,"fixedSize","0"),B=t?J.prototype.fixedSize:J.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;l=null!=l?mxUtils.getValue(l.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
(null!=Z||0<=mxUtils.indexOf(aa,mxUtils.hex2rgb(ka.fill)))?"solid":qa.fillStyle);ka.fillStyle=aa;return ka};m.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};m.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};m.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var Z=2;Z<arguments.length;Z+=2)this.lastX=arguments[Z-1],this.lastY=arguments[Z],this.path.push(this.canvas.format(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
M?mxUtils.trim(M):M};Editor.addRetryToError=function(m,C){null!=m&&(m=null!=m.error?m.error:m,null==m.retry&&(m.retry=C))};Editor.mermaidToDrawio=function(m,C,M){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(m,C,M)};Editor.configure=function(m){if(null!=m){Editor.config=m;Editor.configVersion=m.version;m.debug&&(urlParams.test="1");null!=m.defaultFonts&&(Menus.prototype.defaultFonts=m.defaultFonts);null!=m.presetColors&&(ColorDialog.prototype.presetColors=m.presetColors);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
Editor.prototype.createUndoManager=function(){var b=this.graph,e=new mxUndoManager;this.undoListener=function(n,y){e.undoableEditHappened(y.getProperty("edit"))};var g=mxUtils.bind(this,function(n,y){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,g);b.getView().addListener(mxEvent.UNDO,g);g=function(n,y){n=b.getSelectionCellsForChanges(y.getProperty("edit").changes,function(E){return!(E instanceof mxChildChange)});if(0<n.length){b.getModel();y=[];for(var q=0;q<n.length;q++)null!=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(x){return n.apply(this,arguments)||this.graph.isEdgeIgnored(x)};var y=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(x){return this.graph.isCloneEvent(x)!=y.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var x=new mxEllipse(null,this.highlightColor,this.highlightColor,0);x.opacity=mxConstants.HIGHLIGHT_OPACITY;return x};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(S,U,Q){return this.graph.isCellSelected(S)?!1:ca.apply(this,arguments)};var ia=this.updateMouseEvent;this.updateMouseEvent=function(S){S=ia.apply(this,arguments);null!=S.state&&this.isCellLocked(this.getLayerForCell(S.getCell()))&&(S.state=null);return S};var ma=this.isCellSelectable;this.isCellSelectable=function(S){return ma.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(S))};this.isCellLocked=function(S){for(;null!=S;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(S),
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.rc.generator.ellipse(Z+ka/2,aa+qa/2,ka,qa,this.getStyle(!0,!0)))};m.prototype.roundrect=function(Z,aa,ka,qa,ra,pa){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(Z+ra,aa),this.lineTo(Z+ka-ra,aa),this.quadTo(Z+ka,aa,Z+ka,aa+pa),this.lineTo(Z+ka,aa+qa-pa),this.quadTo(Z+ka,aa+qa,Z+ka-ra,aa+qa),this.lineTo(Z+ra,aa+qa),this.quadTo(Z,aa+qa,Z,aa+qa-pa),this.lineTo(Z,aa+pa),this.quadTo(Z,aa,Z+ra,aa))};m.prototype.drawPath=function(Z){if(0<this.path.length){this.passThrough=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
ba.charAt(0)&&(ba=decodeURIComponent(ba)),null!=ba&&0<ba.length)m=mxUtils.parseXml(ba).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==m||C||(V=null,"diagram"==m.nodeName?V=m:"mxfile"==m.nodeName&&(ba=m.getElementsByTagName("diagram"),0<ba.length&&(V=ba[Math.max(0,Math.min(ba.length-1,urlParams.page||0))])),null!=V&&(m=Editor.parseDiagramNode(V,M)));null==m||"mxGraphModel"==m.nodeName||C&&"mxfile"==m.nodeName||(m=null);return m};Editor.parseDiagramNode=function(m,C){var M= mxUtils.trim(mxUtils.getTextContent(m)),ba=null;0<M.length?(m=Graph.decompress(M,null,C),null!=m&&0<m.length&&(ba=mxUtils.parseXml(m).documentElement)):(m=mxUtils.getChildNodes(m),0<m.length&&(ba=mxUtils.createXmlDocument(),ba.appendChild(ba.importNode(m[0],!0)),ba=ba.documentElement));return ba};Editor.getDiagramNodeXml=function(m){var C=mxUtils.getTextContent(m),M=null;0<C.length?M=Graph.decompress(C):null!=m.firstChild&&(M=mxUtils.getXml(m.firstChild));return M};Editor.extractGraphModelFromPdf=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
W,[N[T]])}}R&&this.setCellStyles(mxConstants.STYLE_PERIMETER,K,[N[T]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(E,N,T,F,K,R){this.useCssTransforms&& (E=E/this.currentScale-this.currentTranslate.x,N=N/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(E,N,T,F,K,R){F=null!=F?F:!0;K=null!=K?K:!0;null==T&&(T=this.getCurrentRoot(),null==T&&(T=this.getModel().getRoot()));if(null!=T)for(var W=this.model.getChildCount(T)-1;0<=W;W--){var d=this.model.getChildAt(T,W),f=this.getScaledCellAt(E,N,d,F,K,R);if(null!=f)return f;if(this.isCellVisible(d)&&(K&&this.model.isEdge(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
mxActor);z.prototype.size=30;z.prototype.isRoundable=function(){return!0};z.prototype.redrawPath=function(c,l,u,p,t){l=Math.max(0,Math.min(p,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(l,0),new mxPoint(p,0),new mxPoint(p,t),new mxPoint(0,t),new mxPoint(0,l)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("card",z);mxUtils.extend(A,mxActor);A.prototype.size=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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)c.lineTo(p-I,t-ha-.5*I);else if("fold"==D||"default"==D&&"fold"==B)c.lineTo(p-ha-I,t-ha-I),c.lineTo(p-I,t-ha-I)};Na.prototype.paintBottomInner=function(c,l,u,p,t,B,D,ha,I,ua,na){ua||na?!ua&&na?c.lineTo(p,t-I):ua&&!na?c.lineTo(p-I,t):"square"==D||"default"==D&&"square"==B||!ua?c.lineTo(p-I,t-I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.lineTo(p-ha-.5*I,t-I):c.lineTo(p-ha-I,t-I):c.lineTo(p,t)};Na.prototype.paintSWInner=function(c,l,u,p,t,B,D,ha,I,ua){if(!ua)c.lineTo(I, t);else if("square"==D||"default"==D&&"square"==B)c.lineTo(I,t-I);else if("rounded"==D||"default"==D&&"rounded"==B)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,ha+.5*I,t-I);else if("invRound"==D||"default"==D&&"invRound"==B)c.arcTo(ha+I,ha+I,0,0,1,ha+I,t-I);else if("snip"==D||"default"==D&&"snip"==B)c.lineTo(ha+.5*I,t-I);else if("fold"==D||"default"==D&&"fold"==B)c.lineTo(I+ha,t-ha-I),c.lineTo(I+ha,t-I)};Na.prototype.moveSWInner=function(c,l,u,p,t,B,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==B?c.moveTo(I,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
var ErrorDialog=function(b,e,g,n,y,q,E,N,T,F,K){T=null!=T?T:!0;var R=document.createElement("div");R.style.textAlign="center";if(null!=e){var W=document.createElement("div");W.style.padding="0px";W.style.margin="0px";W.style.fontSize="18px";W.style.paddingBottom="16px";W.style.marginBottom="10px";W.style.borderBottom="1px solid #c0c0c0";W.style.color="gray";W.style.whiteSpace="nowrap";W.style.textOverflow="ellipsis";W.style.overflow="hidden";mxUtils.write(W,e);W.setAttribute("title",e);R.appendChild(W)}e= document.createElement("div");e.style.lineHeight="1.2em";e.style.padding="6px";"string"===typeof g&&(g=g.replace(/\n/g,"<br/>"));e.innerHTML=g;R.appendChild(e);g=document.createElement("div");g.style.marginTop="12px";g.style.textAlign="center";null!=q&&(e=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();q()}),e.className="geBtn",g.appendChild(e),g.style.textAlign="center");null!=F&&(F=mxUtils.button(F,function(){null!=K&&K()}),F.className="geBtn",g.appendChild(F));var d=mxUtils.button(n, function(){T&&b.hideDialog();null!=y&&y()});d.className="geBtn";g.appendChild(d);null!=E&&(n=mxUtils.button(E,function(){T&&b.hideDialog();null!=N&&N()}),n.className="geBtn gePrimaryBtn",g.appendChild(n));this.init=function(){d.focus()};R.appendChild(g);this.container=R},PrintDialog=function(b,e){this.create(b,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
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
EditorUi.prototype.saveCanvas=function(d,f,k,v,z){var A="jpeg"==k?"jpg":k;v=this.getBaseFilename(v)+(null!=f?".drawio":"")+"."+A;d=this.createImageDataUri(d,f,k,z);this.saveData(v,A,d.substring(d.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.scale,0,0,0):null};K.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,Math.max(0,l*this.scale))}return null};mxUtils.extend(J,mxActor);J.prototype.size=.2;J.prototype.fixedSize=20;J.prototype.isRoundable=function(){return!0};J.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))));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,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
parseFloat(mxUtils.getValue(this.style,"size",this.size));var B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(p,0),new mxPoint(p,u),new mxPoint(l,u),new mxPoint(l,t),new mxPoint(0,t)],this.isRounded,B,!0);c.end()};mxCellRenderer.registerShape("corner",Ea);mxUtils.extend(za,mxActor);za.prototype.redrawPath=function(c,l,u,p,t){c.moveTo(0,0);c.lineTo(0,t);c.end();c.moveTo(p,0);c.lineTo(p,t);c.end();c.moveTo(0,t/2);c.lineTo(p, t/2);c.end()};mxCellRenderer.registerShape("crossbar",za);mxUtils.extend(Va,mxActor);Va.prototype.dx=20;Va.prototype.dy=20;Va.prototype.redrawPath=function(c,l,u,p,t){l=Math.max(0,Math.min(p,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[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
Graph.prototype.getTooltipForCell=function(b){var e="";if(mxUtils.isNode(b.value)){var g=null;Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=b.value.getAttribute("tooltip_"+Graph.diagramLanguage));null==g&&(g=b.value.getAttribute("tooltip"));if(null!=g)null!=g&&this.isReplacePlaceholders(b)&&(g=this.replacePlaceholders(b,g)),e=Graph.sanitizeHtml(g);else{g=this.builtInProperties;b=b.value.attributes;var n=[];this.isEnabled()&&(g.push("linkTarget"),g.push("link"));for(var y=0;y<b.length;y++)(Graph.translateDiagram&& "label"==b[y].nodeName||0>mxUtils.indexOf(g,b[y].nodeName))&&0<b[y].nodeValue.length&&n.push({name:b[y].nodeName,value:b[y].nodeValue});n.sort(function(q,E){return q.name<E.name?-1:q.name>E.name?1:0});for(y=0;y<n.length;y++)"link"==n[y].name&&this.isCustomLink(n[y].value)||(e+=("link"!=n[y].name?"<b>"+mxUtils.htmlEntities(n[y].name)+":</b> ":"")+mxUtils.htmlEntities(n[y].value)+"\n");0<e.length&&(e=e.substring(0,e.length-1),mxClient.IS_SVG&&(e='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+ e+"</div>"))}}return e};Graph.prototype.getFlowAnimationStyle=function(){var b=document.getElementsByTagName("head")[0];if(null!=b&&null==this.flowAnimationStyle){this.flowAnimationStyle=document.createElement("style");this.flowAnimationStyle.setAttribute("id","geEditorFlowAnimation-"+Editor.guid());this.flowAnimationStyle.type="text/css";var e=this.flowAnimationStyle.getAttribute("id");this.flowAnimationStyle.innerHTML=this.getFlowAnimationStyleCss(e);b.appendChild(this.flowAnimationStyle)}return this.flowAnimationStyle};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.bbox&&mxUtils.contains(this.bbox,n.getGraphX(),n.getGraphY())?(this.setDisplay(""),this.repaint()):mxEvent.isTouchEvent(g)||this.reset();e=!1;this.resetActiveArrow()})})};HoverIcons.prototype.isResetEvent=function(b,e){return mxEvent.isAltDown(b)||null==this.activeArrow&&mxEvent.isShiftDown(b)||mxEvent.isPopupTrigger(b)&&!this.graph.isCloneEvent(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
J.y)||W}K.routedPoints=d;return W}return!1};var q=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(K,R,W){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)q.apply(this,arguments);else{var d=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,f=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))- 2)/2+this.strokewidth,k=mxUtils.getValue(this.style,"jumpStyle","none"),v=!0,z=null,A=null,H=[],J=null;K.begin();for(var O=0;O<this.state.routedPoints.length;O++){var G=this.state.routedPoints[O],ja=new mxPoint(G.x/this.scale,G.y/this.scale);0==O?ja=R[0]:O==this.state.routedPoints.length-1&&(ja=R[R.length-1]);var fa=!1;if(null!=z&&1==G.type){var ca=this.state.routedPoints[O+1];G=ca.x/this.scale-ja.x;ca=ca.y/this.scale-ja.y;G=G*G+ca*ca;null==J&&(J=new mxPoint(ja.x-z.x,ja.y-z.y),A=Math.sqrt(J.x*J.x+ J.y*J.y),0<A?(J.x=J.x*f/A,J.y=J.y*f/A):J=null);G>f*f&&0<A&&(G=z.x-ja.x,ca=z.y-ja.y,G=G*G+ca*ca,G>f*f&&(fa=new mxPoint(ja.x-J.x,ja.y-J.y),G=new mxPoint(ja.x+J.x,ja.y+J.y),H.push(fa),this.addPoints(K,H,W,d,!1,null,v),H=0>Math.round(J.x)||0==Math.round(J.x)&&0>=Math.round(J.y)?1:-1,v=!1,"sharp"==k?(K.lineTo(fa.x-J.y*H,fa.y+J.x*H),K.lineTo(G.x-J.y*H,G.y+J.x*H),K.lineTo(G.x,G.y)):"line"==k?(K.moveTo(fa.x+J.y*H,fa.y-J.x*H),K.lineTo(fa.x-J.y*H,fa.y+J.x*H),K.moveTo(G.x-J.y*H,G.y+J.x*H),K.lineTo(G.x+J.y*H, G.y-J.x*H),K.moveTo(G.x,G.y)):"arc"==k?(H*=1.3,K.curveTo(fa.x-J.y*H,fa.y+J.x*H,G.x-J.y*H,G.y+J.x*H,G.x,G.y)):(K.moveTo(G.x,G.y),v=!0),H=[G],fa=!0))}else J=null;fa||(H.push(ja),z=ja)}this.addPoints(K,H,W,d,!1,null,v);K.stroke()}};var E=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(K,R,W,d){return null!=R&&"centerPerimeter"==R.style[mxConstants.STYLE_PERIMETER]?new mxPoint(R.getCenterX(),R.getCenterY()):E.apply(this,arguments)};var N=mxGraphView.prototype.updateFloatingTerminalPoint;
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.handleError(ia)}))})))}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,H,null,1<J,O,v,A,z);J=this.isServices(J)?4<J?390:280:160;this.showDialog(d.container,420,J,!0,!0);d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,f,k,v,z,A){};EditorUi.prototype.pickFolder=function(d,f,k){f(null)};EditorUi.prototype.exportSvg=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
d,!0,!0);null!=ca?(ca.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?ca.select():document.execCommand("selectAll",!1,null)):ma.focus()};EditorUi.prototype.showRemoteExportDialog=function(d,f,k,v,z){var A=document.createElement("div");A.style.whiteSpace="nowrap";var H=document.createElement("h3");mxUtils.write(H,mxResources.get("image"));H.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(z?"10":"4")+"px";A.appendChild(H);if(z){mxUtils.write(A,mxResources.get("zoom")+ ":");var J=document.createElement("input");J.setAttribute("type","text");J.style.marginRight="16px";J.style.width="60px";J.style.marginLeft="4px";J.style.marginRight="12px";J.value=this.lastExportZoom||"100%";A.appendChild(J);mxUtils.write(A,mxResources.get("borderWidth")+":");var O=document.createElement("input");O.setAttribute("type","text");O.style.marginRight="16px";O.style.width="60px";O.style.marginLeft="4px";O.value=this.lastExportBorder||"0";A.appendChild(O);mxUtils.br(A)}var G=this.addCheckbox(A, mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),ja=v?null:this.addCheckbox(A,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);H=this.editor.graph;var fa=v?null:this.addCheckbox(A,mxResources.get("transparentBackground"),H.background==mxConstants.NONE||null==H.background);null!=fa&&(fa.style.marginBottom="16px");d=new CustomDialog(this,A,mxUtils.bind(this,function(){var ca=parseInt(J.value)/100||1,ia=parseInt(O.value)||0;k(!G.checked,null!=ja?ja.checked: !1,null!=fa?fa.checked:!1,ca,ia)}),null,d,f);this.showDialog(d.container,300,(z?25:0)+(v?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(d,f,k,v,z,A,H,J,O){H=null!=H?H:Editor.defaultIncludeDiagram;var G=document.createElement("div");G.style.whiteSpace="nowrap";var ja=this.editor.graph,fa="jpeg"==J?220:300,ca=document.createElement("h3");mxUtils.write(ca,d);ca.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";G.appendChild(ca);mxUtils.write(G,mxResources.get("zoom")+
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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
this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(this.hint.parentNode.removeChild(this.hint),this.hint=null)};var ja=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=function(x,L){ja.apply(this,arguments);var P=this.graph.getCellStyle(x);if(null==P.childLayout){var X=this.graph.model.getParent(x),ea=null!=X?this.graph.getCellGeometry(X):null;if(null!=ea&&(P=this.graph.getCellStyle(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
20;wa.prototype.jettyHeight=10;wa.prototype.redrawPath=function(c,l,u,p,t,B){var D=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));u=D/2;D=u+D/2;var ha=Math.min(l,t-l),I=Math.min(ha+2*l,t-l);B?(c.moveTo(u,ha),c.lineTo(D,ha),c.lineTo(D,ha+l),c.lineTo(u,ha+l),c.moveTo(u,I),c.lineTo(D,I),c.lineTo(D,I+l),c.lineTo(u,I+l)):(c.moveTo(u,0),c.lineTo(p,0),c.lineTo(p,t),c.lineTo(u,t),c.lineTo(u,I+l),c.lineTo(0,I+ l),c.lineTo(0,I),c.lineTo(u,I),c.lineTo(u,ha+l),c.lineTo(0,ha+l),c.lineTo(0,ha),c.lineTo(u,ha),c.close());c.end()};mxCellRenderer.registerShape("module",wa);mxUtils.extend(Da,mxCylinder);Da.prototype.jettyWidth=32;Da.prototype.jettyHeight=12;Da.prototype.redrawPath=function(c,l,u,p,t,B){var D=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));u=D/2;D=u+D/2;var ha=.3*t-l/2,I=.7*t-l/2;B?(c.moveTo(u,ha),c.lineTo(D,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
t-I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.lineTo(p-I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"==D&&"fold"==B)&&c.lineTo(p-I,t-ha-I):c.lineTo(p-I,t)};Na.prototype.moveNEInner=function(c,l,u,p,t,B,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==B||ua?c.moveTo(p-I,I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.moveTo(p-I,ha+.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"== D&&"fold"==B)&&c.moveTo(p-I,ha+I):c.moveTo(p,I)};Na.prototype.lineNEInner=function(c,l,u,p,t,B,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==B||ua?c.lineTo(p-I,I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.lineTo(p-I,ha+.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"==D&&"fold"==B)&&c.lineTo(p-I,ha+I):c.lineTo(p,I)};Na.prototype.moveNWInner=function(c,l,u,p,t,B,D,ha,I,ua,na){ua||na?!ua&&na?c.moveTo(I,0):ua&&!na?c.moveTo(0,I):"square"==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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
na,t),c.lineTo(p-na,t-na),c.lineTo(p,t-na)),("fold"==ua||"default"==ua&&"fold"==B)&&fb&&Ga&&(c.moveTo(0,t-na),c.lineTo(na,t-na),c.lineTo(na,t))};mxCellRenderer.registerShape(Na.prototype.cst.RECT2,Na);Na.prototype.constraints=null;mxUtils.extend(bb,mxConnector);bb.prototype.origPaintEdgeShape=bb.prototype.paintEdgeShape;bb.prototype.paintEdgeShape=function(c,l,u){for(var p=[],t=0;t<l.length;t++)p.push(mxUtils.clone(l[t]));t=c.state.dashed;var B=c.state.fixDash;bb.prototype.origPaintEdgeShape.apply(this, [c,p,u]);3<=c.state.strokeWidth&&(p=mxUtils.getValue(this.style,"fillColor",null),null!=p&&(c.setStrokeColor(p),c.setStrokeWidth(c.state.strokeWidth-2),c.setDashed(t,B),bb.prototype.origPaintEdgeShape.apply(this,[c,l,u])))};mxCellRenderer.registerShape("filledEdge",bb);"undefined"!==typeof StyleFormatPanel&&function(){var c=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var l=this.editorUi.getSelectionState(),u=c.apply(this,arguments);"umlFrame"==
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
B))};mxCellRenderer.registerShape("umlLifeline",Z);mxUtils.extend(aa,mxShape);aa.prototype.width=60;aa.prototype.height=30;aa.prototype.corner=10;aa.prototype.configurePointerEvents=function(c){var l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=l&&l!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(c.pointerEvents=!1)};aa.prototype.getLabelMargins=function(c){return new mxRectangle(0, 0,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&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];La.prototype.getConstraints=function(c,l,u){c=[];var p=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),t=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style, "arrowSize",this.arrowSize))));p=(u-p)/2;c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,p));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-t),p));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-t,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-t,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-t),u-p));c.push(new mxConnectionConstraint(new mxPoint(0, 0),!1,null,0,u-p));return c};Ka.prototype.getConstraints=function(c,l,u){c=[];var p=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",La.prototype.arrowWidth)))),t=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",La.prototype.arrowSize))));p=(u-p)/2;c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*l,p));c.push(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
EditorUi.prototype.setPageVisible=function(b){var e=this.editor.graph,g=mxUtils.hasScrollbars(e.container),n=0,y=0;g&&(n=e.view.translate.x*e.view.scale-e.container.scrollLeft,y=e.view.translate.y*e.view.scale-e.container.scrollTop);e.pageVisible=b;e.pageBreaksVisible=b;e.preferPageSize=b;e.view.validateBackground();if(g){var q=e.getSelectionCells();e.clearSelection();e.setSelectionCells(q)}e.sizeDidChange();g&&(e.container.scrollLeft=e.view.translate.x*e.view.scale-n,e.container.scrollTop=e.view.translate.y* e.view.scale-y);e.defaultPageVisible=b;this.fireEvent(new mxEventObject("pageViewChanged"))};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};m.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};m.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close= this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(Z){return new m(Z,Editor.createRoughCanvas(Z),this)};var C=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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
mxUtils.bind(this,function(R,W,d,f){var k=this.actions.get(d);null!=k&&(d=function(){k.isEnabled()&&k.funct.apply(this,arguments)},W?f?y.bindControlShiftKey(R,d):y.bindControlKey(R,d):f?y.bindShiftKey(R,d):y.bindKey(R,d))});var F=this,K=y.escape;y.escape=function(R){K.apply(this,arguments)};y.enter=function(){};y.bindControlShiftKey(36,function(){n.exitGroup()});y.bindControlShiftKey(35,function(){n.enterGroup()});y.bindShiftKey(36,function(){n.home()});y.bindKey(35,function(){n.refresh()});y.bindAction(107,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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
"resize",n);b.window.destroy();null!=g&&g()}};function ChangeGridColor(b,e){this.ui=b;this.color=e}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=b};(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);mxCodecRegistry.register(b)})();
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(S){for(var U=W.apply(this,arguments),Q=new mxDictionary,Y=[],m=0;m<U.length;m++){var C=this.graph.isTableCell(S)&&this.graph.isTableCell(U[m])&&this.graph.isCellSelected(U[m])?this.graph.model.getParent(U[m]):this.graph.isTableRow(S)&&this.graph.isTableRow(U[m])&&this.graph.isCellSelected(U[m])?U[m]:this.graph.getCompositeParent(U[m]);null==C||Q.get(C)||(Q.put(C,!0),Y.push(C))}return Y};var d=this.graphHandler.start;this.graphHandler.start=function(S,U,Q,Y){var m=!1;this.graph.isTableCell(S)&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
Graph.prototype.updateAlternateBounds=function(b,e,g){if(null!=b&&null!=e&&null!=this.layoutManager&&null!=e.alternateBounds){var n=this.layoutManager.getLayout(this.model.getParent(b));null!=n&&n.constructor==mxStackLayout&&(n.horizontal?e.alternateBounds.height=0:e.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.isMoveCellsEvent=function(b,e){return mxEvent.isShiftDown(b)||"1"==mxUtils.getValue(e.style,"moveCells","0")};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
if(H||M==mxConstants.NONE)M=null;var ba=this.editor.graph.getSvg(M,null,null,null,null,v);k&&this.editor.graph.addSvgShadow(ba);this.editor.convertImages(ba,mxUtils.bind(this,mxUtils.bind(this,function(V){this.spinner.stop();C(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(V))})))}else ia=ca+".svg",m=this.getFileData(!1,!0,null,mxUtils.bind(this,function(V){this.spinner.stop();C(V)}),v)}}catch(V){this.handleError(V)}};EditorUi.prototype.createDownloadRequest=function(d,f,k,v,z,A,H, J,O,G,ja,fa,ca){d=this.downloadRequestBuilder(d,f,k,v,z,A,H,J,O,G,ja,fa,ca);f="";for(var ia in d)k=d[ia],null!=k&&(f+=ia+"="+encodeURIComponent(k)+"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(d,f,k,v,z,A,H,J,O,G,ja,fa,ca){var ia=this.editor.graph,ma=ia.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==A?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var da=null,S=null,U=null;if(ma.width*ma.height>MAX_AREA||k.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.model.getChildCount(L),X=0;X<P;X++)this.updateCustomLinksForCell(x,this.model.getChildAt(L,X))};Graph.prototype.doUpdateCustomLinksForCell=function(x,L){};Graph.prototype.getAllConnectionConstraints=function(x,L){if(null!=x){L=mxUtils.getValue(x.style,"points",null);if(null!=L){x=[];try{var P=JSON.parse(L);for(L=0;L<P.length;L++){var X=P[L];x.push(new mxConnectionConstraint(new mxPoint(X[0],X[1]),2<X.length?"0"!=X[2]:!0,null,3<X.length?X[3]:0,4<X.length?X[4]:0))}}catch(la){}return x}if(null!= x.shape&&null!=x.shape.bounds){X=x.shape.direction;L=x.shape.bounds;var ea=x.shape.scale;P=L.width/ea;L=L.height/ea;if(X==mxConstants.DIRECTION_NORTH||X==mxConstants.DIRECTION_SOUTH)X=P,P=L,L=X;L=x.shape.getConstraints(x.style,P,L);if(null!=L)return L;if(null!=x.shape.stencil&&null!=x.shape.stencil.constraints)return x.shape.stencil.constraints;if(null!=x.shape.constraints)return x.shape.constraints}}return null};Graph.prototype.flipEdge=function(x){if(null!=x){var L=this.getCurrentCellStyle(x);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
Graph.prototype.isViewer=function(){return!1};Graph.prototype.labelLinkClicked=function(b,e,g){var n=e.getAttribute("href");n!=Graph.sanitizeLink(n)&&Graph.sanitizeNode(e);if(null!=n&&!this.isCustomLink(n)&&(mxEvent.isLeftMouseButton(g)&&!mxEvent.isPopupTrigger(g)||mxEvent.isTouchEvent(g))){if(!this.isEnabled()||this.isCellLocked(b.cell))b=this.isBlankLink(n)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(n),b);mxEvent.consume(g)}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function W(){mxShape.call(this)}function d(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function z(){mxActor.call(this)}function A(){mxActor.call(this)}function H(){mxActor.call(this)}function J(){mxActor.call(this)}function O(){mxActor.call(this)}function G(){mxActor.call(this)}function ja(){mxActor.call(this)}function fa(c,l){this.canvas=c;this.canvas.setLineJoin("round");
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
V.onerror=function(){window.clearTimeout(ba);M&&C(Editor.svgBrokenImage.src)};V.src=m}}catch(Z){C(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(m,C,M,ba){null==ba&&(ba=this.createImageUrlConverter());var V=0,Z=M||{};M=mxUtils.bind(this,function(aa,ka){aa=m.getElementsByTagName(aa);for(var qa=0;qa<aa.length;qa++)mxUtils.bind(this,function(ra){try{if(null!=ra){var pa=ba.convert(ra.getAttribute(ka));if(null!=pa&&"data:"!=pa.substring(0,5)){var wa=Z[pa];null==wa?(V++,this.convertImageToDataUri(pa, function(Da){null!=Da&&(Z[pa]=Da,ra.setAttribute(ka,Da));V--;0==V&&C(m)})):ra.setAttribute(ka,wa)}else null!=pa&&ra.setAttribute(ka,pa)}}catch(Da){}})(aa[qa])});M("image","xlink:href");M("img","src");0==V&&C(m)};Editor.base64Encode=function(m){for(var C="",M=0,ba=m.length,V,Z,aa;M<ba;){V=m.charCodeAt(M++)&255;if(M==ba){C+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(V>>2);C+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((V&3)<<4);C+="==";break}Z=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
function(m){m=m.getElementsByTagName("defs");if(null!=m&&0<m.length)for(var C=document.getElementsByTagName("style"),M=0;M<C.length;M++){var ba=mxUtils.getTextContent(C[M]);0>ba.indexOf("mxPageSelector")&&0<ba.indexOf("MathJax")&&m[0].appendChild(C[M].cloneNode(!0))}};Editor.prototype.addFontCss=function(m,C){C=null!=C?C:this.absoluteCssFonts(this.fontCss);if(null!=C){var M=m.getElementsByTagName("defs"),ba=m.ownerDocument;0==M.length?(M=null!=ba.createElementNS?ba.createElementNS(mxConstants.NS_SVG,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.formatContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.footerContainer.style,"userSelect","none"),null!=this.tabContainer&&mxUtils.setPrefixedStyle(this.tabContainer.style,"userSelect","none"))));!this.editor.chromeless||this.editor.editable?(e=function(Q){if(null!=Q){var Y=mxEvent.getSource(Q); if("A"==Y.nodeName)for(;null!=Y;){if("geHint"==Y.className)return!0;Y=Y.parentNode}}return k(Q)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?mxEvent.addListener(this.diagramContainer,"contextmenu",e):this.diagramContainer.oncontextmenu=e):y.panningHandler.usePopupTrigger=!1;y.init(this.diagramContainer);mxClient.IS_SVG&&null!=y.view.getDrawPane()&&(e=y.view.getDrawPane().ownerSVGElement,null!=e&&(e.style.position="absolute"));this.hoverIcons=this.createHoverIcons();
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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;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== c?c=u:c.add(u))}this.bounds=null!=c?c:new mxRectangle};b.prototype.paintVertexShape=function(c,l,u,p,t){this.paintTableLine(c,this.line,0,0)};b.prototype.paintTableLine=function(c,l,u,p){if(null!=l){var t=null;c.begin();for(var B=0;B<l.length;B++){var D=l[B];null!=D&&(null==t?c.moveTo(D.x+u,D.y+p):null!=t&&c.lineTo(D.x+u,D.y+p));t=D}c.end();c.stroke()}};b.prototype.intersectsRectangle=function(c){var l=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var u=null,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
L[0].parentNode;null!=L[0].firstChild;)P.insertBefore(L[0].firstChild,L[0]);P.removeChild(L[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(x))};Graph.prototype.isCellResizable=function(x){var L=mxGraph.prototype.isCellResizable.apply(this,arguments),P=this.getCurrentCellStyle(x);return!this.isTableCell(x)&&!this.isTableRow(x)&&(L||"0"!=mxUtils.getValue(P,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==P[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(x,L,P){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.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
function(S,U){return!1};this.alternateEdgeStyle="vertical";null==n&&this.loadStylesheet();var R=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var S=R.apply(this,arguments);if(this.graph.pageVisible){var U=[],Q=this.graph.pageFormat,Y=this.graph.pageScale,m=Q.width*Y;Q=Q.height*Y;Y=this.graph.view.translate;for(var C=this.graph.view.scale,M=this.graph.getPageLayout(),ba=0;ba<M.width;ba++)U.push(new mxRectangle(((M.x+ba)*m+Y.x)*C,(M.y*Q+Y.y)*C,m*C,Q*C));for(ba=1;ba<M.height;ba++)U.push(new mxRectangle((M.x* m+Y.x)*C,((M.y+ba)*Q+Y.y)*C,m*C,Q*C));S=U.concat(S)}return S};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(S,U){return null==S.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(S){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var W=this.graphHandler.getCells;this.graphHandler.getCells=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"stackLayout"==P.childLayout)){var la=parseFloat(mxUtils.getValue(P,"stackBorder",mxStackLayout.prototype.border));P="1"==mxUtils.getValue(P,"horizontalStack","1");var oa=this.graph.getActualStartSize(X);ea=ea.clone();P?ea.height=L.height+oa.y+oa.height+2*la:ea.width=L.width+oa.x+oa.width+2*la;this.graph.model.setGeometry(X,ea)}}};var fa=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function x(xa){P.get(xa)||(P.put(xa, !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)&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxConstants.HANDLE_STROKECOLOR)};var Da=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(x,L,P,X){X=L==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:L==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:X;return Da.apply(this,arguments)};var Ba=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(x){if(null!=x&&1==x.length){var L=this.graph.getModel(),P=L.getParent(x[0]),X=this.graph.getCellGeometry(x[0]); if(L.isEdge(P)&&null!=X&&X.relative&&(L=this.graph.view.getState(x[0]),null!=L&&2>L.width&&2>L.height&&null!=L.text&&null!=L.text.boundingBox))return mxRectangle.fromRectangle(L.text.boundingBox)}return Ba.apply(this,arguments)};var ya=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var x=ya.apply(this,arguments),L=[],P=0;P<x.length;P++)"1"!=mxUtils.getValue(x[P].style,"part","0")&&L.push(x[P]);return L};var Oa=mxVertexHandler.prototype.getSelectionBounds;
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.getValue(this.style,"line")?(c.moveTo(l+p/2,u),c.lineTo(l+p/2,u+t)):(c.moveTo(l,u+t/2),c.lineTo(l+p,u+t/2));c.end();c.stroke()};mxCellRenderer.registerShape("lineEllipse",va);mxUtils.extend(Fa,mxActor);Fa.prototype.redrawPath=function(c,l,u,p,t){l=Math.min(p,t/2);c.moveTo(0,0);c.lineTo(p-l,0);c.quadTo(p,0,p,t/2);c.quadTo(p,t,p-l,t);c.lineTo(0,t);c.close();c.end()};mxCellRenderer.registerShape("delay",Fa);mxUtils.extend(Ua,mxActor);Ua.prototype.size=.2;Ua.prototype.redrawPath=function(c,l,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,n,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
return(C^-1)>>>0};Editor.writeGraphModelToPng=function(m,C,M,ba,V){function Z(pa,wa){var Da=qa;qa+=wa;return pa.substring(Da,qa)}function aa(pa){pa=Z(pa,4);return pa.charCodeAt(3)+(pa.charCodeAt(2)<<8)+(pa.charCodeAt(1)<<16)+(pa.charCodeAt(0)<<24)}function ka(pa){return String.fromCharCode(pa>>24&255,pa>>16&255,pa>>8&255,pa&255)}m=m.substring(m.indexOf(",")+1);m=window.atob?atob(m):Base64.decode(m,!0);var qa=0;if(Z(m,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=V&&V();
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
(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&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxConstraintHandler.prototype.update=function(x,L){this.isKeepFocusEvent(x)||!mxEvent.isAltDown(x.getEvent())?z.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(x){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var A=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(x,L){x=this.graph.getStartEditingCell(x,L);A.apply(this,arguments);var P=this.graph.view.getState(x);
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
arguments);null!=W&&R&&this.graph.model.isEdge(W.cell)&&null!=W.style&&1!=W.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(W);return W};var g=mxShape.prototype.paint;mxShape.prototype.paint=function(){g.apply(this,arguments);if(null!=this.state&&null!=this.node&&this.state.view.graph.enableFlowAnimation&&this.state.view.graph.model.isEdge(this.state.cell)&&"1"==mxUtils.getValue(this.state.style,"flowAnimation","0")){var K=this.node.getElementsByTagName("path");if(1<K.length){"1"!=mxUtils.getValue(this.state.style, mxConstants.STYLE_DASHED,"0")&&K[1].setAttribute("stroke-dasharray",8*this.state.view.scale);var R=this.state.view.graph.getFlowAnimationStyle();null!=R&&K[1].setAttribute("class",R.getAttribute("id"))}}};var n=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(K,R){return n.apply(this,arguments)||null!=K.routedPoints&&null!=R.routedPoints&&!mxUtils.equalPoints(R.routedPoints,K.routedPoints)};var y=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(){mxGraphView.prototype.validateBackgroundPage=function(){var E=this.graph;if(null!=E.container&&!E.transparentBackground){if(E.pageVisible){var N=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var T=E.container.firstChild;null!=T&&T.nodeType!=mxConstants.NODETYPE_ELEMENT;)T=T.nextSibling;null!=T&&(this.backgroundPageShape=this.createBackgroundPageShape(N),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML, this.backgroundPageShape.init(E.container),T.style.position="absolute",E.container.insertBefore(this.backgroundPageShape.node,T),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(F){E.dblClick(F)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(F){E.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(F))}),mxUtils.bind(this,function(F){null!= E.tooltipHandler&&E.tooltipHandler.isHideOnHover()&&E.tooltipHandler.hide();E.isMouseDown&&!mxEvent.isConsumed(F)&&E.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(F))}),mxUtils.bind(this,function(F){E.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(F))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=N,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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!=va&&va.relative&&0>=va.x&&this.model.remove(Fa[L]);var Ua=this.model.getTerminal(P,!1);if(null!=Ua){var ab=this.getCurrentCellStyle(Ua);null!=ab&&"1"==ab.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[x]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[x]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[P]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[P]))}}finally{this.model.endUpdate()}return P};var R=Graph.prototype.selectCell;Graph.prototype.selectCell=function(x, L,P){if(L||P)R.apply(this,arguments);else{var X=this.getSelectionCell(),ea=null,la=[],oa=mxUtils.bind(this,function(xa){if(null!=this.view.getState(xa)&&(this.model.isVertex(xa)||this.model.isEdge(xa)))if(la.push(xa),xa==X)ea=la.length-1;else if(x&&null==X&&0<la.length||null!=ea&&x&&la.length>ea||!x&&0<ea)return;for(var sa=0;sa<this.model.getChildCount(xa);sa++)oa(this.model.getChildAt(xa,sa))});oa(this.model.root);0<la.length&&(ea=null!=ea?mxUtils.mod(ea+(x?1:-1),la.length):0,this.setSelectionCell(la[ea]))}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.getValue(L,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;this.setCellStyles(mxConstants.STYLE_ELBOW,L,[x])}};Graph.prototype.isValidRoot=function(x){for(var L=this.model.getChildCount(x),P=0,X=0;X<L;X++){var ea=this.model.getChildAt(x,X);this.model.isVertex(ea)&&(ea=this.getCellGeometry(ea),null==ea||ea.relative||P++)}return 0<P||this.isContainer(x)};Graph.prototype.isValidDropTarget=function(x,L, P){for(var X=this.getCurrentCellStyle(x),ea=!0,la=!0,oa=0;oa<L.length&&la;oa++)ea=ea&&this.isTable(L[oa]),la=la&&this.isTableRow(L[oa]);return!this.isCellLocked(x)&&(1==L.length&&null!=P&&mxEvent.isShiftDown(P)&&!mxEvent.isControlDown(P)&&!mxEvent.isAltDown(P)||this.isTargetShape(x,L,P)||("1"!=mxUtils.getValue(X,"part","0")||this.isContainer(x))&&"0"!=mxUtils.getValue(X,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(x))&&!this.isTableRow(x)&&(!this.isTable(x)|| la||ea))};Graph.prototype.createGroupCell=function(){var x=mxGraph.prototype.createGroupCell.apply(this,arguments);x.setStyle("group");return x};Graph.prototype.isExtendParentsOnAdd=function(x){var L=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(L&&null!=x&&null!=this.layoutManager){var P=this.model.getParent(x);null!=P&&(P=this.layoutManager.getLayout(P),null!=P&&P.constructor==mxStackLayout&&(L=!1))}return L};Graph.prototype.getPreferredSizeForCell=function(x){var L=mxGraph.prototype.getPreferredSizeForCell.apply(this,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
2/this.view.scale-this.view.translate.x-x.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-x.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.addText=function(x,L,P){var X=new mxCell;X.value="Text";X.geometry=new mxGeometry(0,0,0,0);X.vertex=!0;if(null!=P&&this.model.isEdge(P.cell)){X.style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];";X.geometry.relative=!0;X.connectable=!1;var ea=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.showBackgroundImageDialog=function(b,e){b=null!=b?b:mxUtils.bind(this,function(n){n=new ChangePageSetup(this,null,n);n.ignoreColor=!0;this.editor.graph.model.execute(n)});var g=mxUtils.prompt(mxResources.get("backgroundImage"),null!=e?e.src:"");null!=g&&0<g.length?(e=new Image,e.onload=function(){b(new mxImage(g,e.width,e.height),!1)},e.onerror=function(){b(null,!0);mxUtils.alert(mxResources.get("fileNotFound"))},e.src=g):b(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
!1,D=this.isHorizontal(),ha=this.getTitleSize();0==ha||this.outline?sa.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-l,-u));B||this.outline||!(D&&ha<t||!D&&ha<p)||this.paintForeground(c,l,u,p,t)};e.prototype.paintForeground=function(c,l,u,p,t){if(null!=this.state){var B=this.flipH,D=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var ha=B;B=D;D=ha}c.rotate(-this.getShapeRotation(), 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
this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);ka.apply(this,arguments)};var qa=(new Date).getTime(),ra=0,pa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(x,L,P,X){pa.apply(this,arguments);P!=this.currentTerminalState?(qa=(new Date).getTime(),ra=0):ra=(new Date).getTime()-qa;this.currentTerminalState=P};var wa=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(x){return mxEvent.isShiftDown(x.getEvent())&& mxEvent.isAltDown(x.getEvent())?!1:null!=this.currentTerminalState&&x.getState()==this.currentTerminalState&&2E3<ra||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,"outlineConnect","1"))&&wa.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(x,L,P){L=null!=x&&0==x;var X=this.state.getVisibleTerminalState(L);x=null!=x&&(0==x||x>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==x)?this.graph.getConnectionConstraint(this.state,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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= arguments[2])}var N=Number(y.length);N=isNaN(N)?0:0!==N&&isFinite(N)?(0<N?1:-1)*Math.floor(Math.abs(N)):N;N=Math.min(Math.max(N,0),g);for(var T=e(this)?Object(new this(N)):Array(N),F=0,K;F<N;)K=y[F],T[F]=q?"undefined"===typeof E?q(K,F):q.call(E,K,F):K,F+=1;T.length=N;return T}}());mxConstants.POINTS=1;mxConstants.MILLIMETERS=2;mxConstants.INCHES=3;mxConstants.METERS=4;mxConstants.PIXELS_PER_MM=3.937;mxConstants.PIXELS_PER_INCH=100;mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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
L){var P=this.graph.getModel(),X=P.getParent(this.state.cell),ea=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(L)==mxEvent.ROTATION_HANDLE||!P.isEdge(X)||null==ea||!ea.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Qa.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var x=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),L=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE); this.state.view.graph.model.isVertex(this.state.cell)&&x==mxConstants.NONE&&L==mxConstants.NONE?(x=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,x,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Ta=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(x,L){Ta.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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;x=document.createDocumentFragment();for(var X;X=P.firstChild;)lastNode=x.appendChild(X);L.insertNode(x)}}else(L=document.selection)&&"Control"!=L.type&&L.createRange().pasteHTML(x)};Graph.prototype.createLinkForHint=function(x,L){function P(ea,la){ea.length>la&&(ea=ea.substring(0,Math.round(la/2))+"..."+ea.substring(ea.length-Math.round(la/4)));return ea}x=null!=x?x:"javascript:void(0);";if(null==L||0==L.length)L=this.isCustomLink(x)?this.getLinkTitle(x):x;var X=document.createElement("a");X.setAttribute("rel",
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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 b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(g){return window.setTimeout(g,20)},e=function(g,n){function y(){this.q=[];this.add=function(k){this.q.push(k)};var d,f;this.call=function(){d=0;for(f=this.q.length;d<f;d++)this.q[d].call()}}function q(d,f){return d.currentStyle?d.currentStyle[f]:window.getComputedStyle?window.getComputedStyle(d,null).getPropertyValue(f):d.style[f]}function E(d,f){if(!d.resizedAttached)d.resizedAttached=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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, this.lastY,Z,aa,ka,qa,ra,pa,wa);if(null!=Da)for(var Ba=0;Ba<Da.length;Ba+=6)this.curveTo(Da[Ba],Da[Ba+1],Da[Ba+2],Da[Ba+3],Da[Ba+4],Da[Ba+5]);this.lastX=pa;this.lastY=wa}};m.prototype.rect=function(Z,aa,ka,qa){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(Z,aa,ka,qa,this.getStyle(!0,!0)))};m.prototype.ellipse=function(Z,aa,ka,qa){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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
p,B,0,0,1,0,B),c.stroke())};mxCellRenderer.registerShape("cylinder2",W);mxUtils.extend(d,mxCylinder);d.prototype.size=15;d.prototype.paintVertexShape=function(c,l,u,p,t){var B=Math.max(0,Math.min(.5*t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),D=mxUtils.getValue(this.style,"lid",!0);c.translate(l,u);0==B?(c.rect(0,0,p,t),c.fillAndStroke()):(c.begin(),D?(c.moveTo(0,B),c.arcTo(.5*p,B,0,0,1,.5*p,0),c.arcTo(.5*p,B,0,0,1,p,B)):(c.moveTo(0,0),c.arcTo(.5*p,B,0,0,0,.5*p,B),c.arcTo(.5*p,B, 0,0,0,p,0)),c.lineTo(p,t-B),c.arcTo(.5*p,B,0,0,1,.5*p,t),c.arcTo(.5*p,B,0,0,1,0,t-B),c.close(),c.fillAndStroke(),c.setShadow(!1),D&&(c.begin(),c.moveTo(p,B),c.arcTo(.5*p,B,0,0,1,.5*p,2*B),c.arcTo(.5*p,B,0,0,1,0,B),c.stroke()))};mxCellRenderer.registerShape("cylinder3",d);mxUtils.extend(f,mxActor);f.prototype.redrawPath=function(c,l,u,p,t){c.moveTo(0,0);c.quadTo(p/2,.5*t,p,0);c.quadTo(.5*p,t/2,p,t);c.quadTo(p/2,.5*t,0,t);c.quadTo(.5*p,t/2,0,0);c.end()};mxCellRenderer.registerShape("switch",f);mxUtils.extend(k,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.linkRelation);X.setAttribute("href",this.getAbsoluteUrl(x));X.setAttribute("title",P(this.isCustomLink(x)?this.getLinkTitle(x):x,80));null!=this.linkTarget&&X.setAttribute("target",this.linkTarget);mxUtils.write(X,P(L,40));this.isCustomLink(x)&&mxEvent.addListener(X,"click",mxUtils.bind(this,function(ea){this.customLinkClicked(x);mxEvent.consume(ea)}));return X};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,n,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
mxImageShape.prototype.getImageDataUri=function(){var b=this.image;if("data:image/svg+xml;base64,"==b.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=b)this.clippedSvg=Graph.clipSvgDataUri(b,!0),this.clippedImage=b;b=this.clippedSvg}return b};(function(){var b=mxResources.get;mxResources.get=function(e,g,n){null==n&&(n=e);return b.apply(this,[e,g,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
EditorUi.prototype.createShapePicker=function(b,e,g,n,y,q,E,N,T,F,K){K=null!=K?K:!0;var R=this.editor.graph,W=null;T=null!=T?T:function(k){k=k[0];var v=0,z=0,A=k.geometry;null!=A&&(R.model.isEdge(k)&&(k=A.getTerminalPoint(!1),A=new mxRectangle(0,0,k.x,k.y)),v=A.width/2,z=A.height/2);return new mxPoint(R.snap(Math.round(b/R.view.scale)-R.view.translate.x-v),R.snap(Math.round(e/R.view.scale)-R.view.translate.y-z))};if(null!=E&&0<E.length){var d=this;R=this.editor.graph;W=document.createElement("div");
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.menus.isShowCellEditItems=this.menus.isShowStyleItems}d.actions.get("print").funct=function(){d.showDialog((new PrintDialog(d)).container,360,null!=d.pages&&1<d.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var ja=f.getExportVariables;f.getExportVariables=function(){var U=ja.apply(this,arguments),Q=d.getCurrentFile();null!=Q&&(U.filename=Q.getTitle());U.pagecount=null!=d.pages?d.pages.length:1;U.page=null!=d.currentPage?d.currentPage.getName():"";U.pagenumber= null!=d.pages&&null!=d.currentPage?mxUtils.indexOf(d.pages,d.currentPage)+1:1;return U};var fa=f.getGlobalVariable;f.getGlobalVariable=function(U){var Q=d.getCurrentFile();return"filename"==U&&null!=Q?Q.getTitle():"page"==U&&null!=d.currentPage?d.currentPage.getName():"pagenumber"==U?null!=d.currentPage&&null!=d.pages?mxUtils.indexOf(d.pages,d.currentPage)+1:1:"pagecount"==U?null!=d.pages?d.pages.length:1:fa.apply(this,arguments)};var ca=null;this.addListener("fileDescriptorChanged",function(){var U=
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(this.hint.parentNode.removeChild(this.hint),this.hint=null)};var ja=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=function(x,L){ja.apply(this,arguments);var P=this.graph.getCellStyle(x);if(null==P.childLayout){var X=this.graph.model.getParent(x),ea=null!=X?this.graph.getCellGeometry(X):null;if(null!=ea&&(P=this.graph.getCellStyle(X), "stackLayout"==P.childLayout)){var la=parseFloat(mxUtils.getValue(P,"stackBorder",mxStackLayout.prototype.border));P="1"==mxUtils.getValue(P,"horizontalStack","1");var oa=this.graph.getActualStartSize(X);ea=ea.clone();P?ea.height=L.height+oa.y+oa.height+2*la:ea.width=L.width+oa.x+oa.width+2*la;this.graph.model.setGeometry(X,ea)}}};var fa=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function x(xa){P.get(xa)||(P.put(xa,
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),n=b.segments,y=b.length,q=g.length;return{execute:mxUtils.bind(this,function(E,N){if(null!=b.shape){var T=[g[0]];N=E/N;e||(N=1-N);for(var F=y*N,K=1;K<q;K++)if(F<=n[K-1]){T.push(new mxPoint(g[K-1].x+(g[K].x-g[K-1].x)*F/n[K-1],g[K-1].y+(g[K].y-g[K-1].y)*F/n[K-1]));break}else F-=n[K-1],T.push(g[K]);b.shape.points=T;b.shape.redraw();0==E&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!= b.text.node&&(b.text.node.style.opacity=N)}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.points=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))})}};
0
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
vulnerable
"_blank")}};EditorUi.prototype.createEchoRequest=function(d,f,k,v,z,A){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,d+(null!=k?"&mime="+k:"")+(null!=z?"&format="+z:"")+(null!=A?"&base64="+A:"")+(null!=f?"&filename="+encodeURIComponent(f):"")+(v?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(d,f){f=f||"";d=atob(d);for(var k=d.length,v=Math.ceil(k/1024),z=Array(v),A=0;A<v;++A){for(var H=1024*A,J=Math.min(H+1024,k),O=Array(J-H),G=0;H<J;++G,++H)O[G]=d[H].charCodeAt(0);z[A]= new Uint8Array(O)}return new Blob(z,{type:f})};EditorUi.prototype.saveLocalFile=function(d,f,k,v,z,A,H,J){A=null!=A?A:!1;H=null!=H?H:"vsdx"!=z&&(!mxClient.IS_IOS||!navigator.standalone);z=this.getServiceCount(A);isLocalStorage&&z++;var O=4>=z?2:6<z?4:3;f=new CreateDialog(this,f,mxUtils.bind(this,function(G,ja){try{if("_blank"==ja)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(d,k,v);else if(null!=k&&"text/html"==k.substring(0,9)){var fa=new EmbedDialog(this,d);this.showDialog(fa.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
k&&k()};EditorUi.prototype.alert=function(d,f,k){d=new ErrorDialog(this,null,d,mxResources.get("ok"),f);this.showDialog(d.container,k||340,100,!0,!1);d.init()};EditorUi.prototype.confirm=function(d,f,k,v,z,A){d=null!=d?d:"";var H=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},J=Math.min(220,28*Math.ceil(Math.max(1,d.length)/50));d=new ConfirmDialog(this,d,function(){H();null!=f&&f()},function(){H();null!=k&&k()},v,z,null,null,null,null,J);this.showDialog(d.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
L.beginUpdate();try{var P=null;P="stackLayout"==this.getCurrentCellStyle(x).childLayout?x:L.getParent(x);var X=L.getChildCells(P,!0);0==X.length?L.remove(P):(P==x&&(x=X[X.length-1]),L.remove(x))}finally{L.endUpdate()}};Graph.prototype.insertLane=function(x,L){var P=this.getModel();P.beginUpdate();try{var X=null;if("stackLayout"==this.getCurrentCellStyle(x).childLayout){X=x;var ea=P.getChildCells(X,!0);x=ea[L?0:ea.length-1]}else X=P.getParent(x);var la=X.getIndex(x);x=P.cloneCell(x,!1);x.value=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