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 |
---|---|---|---|---|---|---|---|
g.prototype.extractThemeIndex=function(b){b=h.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b);null!=b&&(this.themeIndex=parseInt(b.getAttribute("schemeEnum")))};g.prototype.addBasicColor=function(b,a){this.baseColors[b]=h.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(a)};g.prototype.getSchemeColor=function(b){this.processTheme();var a=this.baseColors;b=a[b]?a[b]:null;return null!=b?b.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this):this.defaultClr};g.prototype.getStyleColor=function(b){this.processTheme(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
getValue:function(){return this.value}})}(this.connects,n.getFromSheet(),n)}f=f.nextSibling}}d=d.nextSibling}for(d=b.firstChild;null!=d;)null!=d&&1==d.nodeType&&(f=d,k=f.nodeName,function(x,z){return x&&x.equals?x.equals(z):x===z}(k,"Rel")?this.resolveRel(f,a,c):function(x,z){return x&&x.equals?x.equals(z):x===z}(k,"Shapes")?this.shapes=this.parseShapes(f,null,!1):function(x,z){return x&&x.equals?x.equals(z):x===z}(k,"PageSheet")&&(this.pageSheet=f)),d=d.nextSibling};g.prototype.resolveRel=function(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 |
g.prototype.getConnLineColor=function(b){return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.connLineStyles)};g.prototype.getDefaultLineClr=function(){return this.defaultLineClr};g.prototype.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList=function(b,a,c){a=this.getLineStyleExt(b.getQuickStyleLineMatrix(),a);if(null!=a)return a.isDashed();b=this.getLineStyle(b.getQuickStyleLineMatrix(),c);return null!=b?b.isDashed(): | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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))return d}return null};g.prototype.getMaster=function(b){var a=this.masters;return a[b]?a[b]:null};g.prototype.createPage=function(b){return new h.mxgraph.io.vsdx.mxVsdxPage(b,this)};g.prototype.getPropertiesManager=function(){return this.pm};g.prototype.setPropertiesManager=function(b){this.pm=b};g.prototype.getMasterShapes=function(){return this.masters};g.prototype.setMasterShapes=function(b){this.masters=b};g.prototype.getStylesheet=function(b){var a=this.stylesheets;return a[b]?a[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 |
Q;for(Q in P)if(1<K&&Q==J.CONTENT_TYPES_XML){for(var R=mxUtils.parseXml(P[Q]),ha=R.documentElement,X=ha.children,T=null,V=0;V<X.length;V++){var oa=X[V];"/visio/pages/page1.xml"==oa.getAttribute(J.PART_NAME)&&(T=oa)}for(V=2;V<=K;V++)X=T.cloneNode(),X.setAttribute(J.PART_NAME,"/visio/pages/page"+V+".xml"),ha.appendChild(X);z(H,Q,R,!0)}else H.file(Q,P[Q])}function A(H,K,P){return null!=H.createElementNS?H.createElementNS(K,P):H.createElement(P)}function B(H){var K=M[H];null==K&&(K=L++,M[H]=K);return 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.processGeoElem(b);else if((null!=b&&1==b.nodeType||null===b)&&void 0===a)Array.prototype.slice.call(arguments),this.index=0,this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1,this.rows=null,this.index=0,this.index=this.getIndex$org_w3c_dom_Element(b),this.processGeoElem(b);else throw Error("invalid overload");}g.prototype.getIndex$org_w3c_dom_Element=function(b){try{return parseInt(b.getAttribute("IX"))||0}catch(a){return 0}};g.prototype.getIndex=function(b){if(null!=b&&1==b.nodeType|| | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
url:aa}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))}finally{R.getModel().endUpdate()}}}));this.editorUi.showDialog(X.container,380,Editor.enableWebFonts?250:180,!0,!0);X.init()}),u,null,!0)})))}})();function DiagramPage(b,g){this.node=b;null!=g?this.node.setAttribute("id",g):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
p.length?p[x++]:null},hasNext:function(){return x<p.length}}}(function(p){return Object.keys(p).map(function(x){return p[x]})}(b)),f=function(p){var x=0;return{next:function(){return x<p.length?p[x++]:null},hasNext:function(){return x<p.length}}}(Object.keys(b));f.hasNext();){var k=f.next(),n=d.next();if(!function(p,x){return p&&p.equals?p.equals(x):p===x}(k,mxConstants.STYLE_SHAPE)||!function(p,x,z){void 0===z&&(z=0);return p.substr(z,x.length)===x}(b[k]?b[k]:null,"image")&&!function(p,x,z){void 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 |
(function(h){(function(y){(function(A){(function(B){(function(m){var g=function(){function b(){}b.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))||1}catch(c){return 1}};b.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var c=parseFloat(a);if(isFinite(c))return c}}catch(d){}return null};b.getRowObj=function(a,c){var d=a.getAttribute("T"),f=b.getIndex(a);var k=(k=a.getAttribute("Del"))&&k.equals?k.equals("1"):"1"===k;if(!k){var n=null;f<=c.length&&(n=c[f-1]);var p=k=c=null,x=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 |
E.parent.id){b=z=0;do p=k.geometry,null!=p&&(z+=p.x,b+=p.y),k=k.parent;while(null!=k);x.parent=E.parent;for(k=0;k<n.length;k++)n[k].x+=z,n[k].y+=b}I.points=n;a.hasOwnProperty("curved")&&function(M,L){return M&&M.equals?M.equals(L):M===L}(function(M,L){return M[L]?M[L]:null}(a,"curved"),"1")&&(I=g.getModel().getGeometry(x),c=f.getControlPoints(c),I.points=c);this.processEdgeGeo(f,x);f=this.layerIndexToNames(f.layerMember);null!=f&&g.addTagsForCells([x],f);return d};m.prototype.addUnconnectedEdge=function(g,
b,a,c){if(null!=b){var d=g.getModel().getGeometry(b);null!=d&&(c=d.height)}var f=a.getStartXY(c),k=a.getEndXY(c),n=a.getStyleFromEdgeShape(c),p=a.getRoutingPoints(c,f,a.getRotation()),x=a.getRotation();if(0!==x){0===a.getShapeIndex()?d=g.insertEdge(b,null,null,null,null,h.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")):(d=g.createEdge(b,null,null,null,null,h.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")),d=g.addEdge(d,b,null,null,a.getShapeIndex()+this.shapeIndexShift++));var z=a.createLabelSubShape(g,
d);null!=z&&(z.setStyle(z.getStyle()+";rotation="+(60<x&&240>x?(x+180)%360:x)),x=z.getGeometry(),x.x=0,x.y=0,x.relative=!0,x.offset=new mxPoint(-x.width/2,-x.height/2))}else 0===a.getShapeIndex()?d=g.insertEdge(b,null,a.getTextLabel(!0),null,null,h.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")):(d=g.createEdge(b,null,a.getTextLabel(!0),null,null,h.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")),d=g.addEdge(d,b,null,null,a.getShapeIndex()+this.shapeIndexShift++)),x=a.getLblEdgeOffset(g.getView(),
p),d.getGeometry().offset=x;this.rotateChildEdge(g.getModel(),b,f,k,p);b=g.getModel().getGeometry(d);p.pop();p.shift();b.points=p;b.setTerminalPoint(f,!0);b.setTerminalPoint(k,!1);n.hasOwnProperty("curved")&&function(E,I){return E&&E.equals?E.equals(I):E===I}(function(E,I){return E[I]?E[I]:null}(n,"curved"),"1")&&(b=g.getModel().getGeometry(d),g=a.getControlPoints(c),b.points=g);this.processEdgeGeo(a,d);return d};m.prototype.rotateChildEdge=function(g,b,a,c,d){if(null!=b){var f=g.getGeometry(b);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 |
parentChildSpacing:parseInt(R.value),siblingSpacing:parseInt(W.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(X,null,2))});F.className="geBtn";x=new CustomDialog(d,x,function(){null==D&&(D=2);d.loadOrgChartLayouts(k)},null,null,null,F);d.showDialog(x.container,355,140,!0,!0)},u,null,v());f.addSeparator(u);f.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,function(){var D=new mxParallelEdgeLayout(q);D.checkOverlap=!0;d.prompt(mxResources.get("spacing"), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function N(la){var Ma="";do{var ya=Ca.pop();if(!la&&Na&&("ul"==ya||"ol"==ya)){Ca.push(ya);break}Ma+="</"+ya+">"}while(0<Ca.length);return Ma}function r(la,Ma,ya,za){la=la?la.substring(Ma,ya):"";Na&&(la=la.trim());0==Ba.length&&0<la.length&&(la=e({dummy:1})+la);la=la.replace(/</g,"<").replace(/>/g,">");do for(Ma=Pa.pop(),ya=0;ya<Ma;ya++){var Qb=Ba.pop();la+="</"+Qb+">"}while(za&&0<Ba.length);return la}var q={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},Z={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!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 |
"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"min"!=Editor.currentTheme||this.addMenuItems(f,["publishLink"],u);d.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||(f.addSeparator(u),d.menus.addSubmenu("embed",f,u))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(f,u){function D(k){k.pickFile(function(x){d.spinner.spin(document.body,mxResources.get("loading"))&&k.getFile(x,function(F){var Q=
"data:image/"==F.getData().substring(0,11)?M(F.getTitle()):"text/xml";/\.svg$/i.test(F.getTitle())&&!d.editor.isDataSvg(F.getData())&&(F.setData(Editor.createSvgDataUri(F.getData())),Q="image/svg+xml");E(F.getData(),Q,F.getTitle())},function(F){d.handleError(F,null!=F?mxResources.get("errorLoadingFile"):null)},k==d.drive)},!0)}var E=mxUtils.bind(this,function(k,x,F){var Q=q.view,N=q.getGraphBounds(),U=q.snap(Math.ceil(Math.max(0,N.x/Q.scale-Q.translate.x)+4*q.gridSize)),R=q.snap(Math.ceil(Math.max(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 |
(function(h){(function(y){(function(A){(function(B){var m=function(){function g(b,a){this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1;this.rows=null;if((null!=b&&1==b.nodeType||null===b)&&(null!=a&&a instanceof Array||null===a))Array.prototype.slice.call(arguments),this.index=0,this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1,this.rows=null,this.index=0,this.index=this.getIndex$org_w3c_dom_Element(b),null!=a&&this.index<a.length&&this.inheritGeo(a[this.index]),
this.processGeoElem(b);else if((null!=b&&1==b.nodeType||null===b)&&void 0===a)Array.prototype.slice.call(arguments),this.index=0,this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1,this.rows=null,this.index=0,this.index=this.getIndex$org_w3c_dom_Element(b),this.processGeoElem(b);else throw Error("invalid overload");}g.prototype.getIndex$org_w3c_dom_Element=function(b){try{return parseInt(b.getAttribute("IX"))||0}catch(a){return 0}};g.prototype.getIndex=function(b){if(null!=b&&1==b.nodeType|| | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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);T(qa)}oa!=h.currentPage&&h.selectPage(oa,!0);h.editor.graph.setSelectionCells(V)}}else{T=h.editor.graph;var sa=m(T);Q.Page1=x(T,sa);K(T,"Page1");I(P,1);ha.Page1=sa}y(P,X);E(P,Q,R,ha);H=function(){P.generateAsync({type:"base64"}).then(function(Fa){h.spinner.stop();var ka=h.getBaseFilename();h.saveData(ka+".vsdx","vsdx",Fa,"application/vnd.visio2013",!0)})};0<O.filesLoading?O.onFilesLoaded=H:H()}return!0}catch(Fa){return console.log(Fa),h.spinner.stop(),!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 |
"1",R));vb.appendChild(b("NameUniv",Za[yb].name,R));vb.appendChild(b("ColorTrans","0",R))}sa.appendChild(ka);qa.appendChild(sa);qa.appendChild(Fa);X.appendChild(qa);qa=A(ha,J.RELS_XMLNS,"Relationship");qa.setAttribute("Id","rId"+V);qa.setAttribute("Type",J.PAGES_TYPE);qa.setAttribute("Target",ca);T.appendChild(qa);z(H,J.VISIO_PAGES+ca,K[oa]);V++}R.appendChild(X);ha.appendChild(T);z(H,J.VISIO_PAGES+"pages.xml",R);z(H,J.VISIO_PAGES+"_rels/pages.xml.rels",ha)}function I(H,K){K=J.VISIO_PAGES_RELS+"page"+
K+".xml.rels";var P=mxUtils.createXmlDocument(),Q=A(P,J.RELS_XMLNS,"Relationships"),R=A(P,J.RELS_XMLNS,"Relationship");R.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");R.setAttribute("Id","rId1");R.setAttribute("Target","../masters/master1.xml");Q.appendChild(R);var ha=O.images;if(0<ha.length)for(var X=0;X<ha.length;X++)R=A(P,J.RELS_XMLNS,"Relationship"),R.setAttribute("Type",J.XMLNS_R+"/image"),R.setAttribute("Id","rId"+(X+2)),R.setAttribute("Target","../media/"+
ha[X]),Q.appendChild(R);P.appendChild(Q);z(H,K,P)}var J=this,O=new mxVsdxCanvas2D,M={},L=1;this.exportCurrentDiagrams=function(H){try{if(h.spinner.spin(document.body,mxResources.get("exporting"))){var K=function(Fa,ka){Fa=Fa.model.getChildCells(Fa.model.root);R[ka]=[];for(var Za=0;Za<Fa.length;Za++)Fa[Za].visible&&R[ka].push({name:Fa[Za].value||"Background",visible:Fa[Za].visible,locked:Fa[Za].style&&0<=Fa[Za].style.indexOf("locked=1")})},P=new JSZip;O.init(P);M={};L=1;var Q={},R={},ha={},X=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 |
InfographicsBlock:"mxCompositeShape",FlexiblePolygonBlock:"mxCompositeShape",PersonRoleBlock:"mxCompositeShape"},xf=RegExp("{{(date{.*}|[^%^{^}]+)}}","g");Qd.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Qd.prototype.getX=function(u){return Math.round(100*this.nurbsValues[4*(u+1)])/100};Qd.prototype.getY=function(u){return Math.round(100*this.nurbsValues[4*(u+1)+1])/100};LucidImporter.importState=function(u,F,C){function t(q){null!=q.state&&EditorUi.debug("convertLucidChart addPages", | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.actions.addAction("support...",function(){EditorUi.isElectronApp?d.openLink("https://github.com/jgraph/drawio-desktop/wiki/Getting-Support"):d.openLink("https://github.com/jgraph/drawio/wiki/Getting-Support")});d.actions.addAction("exportOptionsDisabled...",function(){d.handleError({message:mxResources.get("exportOptionsDisabledDetails")},mxResources.get("exportOptionsDisabled"))});d.actions.addAction("keyboardShortcuts...",function(){!mxClient.IS_SVG||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(){function a(c){this.__parent=c}a.prototype.compare=function(c,d){c=null!=c?c.getIndex():0;d=null!=d?d.getIndex():0;return c-d};return a}();g.mxVsdxGeometry$0=b;b.__interfaces=["java.util.Comparator"]})(m=B.mxVsdxGeometry||(B.mxVsdxGeometry={}))})(A.vsdx||(A.vsdx={}))})(y.io||(y.io={}))})(h.mxgraph||(h.mxgraph={}))})(com||(com={})); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
H.pageFormat.width*oa;K.pageHeight=H.pageFormat.height*ca;K.backgroundClr=H.background;K.mathEnabled=H.mathEnabled;K.shadowVisible=H.shadowVisible}catch(qa){}return K}function g(H,K,P,Q){return b(H,K/J.CONVERSION_FACTOR,P,Q)}function b(H,K,P,Q){P=A(P,J.XMLNS,"Cell");P.setAttribute("N",H);P.setAttribute("V",K);Q&&P.setAttribute("F",Q);return P}function a(H,K,P,Q,R){var ha=A(R,J.XMLNS,"Row");ha.setAttribute("T",H);ha.setAttribute("IX",K);ha.appendChild(g("X",P,R));ha.appendChild(g("Y",Q,R));return ha} | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function N(la){var Ma="";do{var ya=Ca.pop();if(!la&&Na&&("ul"==ya||"ol"==ya)){Ca.push(ya);break}Ma+="</"+ya+">"}while(0<Ca.length);return Ma}function r(la,Ma,ya,za){la=la?la.substring(Ma,ya):"";Na&&(la=la.trim());0==Ba.length&&0<la.length&&(la=e({dummy:1})+la);la=la.replace(/</g,"<").replace(/>/g,">");do for(Ma=Pa.pop(),ya=0;ya<Ma;ya++){var Qb=Ba.pop();la+="</"+Qb+">"}while(za&&0<Ba.length);return la}var q={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},Z={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!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 |
a=function(z,E){return z[E]?z[E]:null}(c,f+"/_rels/"+k+".rels"),null!=a)){var n=a.getElementsByTagName("Relationship");a={};for(d=0;d<n.length;d++){k=n.item(d);var p=k.getAttribute("Id");k=k.getAttribute("Target");a[p]=k}b=b.getElementsByTagName("Rel");for(d=0;d<b.length;d++)if(n=b.item(d),k=function(z,E){return z[E]?z[E]:null}(a,n.getAttribute("r:id")),k=f+"/"+k,null!=k&&(p=c[k]?c[k]:null,null!=p)){n=n.parentNode;for(p=p.firstChild;null!=p&&1!=p.nodeType;)p=p.nextSibling;if(null!=p&&1==p.nodeType)for(p= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(function(h){(function(y){(function(A){(function(B){var m=function(){function g(b){this.geomList=[];this.parentGeomList=null;this.sortNeeded=!1;if(null!=b){this.parentGeomList=b.geomList;var a=this.geomList;a.push.apply(a,b.geomList)}}g.prototype.addGeometry=function(b){b=new h.mxgraph.io.vsdx.mxVsdxGeometry(b,this.parentGeomList);b.getIndex()<this.geomList.length?this.geomList[b.getIndex()]=b:(this.geomList.push(b),this.sortNeeded=!0)};g.prototype.sort=function(){this.sortNeeded&&(function(b,a){a.compare? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
ha[X]),Q.appendChild(R);P.appendChild(Q);z(H,K,P)}var J=this,O=new mxVsdxCanvas2D,M={},L=1;this.exportCurrentDiagrams=function(H){try{if(h.spinner.spin(document.body,mxResources.get("exporting"))){var K=function(Fa,ka){Fa=Fa.model.getChildCells(Fa.model.root);R[ka]=[];for(var Za=0;Za<Fa.length;Za++)Fa[Za].visible&&R[ka].push({name:Fa[Za].value||"Background",visible:Fa[Za].visible,locked:Fa[Za].style&&0<=Fa[Za].style.indexOf("locked=1")})},P=new JSZip;O.init(P);M={};L=1;var Q={},R={},ha={},X=null!=
h.pages?h.pages.length:1;if(null!=h.pages){var T=function(Fa){Fa=Fa.getName();var ka=h.editor.graph,Za=null;null!=ka.themes&&"darkTheme"==ka.defaultThemeName&&(Za=ka.stylesheet,ka.stylesheet=ka.getDefaultStylesheet(),ka.refresh());try{var yb=m(ka);Q[Fa]=x(ka,yb);K(ka,Fa);I(P,ca+1);ha[Fa]=yb}finally{null!=Za&&(ka.stylesheet=Za,ka.refresh())}},V=h.editor.graph.getSelectionCells(),oa=h.currentPage;if(H)T(oa);else{for(var ca=0;ca<h.pages.length;ca++){var qa=h.pages[ca];h.currentPage!=qa&&h.selectPage(qa,
!0);T(qa)}oa!=h.currentPage&&h.selectPage(oa,!0);h.editor.graph.setSelectionCells(V)}}else{T=h.editor.graph;var sa=m(T);Q.Page1=x(T,sa);K(T,"Page1");I(P,1);ha.Page1=sa}y(P,X);E(P,Q,R,ha);H=function(){P.generateAsync({type:"base64"}).then(function(Fa){h.spinner.stop();var ka=h.getBaseFilename();h.saveData(ka+".vsdx","vsdx",Fa,"application/vnd.visio2013",!0)})};0<O.filesLoading?O.onFilesLoaded=H:H()}return!0}catch(Fa){return console.log(Fa),h.spinner.stop(),!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 |
function(){return this.targetToPart};g.prototype.addConnect=function(b){this.endShape=b;var a=b.getAttribute(h.mxgraph.io.vsdx.mxVsdxConstants.FROM_CELL);this.addFromCell(b,a)};return g}();B.mxVsdxConnect=m;m.__class="com.mxgraph.io.vsdx.mxVsdxConnect"})(A.vsdx||(A.vsdx={}))})(y.io||(y.io={}))})(h.mxgraph||(h.mxgraph={}))})(com||(com={})); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
f.getLum())||(.7292>=d.getLum()?c=new h.mxgraph.io.vsdx.theme.Color(255,255,255):(n=Math.abs(d.getLum()-n.getLum()),k=Math.abs(d.getLum()-k.getLum()),d=Math.abs(d.getLum()-f.getLum()),d=Math.max(n,k,d),d==n?c=b:d==k&&(c=a)))}return c};g.prototype.getFontColor=function(b,a){if((null!=b&&b instanceof h.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a))return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,a);if((null!=b&&b instanceof
h.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a)return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");};g.prototype.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.fontColors)};g.prototype.getConnFontColor=function(b){return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.connFontColors)};g.prototype.getArrowType= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
g.getStyle(b);if(null!=f&&null!=g&&(b=g.indexOf("rotation="),-1<b))for(g=parseFloat(g.substring(b+9,g.indexOf(";",b))),b=f.width/2,f=f.height/2,m.rotatedEdgePoint(a,g,b,f),m.rotatedEdgePoint(c,g,b,f),a=0;a<d.length;a++)m.rotatedEdgePoint(d[a],g,b,f)}};m.prototype.sanitiseGraph=function(g){var b=g.getModel().getRoot();this.sanitiseCell(g,b)};m.prototype.sanitiseCell=function(g,b){for(var a=g.getModel(),c=a.getChildCount(b),d=[],f=0;f<c;f++){var k=a.getChildAt(b,f);this.sanitiseCell(g,k)&&d.push(k)}for(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 |
mxGraph.prototype.getBoundingBoxFromGeometry=function(a,b){b=null!=b?b:!1;var c=null;if(null!=a)for(var d=0;d<a.length;d++)if(b||this.model.isVertex(a[d])){var e=this.getCellGeometry(a[d]);if(null!=e){var f=null;if(this.model.isEdge(a[d])){f=function(l){null!=l&&(null==g?g=new mxRectangle(l.x,l.y,0,0):g.add(new mxRectangle(l.x,l.y,0,0)))};null==this.model.getTerminal(a[d],!0)&&f(e.getTerminalPoint(!0));null==this.model.getTerminal(a[d],!1)&&f(e.getTerminalPoint(!1));e=e.points;if(null!=e&&0<e.length)for(var g=
new mxRectangle(e[0].x,e[0].y,0,0),k=1;k<e.length;k++)f(e[k]);f=g}else k=this.model.getParent(a[d]),e.relative?this.model.isVertex(k)&&k!=this.view.currentRoot&&(g=this.getBoundingBoxFromGeometry([k],!1),null!=g&&(f=new mxRectangle(e.x*g.width,e.y*g.height,e.width,e.height),0<=mxUtils.indexOf(a,k)&&(f.x+=g.x,f.y+=g.y))):(f=mxRectangle.fromRectangle(e),this.model.isVertex(k)&&0<=mxUtils.indexOf(a,k)&&(g=this.getBoundingBoxFromGeometry([k],!1),null!=g&&(f.x+=g.x,f.y+=g.y))),null!=f&&null!=e.offset&&
(f.x+=e.offset.x,f.y+=e.offset.y),e=this.getCurrentCellStyle(a[d]),null!=f&&(e=mxUtils.getValue(e,mxConstants.STYLE_ROTATION,0),0!=e&&(f=mxUtils.getBoundingBox(f,e)));null!=f&&(null==c?c=mxRectangle.fromRectangle(f):c.add(f))}}return c};mxGraph.prototype.refresh=function(a){this.view.clear(a,null==a);this.view.validate();this.sizeDidChange();this.fireEvent(new mxEventObject(mxEvent.REFRESH))};mxGraph.prototype.snap=function(a){this.gridEnabled&&(a=Math.round(a/this.gridSize)*this.gridSize);return a}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
atob("dmlzaW8="):Base64.decode("dmlzaW8=",!0));return m.vsdxPlaceholder};m.parsererrorNS_$LI$=function(){m.parsererrorNS=mxConstants.NS_XHTML;return m.parsererrorNS};m.parseXml=function(g){try{var b=mxUtils.parseXml(g);return 0<b.getElementsByTagNameNS(m.parsererrorNS,"parsererror").length?null:b}catch(a){return null}};m.decodeUTF16LE=function(g){for(var b="",a=0;a<g.length;a+=2)b+=String.fromCharCode(g.charCodeAt(a)|g.charCodeAt(a+1)<<8);return b};m.prototype.scaleGraph=function(g,b){if(1!==b){g=
g.getModel();for(var a in g.cells){var c=g.cells[a],d=g.getGeometry(c);if(null!=d&&(this.scaleRect(d,b),this.scaleRect(d.alternateBounds,b),g.isEdge(c)&&(this.scalePoint(d.sourcePoint,b),this.scalePoint(d.targetPoint,b),this.scalePoint(d.offset,b),c=d.points,null!=c)))for(d=0;d<c.length;d++)this.scalePoint(c[d],b)}}};m.incorrectXMLReqExp=[{regExp:/&(?!amp;|lt;|gt;|quot;|#)/g,repl:"&"}];m.prototype.decodeVsdx=function(g,b,a,c){var d=this,f={},k={},n=function(){function E(){M=M.concat(d.RESPONSE_END); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"0x"+u.FillColor.substring(u.FillColor.length-2,u.FillColor.length),C.style.includes("fillOpacity")||(F+="fillOpacity="+Math.round(parseInt(u)/2.55)+";")));return F}function ha(u,F,C){var t="";if(null!=u.Rotation){u=mxUtils.toDegree(parseFloat(u.Rotation));var e=!0;0!=u&&F.Class&&("UMLSwimLaneBlockV2"==F.Class||(0<=F.Class.indexOf("Rotated")||-90==u||270==u)&&(0<=F.Class.indexOf("Pool")||0<=F.Class.indexOf("SwimLane")))?(u+=90,C.geometry.rotate90(),C.geometry.isRotated=!0,e=!1):0<=mxUtils.indexOf(vf,
F.Class)?(u-=90,C.geometry.rotate90()):0<=mxUtils.indexOf(wf,F.Class)&&(u+=180);0!=u&&(t+="rotation="+u+";");e||(t+="horizontal=0;")}return t}function X(u){return null!=u.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function T(u){if(u){if("object"===typeof u)try{u=u.cs[0].c}catch(F){console.log(F),u="#ffffff"}"rgb"==u.substring(0,3)?u="#"+u.match(/\d+/g).map(function(F){F=parseInt(F).toString(16);return(1==F.length?"0":"")+F}).join(""):"#"!=u.charAt(0)&&(u="#"+u)}return u}function V(u){return(u=T(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 |
0;C<F.length;C++)if("f"==F[C].n&&F[C].v){var t=F[C].v;break}!t&&u.Font&&(t=u.Font);y(t);return lb}function n(u){return"ext"==u.tp?u.url:"ml"==u.tp?"mailto:"+u.eml:"pg"==u.tp?"data:page/id,"+(LucidImporter.pageIdsMap[u.id]||0):"c"==u.tp?"data:confluence/id,"+u.ccid:null}function p(u){u=b(u);if(null!=u)for(var F=0;F<u.length;){var C=u[F];if("c"==C.n&&null!=C.v)return u=T(C.v).substring(0,7),"#000000"==u&&(u="default"),mxConstants.STYLE_FONTCOLOR+"="+u+";";F++}return""}function x(u){return z(b(u))}function z(u){if(null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
M="jpg"}catch(ha){console.log(ha)}I.style+=";image=data:image/"+M+","+O;x()};J.src="data:image/"+E.iType+";base64,"+E.iData;J.onerror=function(){I.style+=";image=data:image/"+E.iType+","+E.iData;x()}};k(0,a)}else a()}catch(n){console.log(n),a()}};m.prototype.addShape=function(g,b,a,c,d){b.parentHeight=d;var f=h.mxgraph.io.vsdx.VsdxShape.getType(b.getShape());if(null!=f&&(function(n,p){return n&&n.equals?n.equals(p):n===p}(f,h.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(n,p){return n&&n.equals? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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))return d}return null};g.prototype.getMaster=function(b){var a=this.masters;return a[b]?a[b]:null};g.prototype.createPage=function(b){return new h.mxgraph.io.vsdx.mxVsdxPage(b,this)};g.prototype.getPropertiesManager=function(){return this.pm};g.prototype.setPropertiesManager=function(b){this.pm=b};g.prototype.getMasterShapes=function(){return this.masters};g.prototype.setMasterShapes=function(b){this.masters=b};g.prototype.getStylesheet=function(b){var a=this.stylesheets;return a[b]?a[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 |
g.prototype.getSubShape=function(b){var a=this.childShapes;return a[b]?a[b]:null};g.prototype.getNameU=function(){return this.master.getAttribute("NameU")||""};g.prototype.getName=function(){return this.master.getAttribute("Name")||""};g.prototype.getUniqueID=function(){var b="";this.master.hasAttribute("UniqueID")&&(b=this.master.getAttribute("UniqueID"));return b};g.prototype.getId=function(){return this.Id};g.prototype.getMasterElement=function(){return this.master};return g}();B.mxVsdxMaster= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(h){(function(y){(function(A){(function(B){(function(m){var g=function(){function b(a,c,d){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=c;this.y=d}b.prototype.getX=function(){return this.x};b.prototype.getY=function(){return this.y};b.prototype.getA=function(){return this.a};b.prototype.getB=function(){return this.b};b.prototype.getC=function(){return this.c};b.prototype.getD=function(){return this.d};b.prototype.getFormulaA= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){return this.noLine};g.prototype.isNoShow=function(){return this.noShow};g.prototype.isNoSnap=function(){return this.noSnap};g.prototype.isNoQuickDrag=function(){return this.noQuickDrag};g.prototype.getRows=function(){return this.rows};g.prototype.getPathXML=function(b,a){if(this.noShow)return"";for(var c="",d=0;d<this.rows.length;d++){var f=this.rows[d];c=c.concat(null!=f?f.handle(b,a):"")}return c};return g}();B.mxVsdxGeometry=m;m.__class="com.mxgraph.io.vsdx.mxVsdxGeometry";(function(g){var 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 |
value:n,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.themes,c.getThemeIndex(),c);break}c=c.nextSibling}a++}else b=!1}};g.prototype.initStylesheets=function(){var b=this.rootElement.getElementsByTagName(h.mxgraph.io.vsdx.mxVsdxConstants.STYLE_SHEETS);if(0<b.length){b=b.item(0).getElementsByTagName(h.mxgraph.io.vsdx.mxVsdxConstants.STYLE_SHEET);for(var a=b.length,c=0;c<a;c++){var d=b.item(c),f=d.getAttribute(h.mxgraph.io.vsdx.mxVsdxConstants.ID);d=new h.mxgraph.io.vsdx.Style(d,
this);this.stylesheets[f]=d}}for(b=function(k){var n=0;return{next:function(){return n<k.length?k[n++]:null},hasNext:function(){return n<k.length}}}(function(k){return Object.keys(k).map(function(n){return k[n]})}(this.stylesheets));b.hasNext();)d=b.next(),d.stylesheetRefs(this)};g.prototype.initMasters=function(){if(null!=this.xmlDocs){var b=function(c,d){return c[d]?c[d]:null}(this.xmlDocs,h.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/masters.xml");if(null!=b)for(b=b.firstChild;null!=b;){if(null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
};g.prototype.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,this.lineStylesExt,this.lineStyles)};g.prototype.isConnLineDashed=function(b){return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,this.connLineStylesExt,this.connLineStyles)};g.prototype.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.firstChild;null!=p;){if(null!=p&&1==p.nodeType){var x=n.appendChild(g.importNode(p,!0));this.importNodes(g,x,k,c)}p=p.nextSibling}}}};m.prototype.layerIndexToNames=function(g){var b=[];if(g)for(var a=0;a<g.length;a++){var c=parseInt(g[a]);c<this.layerNames.length&&b.push(this.layerNames[c])}return 0<b.length?b:[mxResources.get("background")]};m.prototype.importPage=function(g,b,a,c){var d=g.getBackPage();if(null!=d){b.getModel().setValue(b.getDefaultParent(),g.getPageName());var f=new mxCell(d.getPageName()); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.sanitiseGraph(b);return f};m.prototype.postImportPage=function(g,b,a){try{var c=function(n){if(null!=n){n=n.entries||[];for(var p=0;p<n.length;p++){var x=n[p].value||{};x.toBeCroppedImg&&f.push(x);c(x.getChildShapes())}}},d=this,f=[];c(g.getShapes());if(0<f.length){var k=function(n,p){function x(){n<f.length-1?k(n+1,p):p()}var z=f[n],E=z.toBeCroppedImg,I=function(O,M){null==O.entries&&(O.entries=[]);for(var L=0;L<O.entries.length;L++)if(null!=O.entries[L].key.equals&&O.entries[L].key.equals(M)||
O.entries[L].key===M)return O.entries[L].value;return null}(d.vertexMap,new h.mxgraph.io.vsdx.ShapePageId(g.Id,z.Id)),J=new Image;J.onload=function(){var O=E.iData,M=E.iType;try{var L=J.width/E.imgWidth,H=J.height/E.imgHeight,K=-E.imgOffsetX*L,P=(E.imgHeight-E.height+E.imgOffsetY)*H,Q=document.createElement("canvas");Q.width=E.width*L;Q.height=E.height*H;var R=Q.getContext("2d");R.fillStyle="#FFFFFF";R.fillRect(0,0,Q.width,Q.height);R.drawImage(J,K,P,Q.width,Q.height,0,0,Q.width,Q.height);O=Q.toDataURL("image/jpeg").substr(23);
M="jpg"}catch(ha){console.log(ha)}I.style+=";image=data:image/"+M+","+O;x()};J.src="data:image/"+E.iType+";base64,"+E.iData;J.onerror=function(){I.style+=";image=data:image/"+E.iType+","+E.iData;x()}};k(0,a)}else a()}catch(n){console.log(n),a()}};m.prototype.addShape=function(g,b,a,c,d){b.parentHeight=d;var f=h.mxgraph.io.vsdx.VsdxShape.getType(b.getShape());if(null!=f&&(function(n,p){return n&&n.equals?n.equals(p):n===p}(f,h.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(n,p){return n&&n.equals? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
oa.width/2,qa=oa.height/2;P.appendChild(g("PinX",oa.x+ca+(ha?0:O.shiftX),Q));P.appendChild(g("PinY",R-oa.y-qa-(ha?0:O.shiftY),Q));P.appendChild(g("Width",oa.width,Q));P.appendChild(g("Height",oa.height,Q));P.appendChild(g("LocPinX",ca,Q));P.appendChild(g("LocPinY",qa,Q));O.newEdge(P,X,Q);ca=function(sa,Fa,ka){var Za=sa.x;sa=sa.y;Za=Za*V.scale-oa.x+V.dx+(ka||ha?0:O.shiftX);sa=(Fa?0:oa.height)-sa*V.scale+oa.y-V.dy-(ka||ha?0:O.shiftY);return{x:Za,y:sa}};qa=ca(T[0],!0);P.appendChild(g("BeginX",oa.x+qa.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 |
!a.isNoLine())return!1}return!0};g.prototype.hasGeom=function(){return 0!=this.geomList.length};g.prototype.getGeoCount=function(){for(var b=0,a=0;a<this.geomList.length;a++)this.geomList[a].isNoShow()||b++;return b};g.prototype.rotatedPoint=function(b,a,c){var d=b.y*a+b.x*c;b.x=b.x*a-b.y*c;b.y=d};g.prototype.getRoutingPoints=function(b,a,c){this.sort();b=[];b.push(a.clone());for(var d=0,f=0,k=0;k<this.geomList.length;k++){var n=this.geomList[k];if(!n.isNoShow()){n=n.getRows();for(var p=0;p<n.length;p++){var 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 |
(function(h){(function(y){(function(A){(function(B){var m=function(){function g(b,a,c){this.pages=this.media=this.xmlDocs=null;this.masters={};this.stylesheets={};this.themes={};this.pm=this.rootElement=null;this.xmlDocs=a;this.media=c;for(b=b.firstChild;null!=b;){if(a=null!=b&&1==b.nodeType)a=b.tagName.toLowerCase(),c=h.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"document",a=a&&a.equals?a.equals(c):a===c;if(a){this.rootElement=b;break}b=b.nextSibling}this.pm=new h.mxgraph.io.vsdx.mxPropertiesManager;
this.pm.initialise(this.rootElement,this);this.initStylesheets();this.initThemes();this.initMasters();this.initPages()}g.prototype.initThemes=function(){if(null!=this.xmlDocs)for(var b=!0,a=1;b;){var c=function(f,k){return f[k]?f[k]:null}(this.xmlDocs,h.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/theme/theme"+a+".xml");if(null!=c){for(c=c.firstChild;null!=c;){if(null!=c&&1==c.nodeType&&function(f,k){return f&&f.equals?f.equals(k):f===k}(c.tagName,"a:theme")){c=new h.mxgraph.io.vsdx.mxVsdxTheme(c);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 |
a=function(z,E){return z[E]?z[E]:null}(c,f+"/_rels/"+k+".rels"),null!=a)){var n=a.getElementsByTagName("Relationship");a={};for(d=0;d<n.length;d++){k=n.item(d);var p=k.getAttribute("Id");k=k.getAttribute("Target");a[p]=k}b=b.getElementsByTagName("Rel");for(d=0;d<b.length;d++)if(n=b.item(d),k=function(z,E){return z[E]?z[E]:null}(a,n.getAttribute("r:id")),k=f+"/"+k,null!=k&&(p=c[k]?c[k]:null,null!=p)){n=n.parentNode;for(p=p.firstChild;null!=p&&1!=p.nodeType;)p=p.nextSibling;if(null!=p&&1==p.nodeType)for(p= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Math.max(0,A(.75*la.il.v-(Na?28:0)))+"px;");la.ir&&(ya+="margin-right: "+A(.75*la.ir.v)+"px;");la.mt&&(ya+="margin-top: "+A(.75*la.mt.v)+"px;");la.mb&&(ya+="margin-bottom: "+A(.75*la.mb.v)+"px;");ya+='margin-top: -2px;">';Na||(ya+="<span>",Ca.push("span"));return ya}function e(la){if(mxUtils.isEmptyObject(la))return"";var Ma="",ya=0;if(la.lk){var za=la.lk;null!=za.v&&0<za.v.length&&(Ma+='<a href="'+n(za.v[0])+'">',Ba.push("a"),ya++)}Ma+='<span style="';Ba.push("span");ya++;Ma+="font-size:"+(la.s&&
la.s.v?A(.75*la.s.v):"13")+"px;";la.c&&(za=T(la.c.v),null!=za&&(za=za.substring(0,7),Ma+="color:"+za+";"));if(la.b&&la.b.v||la.fc&&la.fc.v&&0==la.fc.v.indexOf("Bold"))Ma+="font-weight: bold;";la.i&&la.i.v&&(Ma+="font-style: italic;");la.ac&&la.ac.v&&(Ma+="text-transform: uppercase;");za=null;la.f?za=la.f.v:C.Font&&(za=C.Font);Ma+=y(za);za=[];la.u&&la.u.v&&za.push("underline");la.k&&la.k.v&&za.push("line-through");0<za.length&&(Ma+="text-decoration: "+za.join(" ")+";");Ma+='">';Pa.push(ya);return Ma} | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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),F.style=mxUtils.setStyle(F.style,"entryY",Math.round(20*C.style.entryY)/20))}}function Bf(u,F){if(u.model.contains(F)&&null!=F.style&&""!=F.style){u=F.style.split(";");for(var C={},t=[],e=u.length-1;0<=e;e--){var N=u[e].split("=");if(2!=N.length||null==C[N[0]])C[N[0]]=N[1],""!=u[e]&&t.push(u[e])}F.style=t.reverse().join(";")+";"}}function Af(u,F){if(u.model.contains(F)&&null!=F.children&&null!=F.geometry&&F.vertex&&"group;dropTarget=0;pointerEvents=0;"==F.style){for(var C=null,t=0;t<F.children.length;t++)if(F.children[t].vertex){var e=
F.children[t].geometry;if(null!=e&&0==e.x&&0==e.y&&e.width==F.geometry.width&&e.height==F.geometry.height){if(null!=C)return;C=F.children[t]}}F=C;if(null!=F&&(C=F.parent,""==u.convertValueToString(C))){if(null!=F.edges)for(t=0;t<F.edges.length;t++)F.edges[t].source==F&&F.edges[t].setTerminal(F.parent,!0),F.edges[t].target==F&&F.edges[t].setTerminal(F.parent,!1);if(null!=F.children&&0<F.children.length)for(e=F.children.slice(),t=0;t<e.length;t++)C.insert(e[t]);u.cellLabelChanged(C,u.convertValueToString(F));
C.style=mxUtils.setStyle(mxUtils.setStyle(F.style,"container","1"),"collapsible","0");F.removeFromParent()}}}function Df(){var u=new Graph;u.setExtendParents(!1);u.setExtendParentsOnAdd(!1);u.setConstrainChildren(!1);u.setHtmlLabels(!0);u.getModel().maintainEdgeParent=!1;return u}function Qd(u,F,C,t,e,N,r,q){this.nurbsValues=[1,3,0,0,100*(u+C),100-100*(1-(F+t)),0,1,100*(e+r),100-100*(1-(N+q)),0,1]}function Ke(u,F){try{for(var C=[],t=F.BoundingBox.w,e=F.BoundingBox.h,N=0;N<F.Shapes.length;N++){var r= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.rows),d.getIndex()>a?(this.rows.push(d),c=!0):this.rows[d.getIndex()-1]=d;c&&function(k,n){n.compare?k.sort(function(p,x){return n.compare(p,x)}):k.sort(n)}(this.rows,new g.mxVsdxGeometry$0(this))};g.prototype.inheritGeo=function(b){this.noFill=b.noFill;this.noLine=b.noLine;this.noShow=b.noShow;this.noSnap=b.noSnap;this.noQuickDrag=b.noQuickDrag;var a=this.rows=[];a.push.apply(a,b.rows)};g.prototype.getIndex$=function(){return this.index};g.prototype.isNoFill=function(){return this.noFill};g.prototype.isNoLine= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.pm.initialise(this.rootElement,this);this.initStylesheets();this.initThemes();this.initMasters();this.initPages()}g.prototype.initThemes=function(){if(null!=this.xmlDocs)for(var b=!0,a=1;b;){var c=function(f,k){return f[k]?f[k]:null}(this.xmlDocs,h.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/theme/theme"+a+".xml");if(null!=c){for(c=c.firstChild;null!=c;){if(null!=c&&1==c.nodeType&&function(f,k){return f&&f.equals?f.equals(k):f===k}(c.tagName,"a:theme")){c=new h.mxgraph.io.vsdx.mxVsdxTheme(c);0> | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
[];this.connFillStyles=[];this.lineStyles=[];this.connLineStyles=[];this.lineStylesExt=[];this.connLineStylesExt=[];this.connFontColors=[];this.connFontStyles=[];this.fontColors=[];this.fontStyles=[];this.variantEmbellishment=[0,0,0,0];this.variantFillIdx=function(a){var c=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));return f};return c(a)}([4,4]);this.variantLineIdx=function(a){var c=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));
return f};return c(a)}([4,4]);this.variantEffectIdx=function(a){var c=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));return f};return c(a)}([4,4]);this.variantFontIdx=function(a){var c=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));return f};return c(a)}([4,4]);this.isProcessed=!1;this.__isPure=!0;this.name=this.bkgndColor=this.theme=null;this.theme=b;this.name=b.getAttribute("name")||"";b=function(a,c){return a[c]?a[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 |
[];null==M.entries&&(M.entries=[]);for(var H=0;H<M.entries.length;H++)L.push(M.entries[H].value);return L}(f.vsdxModel.getPages())).next();if(null!=p){var z={str:"",toString:function(){return this.str}},E=0===n.length?"":",",I=function(M){return Object.keys(M).map(function(L){return M[L]})}(p);n=function(M){M=I[M];var L=J.createMxGraph(),H=1;if(null!=M.pageSheet){var K=H=1,P=M.pageSheet.DrawingScale;null!=P&&(H=parseFloat(P.getAttribute("V"))||1);P=M.pageSheet.PageScale;null!=P&&(K=parseFloat(P.getAttribute("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 |
function(){var f=Date.now(),u=t.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-f+" ms","args",arguments);return u});null!=y?(d.patchPages=y,y=null):(y=d.patchPages,d.patchPages=function(){var f=Date.now(),u=y.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-f+" ms","args",arguments);return u});null!=A?(d.clonePages=A,A=null):(A=d.clonePages,d.clonePages=function(){var f=Date.now(),u=A.apply(this,arguments); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.addCell(f,b.getModel().getRoot(),0,null,null);this.importPage(d,b,b.getDefaultParent())}var k=g.getLayers();f=g.getShapes();d=[];console.log("layers",k);for(var n=0;n<k.length;n++){var p=k[n],x=p.Name.replace(/\s/g,"_");this.layerNames.push(x);0==p.Visible&&d.push(x)}p=function(z){var E=0;return{next:function(){return E<z.length?z[E++]:null},hasNext:function(){return E<z.length}}}(function(z){null==z.entries&&(z.entries=[]);return z.entries}(f));f=g.getPageDimensions().y;for(n=g.getId();p.hasNext();)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 |
null==f||f.constructor==EmbedFile||f.constructor==LocalFile&&null==f.mode||d.saveFile()},d.actions.addAction("saveAndExit",function(){"1"==urlParams.toSvg?d.sendEmbeddedSvgExport():d.actions.get("save").funct(!0)}).label="1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),d.actions.addAction("exit",function(){if("1"==urlParams.embedInline)d.sendEmbeddedSvgExport();else{var f=function(){d.editor.modified=!1;var u="json"==urlParams.proto?JSON.stringify({event:"exit",
modified:d.editor.modified}):"";(window.opener||window.parent).postMessage(u,"*")};d.editor.modified?d.confirm(mxResources.get("allChangesLost"),null,f,mxResources.get("cancel"),mxResources.get("discardChanges")):f()}},null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",new Menu(mxUtils.bind(this,function(f,u){d.isExportToCanvas()?(this.addMenuItems(f,["exportPng"],u),d.jpgSupported&&this.addMenuItems(f,["exportJpg"],u)):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(f, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
u.substring(0,7):null}function oa(u,F){return(u=T(u))&&7<u.length?F+"="+Math.round(parseInt("0x"+u.substr(7))/2.55)+";":""}function ca(u,F){if(null!=u.FillColor)if("object"===typeof u.FillColor){if(null!=u.FillColor.cs&&1<u.FillColor.cs.length)return Zb(mxConstants.STYLE_FILLCOLOR,V(u.FillColor.cs[0].c))+Zb(mxConstants.STYLE_GRADIENTCOLOR,V(u.FillColor.cs[1].c))}else return"string"===typeof u.FillColor?Zb(mxConstants.STYLE_FILLCOLOR,V(u.FillColor),"#FFFFFF"):Zb(mxConstants.STYLE_FILLCOLOR,"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 |
function(b,a){this.processTheme();var c=b.getQuickStyleFillColor(),d=null;switch(b.getQuickStyleFillMatrix()){case 1:case 2:case 3:case 4:case 5:case 6:d=this.fillStyles[b.getQuickStyleFillMatrix()-1];break;case 100:case 101:case 102:case 103:this.isMonotoneVariant[this.themeVariant]&&(c=100),d=b.getQuickStyleFillMatrix()-100,d=this.fillStyles[this.variantFillIdx[this.themeVariant][d]-1]}a=null!=d?a?null!=d&&d instanceof h.mxgraph.io.vsdx.theme.GradFill?d.applyStyle(c,this).getGradientClr():null:
d.applyStyle(c,this):a?null:this.getStyleColor(c);c=b.getQuickStyleVariation();if(null!=a&&0<(c&8)){c=this.getStyleColor(8).toHsl();b=this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);d=b.toHsl();var f=a.toHsl();.1666<=Math.abs(c.getLum()-f.getLum())||(.7292>=c.getLum()?a=new h.mxgraph.io.vsdx.theme.Color(255,255,255):Math.abs(c.getLum()-d.getLum())>Math.abs(c.getLum()-f.getLum())&&(a=b))}return a};g.prototype.getFillColor=function(b,a){if(!(null!=b&&b instanceof h.mxgraph.io.vsdx.theme.QuickStyleVals|| | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(h){(function(y){(function(A){(function(B){var m=function(){function g(){}g.conversionFactor_$LI$=function(){null==g.conversionFactor&&(g.conversionFactor=g.screenCoordinatesPerCm*g.CENTIMETERS_PER_INCHES);return g.conversionFactor};g.getDirectChildNamedElements=function(b,a){var c=[];for(b=b.firstChild;null!=b;b=b.nextSibling){var d;if(d=null!=b&&1==b.nodeType){d=a;var f=b.nodeName;d=d&&d.equals?d.equals(f):d===f}d&&c.push(b)}return c};g.getDirectChildElements=function(b){var a=[];for(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.cellWasClicked=!0,this.consumeMouseEvent(mxEvent.MOUSE_DOWN,b)))};mxGraphHandler.prototype.getGuideStates=function(){var a=this.graph.getDefaultParent(),b=this.graph.getModel(),c=mxUtils.bind(this,function(d){return null!=this.graph.view.getState(d)&&b.isVertex(d)&&null!=b.getGeometry(d)&&!b.getGeometry(d).relative});return this.graph.view.getCellStates(b.filterDescendants(c,a))};mxGraphHandler.prototype.getCells=function(a){return!this.delayedSelection&&this.graph.isCellMovable(a)?[a]:this.graph.getMovableCells(this.graph.getSelectionCells())}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
u){var F=0,C=!1;if(null!=u)for(var t=0;!C&&t<u.length;){var e=u[t];"b"==e.n?null!=e.v&&e.v&&(C=!0,F+=1):"fc"==e.n&&"Bold"==e.v&&(C=!0,F+=1);t++}C=!1;if(null!=u)for(t=0;!C&&t<u.length;)e=u[t],"i"==e.n&&null!=e.v&&e.v&&(C=!0,F+=2),t++;C=!1;if(null!=u)for(t=0;!C&&t<u.length;)e=u[t],"u"==e.n&&null!=e.v&&e.v&&(C=!0,F+=4),t++;if(0<F)return"fontStyle="+F+";"}return""}function E(u){u=b(u);if(null!=u)for(var F=0;F<u.length;){var C=u[F];if("a"==C.n&&null!=C.v)return"align="+C.v+";";F++}return""}function I(u){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 |
g.prototype.getSubShape=function(b){var a=this.childShapes;return a[b]?a[b]:null};g.prototype.getNameU=function(){return this.master.getAttribute("NameU")||""};g.prototype.getName=function(){return this.master.getAttribute("Name")||""};g.prototype.getUniqueID=function(){var b="";this.master.hasAttribute("UniqueID")&&(b=this.master.getAttribute("UniqueID"));return b};g.prototype.getId=function(){return this.Id};g.prototype.getMasterElement=function(){return this.master};return g}();B.mxVsdxMaster= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.entries[L].key.equals(O)||J.entries[L].key===O){J.entries[L].value=M;return}J.entries.push({key:O,value:M,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexMap,new h.mxgraph.io.vsdx.ShapePageId(c,b.getId()),n);return n};m.rotatedEdgePoint=function(g,b,a,c){b=b*Math.PI/180;var d=Math.cos(b);b=Math.sin(b);var f=g.x-a,k=g.y-c;g.x=Math.round(f*d-k*b+a);g.y=Math.round(k*d+f*b+c)};m.prototype.addVertex=function(g,b,a,c,d){var f="",k=b.isDisplacedLabel()||b.isRotatedLabel(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){return this.shapes};g.prototype.getLayers=function(){return this.layers};g.prototype.getConnects=function(){return this.connects};g.prototype.isBackground=function(){return this.__isBackground};g.prototype.getBackPageId=function(){return this.backPageId};g.prototype.setBackPage=function(b){this.backPage=b};g.prototype.getBackPage=function(){return this.backPage};return g}();B.mxVsdxPage=m;m.__class="com.mxgraph.io.vsdx.mxVsdxPage"})(A.vsdx||(A.vsdx={}))})(y.io||(y.io={}))})(h.mxgraph|| | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){return this.noLine};g.prototype.isNoShow=function(){return this.noShow};g.prototype.isNoSnap=function(){return this.noSnap};g.prototype.isNoQuickDrag=function(){return this.noQuickDrag};g.prototype.getRows=function(){return this.rows};g.prototype.getPathXML=function(b,a){if(this.noShow)return"";for(var c="",d=0;d<this.rows.length;d++){var f=this.rows[d];c=c.concat(null!=f?f.handle(b,a):"")}return c};return g}();B.mxVsdxGeometry=m;m.__class="com.mxgraph.io.vsdx.mxVsdxGeometry";(function(g){var 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 |
g.prototype.extractThemeIndex=function(b){b=h.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b);null!=b&&(this.themeIndex=parseInt(b.getAttribute("schemeEnum")))};g.prototype.addBasicColor=function(b,a){this.baseColors[b]=h.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(a)};g.prototype.getSchemeColor=function(b){this.processTheme();var a=this.baseColors;b=a[b]?a[b]:null;return null!=b?b.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this):this.defaultClr};g.prototype.getStyleColor=function(b){this.processTheme(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.lineStyles[this.variantLineIdx[this.themeVariant][b-100]-1]:this.defaultLineStyle}return c};g.prototype.getLineStyleExt=function(b,a){this.processTheme();var c=null;switch(b){case 0:case 1:case 2:case 3:case 4:case 5:case 6:c=a[b]}return c};g.prototype.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList=function(b,a){this.processTheme();var c=b.getQuickStyleLineColor();a=this.getLineStyle(b.getQuickStyleLineMatrix(),a);switch(b.getQuickStyleLineMatrix()){case 100:case 101:case 102:case 103:this.isMonotoneVariant[this.themeVariant]&&
(c=100)}c=null!=a?a.getLineColor(c,this):this.getStyleColor(c);if(0<(b.getQuickStyleVariation()&4)){a=this.getStyleColor(8).toHsl();b=this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);var d=b.toHsl(),f=c.toHsl();.1666<=Math.abs(a.getLum()-f.getLum())||(.7292>=a.getLum()?c=new h.mxgraph.io.vsdx.theme.Color(255,255,255):Math.abs(a.getLum()-d.getLum())>Math.abs(a.getLum()-f.getLum())&&(c=b))}return c};g.prototype.getLineColor=function(b,a){if((null!=b&&b instanceof h.mxgraph.io.vsdx.theme.QuickStyleVals|| | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(h){(function(y){(function(A){(function(B){var m=function(){function g(b,a){this.masterShape=this.Id=null;this.childShapes={};this.master=b;this.Id=b.getAttribute(h.mxgraph.io.vsdx.mxVsdxConstants.ID)||"";this.processMasterShapes(a)}g.prototype.processMasterShapes=function(b){for(var a=this.master.firstChild;null!=a;){if(null!=a&&1==a.nodeType&&function(k,n){return k&&k.equals?k.equals(n):k===n}(a.nodeName,"Rel")){var c=b.getRelationship(a.getAttribute("r:id"),h.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/_rels/masters.xml.rels"),
d=c.getAttribute("Target");c=c.getAttribute("Type");var f=null;null!=c&&function(k,n){var p=k.length-n.length;k=k.indexOf(n,p);return-1!==k&&k===p}(c,"master")&&(f=b.getXmlDoc(h.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/"+d));if(null!=f)for(d=f.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(k,n){return k&&k.equals?k.equals(n):k===n}(d.nodeName,"MasterContents")){this.processMasterShape(d,b);break}d=d.nextSibling}}else if(1==a.nodeType&&"PageSheet"==a.nodeName)for(this.pageSheet={},
d=h.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Cell"),c=0;c<d.length;c++)this.pageSheet[d[c].getAttribute("N")]=d[c];a=a.nextSibling}};g.prototype.processMasterShape=function(b,a,c){c||(this.firstLevelShapes=[]);for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(p,x){return p&&p.equals?p.equals(x):p===x}(b.nodeName,"Shapes"))for(var d=b.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(p,x){return p&&p.equals?p.equals(x):p===x}(d.nodeName,"Shape")){var f=d,k=f.getAttribute("ID"), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0;C<F.length;C++)if("f"==F[C].n&&F[C].v){var t=F[C].v;break}!t&&u.Font&&(t=u.Font);y(t);return lb}function n(u){return"ext"==u.tp?u.url:"ml"==u.tp?"mailto:"+u.eml:"pg"==u.tp?"data:page/id,"+(LucidImporter.pageIdsMap[u.id]||0):"c"==u.tp?"data:confluence/id,"+u.ccid:null}function p(u){u=b(u);if(null!=u)for(var F=0;F<u.length;){var C=u[F];if("c"==C.n&&null!=C.v)return u=T(C.v).substring(0,7),"#000000"==u&&(u="default"),mxConstants.STYLE_FONTCOLOR+"="+u+";";F++}return""}function x(u){return z(b(u))}function z(u){if(null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
F.Class&&null!=u.ImageFillProps&&null!=u.ImageFillProps.url&&(C=u.ImageFillProps.url);return null!=C?"image="+h(C)+";"+t:""}function ka(u,F,C){null!=F.Link&&0<F.Link.length&&C.setAttributeForCell(u,"link",n(F.Link[0]));null!=F.NoteHint&&F.NoteHint.t&&C.setAttributeForCell(u,"Notes",F.NoteHint.t);var t=[],e=C.convertValueToString(u),N=!1;if(null!=e){for(var r=0;match=xf.exec(e);){var q=match[0];N=!0;if(2<q.length){var Z=q.substring(2,q.length-2);"documentName"==Z?Z="filename":"pageName"==Z?Z="page":
"totalPages"==Z?Z="pagecount":"page"==Z?Z="pagenumber":"date:"==Z.substring(0,5)?Z="date{"+Z.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==Z.substring(0,16)?Z=Z.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==Z.substring(0,9)&&(Z="date{"+Z.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");Z="%"+Z+"%";t.push(e.substring(r,match.index)+(null!=Z?Z:q));r=
match.index+q.length}}N&&(t.push(e.substring(r)),C.setAttributeForCell(u,"label",t.join("")),C.setAttributeForCell(u,"placeholders","1"))}for(var aa in F)if(F.hasOwnProperty(aa)&&aa.toString().startsWith("ShapeData_"))try{var U=F[aa],wa=mxUtils.trim(U.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Za(u,wa,U.Value,C)}catch(ja){window.console&&console.log("Ignored "+aa+":",ja)}}function Za(u,F,C,t){for(var e=F,N=0;null!=t.getAttributeForCell(u,e);)N++,e=F+"_"+N;t.setAttributeForCell(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(){return this.noLine};g.prototype.isNoShow=function(){return this.noShow};g.prototype.isNoSnap=function(){return this.noSnap};g.prototype.isNoQuickDrag=function(){return this.noQuickDrag};g.prototype.getRows=function(){return this.rows};g.prototype.getPathXML=function(b,a){if(this.noShow)return"";for(var c="",d=0;d<this.rows.length;d++){var f=this.rows[d];c=c.concat(null!=f?f.handle(b,a):"")}return c};return g}();B.mxVsdxGeometry=m;m.__class="com.mxgraph.io.vsdx.mxVsdxGeometry";(function(g){var 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(b,a,c,d){c=this.getLineStyleExt(b.getQuickStyleLineMatrix(),c);if(null!=c)return a?c.getStart():c.getEnd();b=this.getLineStyle(b.getQuickStyleLineMatrix(),d);return null!=b?a?b.getStart():b.getEnd():0};g.prototype.getEdgeMarker=function(b,a){return this.getArrowType(a,b,this.lineStylesExt,this.lineStyles)};g.prototype.getConnEdgeMarker=function(b,a){return this.getArrowType(a,b,this.connLineStylesExt,this.connLineStyles)};g.prototype.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoLine":this.noLine=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoShow":this.noShow=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoSnap":this.noSnap=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoQuickDrag":this.noQuickDrag=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d)}}a=this.rows.length;c=!1;for(f=0;f<b.length;f++)d=h.mxgraph.io.vsdx.geometry.RowFactory.getRowObj(b[f], | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.connLineStylesExt,this.connLineStyles)};g.prototype.getArrowSize=function(b,a,c,d){c=this.getLineStyleExt(b.getQuickStyleLineMatrix(),c);if(null!=c)return a?c.getStartSize():c.getEndSize();b=this.getLineStyle(b.getQuickStyleLineMatrix(),d);return null!=b?a?b.getStartSize():b.getEndSize():4};g.prototype.getStartSize=function(b){return this.getArrowSize(b,!0,this.lineStylesExt,this.lineStyles)};g.prototype.getConnStartSize=function(b){return this.getArrowSize(b,!0,this.connLineStylesExt,this.connLineStyles)}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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))return d}return null};g.prototype.getMaster=function(b){var a=this.masters;return a[b]?a[b]:null};g.prototype.createPage=function(b){return new h.mxgraph.io.vsdx.mxVsdxPage(b,this)};g.prototype.getPropertiesManager=function(){return this.pm};g.prototype.setPropertiesManager=function(b){this.pm=b};g.prototype.getMasterShapes=function(){return this.masters};g.prototype.setMasterShapes=function(b){this.masters=b};g.prototype.getStylesheet=function(b){var a=this.stylesheets;return a[b]?a[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 |
"="),x=null,x=k?g.insertVertex(a,null,null,Math.floor(Math.round(100*d.x)/100),Math.floor(Math.round(100*d.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),p):g.insertVertex(a,null,f,Math.floor(Math.round(100*d.x)/100),Math.floor(Math.round(100*d.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),p),function(z,E,I){null==z.entries&&(z.entries=[]);for(var J=0;J<z.entries.length;J++)if(null!=z.entries[J].key.equals&&z.entries[J].key.equals(E)||
z.entries[J].key===E){z.entries[J].value=I;return}z.entries.push({key:E,value:I,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexMap,new h.mxgraph.io.vsdx.ShapePageId(c,b.getId()),x),b.setLabelOffset(x,p),k&&b.createLabelSubShape(g,x),x):null};m.calculateAbsolutePoint=function(g){for(var b=0,a=0;null!=g;){var c=g.geometry;null!=c&&(b+=c.x,a+=c.y);g=g.parent}return new mxPoint(b,a)};m.prototype.processEdgeGeo=function(g,b){try{var a=g.geomList.geomList[0].rows; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
z&&(z=0);return p.substr(z,x.length)===x}(b[k]?b[k]:null,"rounded="))try{c=c+k+a}catch(p){}c=c+n+";"}return c};g.surroundByTags=function(b,a,c){return"<"+a+(c?' style="'+c+'"':"")+">"+b+"</"+a+">"};g.htmlEntities=function(b){return b.replace(RegExp("&","g"),"&").replace(RegExp('"',"g"),""").replace(RegExp("'","g"),"′").replace(RegExp("<","g"),"<").replace(RegExp(">","g"),">")};g.toInitialCapital=function(b){b=b.split(" ");for(var a="",c=0;c<b.length;c++){var d=b[c],f=d.substring(0, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
parseFloat(c):-1,d=!1);this.findToPart(b,d)};g.prototype.findToPart=function(b,a){b=b.getAttribute(h.mxgraph.io.vsdx.mxVsdxConstants.TO_PART);b=null!=b&&0!==b.length?parseFloat(b):-1;a?this.sourceToPart=b:this.targetToPart=b};g.prototype.getFromSheet=function(){return this.fromSheet};g.prototype.getSourceToSheet=function(){return this.sourceToSheet};g.prototype.getTargetToSheet=function(){return this.targetToSheet};g.prototype.getSourceToPart=function(){return this.sourceToPart};g.prototype.getTargetToPart= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
case mxConstants.STYLE_FILLCOLOR:return ca(C,t);case mxConstants.STYLE_DASHED:return qa(C);case mxConstants.STYLE_STROKEWIDTH:return sa(C);case mxConstants.STYLE_IMAGE:return Fa(C,t);case mxConstants.STYLE_POINTER_EVENTS:return C.Magnetize?"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;":""}return""}function f(u){u=b(u);if(null!=u)for(var F=0;F<u.length;){var C=u[F];if("s"==C.n&&C.v)return"fontSize="+A(.75*C.v)+";";F++}return"fontSize=13;"}function k(u){var F=b(u);if(null!=F)for(var C=
0;C<F.length;C++)if("f"==F[C].n&&F[C].v){var t=F[C].v;break}!t&&u.Font&&(t=u.Font);y(t);return lb}function n(u){return"ext"==u.tp?u.url:"ml"==u.tp?"mailto:"+u.eml:"pg"==u.tp?"data:page/id,"+(LucidImporter.pageIdsMap[u.id]||0):"c"==u.tp?"data:confluence/id,"+u.ccid:null}function p(u){u=b(u);if(null!=u)for(var F=0;F<u.length;){var C=u[F];if("c"==C.n&&null!=C.v)return u=T(C.v).substring(0,7),"#000000"==u&&(u="default"),mxConstants.STYLE_FONTCOLOR+"="+u+";";F++}return""}function x(u){return z(b(u))}function z(u){if(null!= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxUtils.htmlEntities(b.getPageName())+(b.isBackground()?" (Background)":"");b=mxUtils.htmlEntities(b.getPageNameU());a+='<diagram name="'+c+'" id="'+b.replace(/\s/g,"_")+'">'}return a+=Graph.compress(g)};m.prototype.scalePoint=function(g,b){null!=g&&(g.x*=b,g.y*=b);return g};m.prototype.scaleRect=function(g,b){null!=g&&(g.x*=b,g.y*=b,g.height*=b,g.width*=b);return g};m.prototype.importNodes=function(g,b,a,c){var d=a.lastIndexOf("/"),f=a,k=a;if(-1!==d&&(f=a.substring(0,d),k=a.substring(d+1,a.length), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.fontElementMap[d]=k}};g.prototype.getColor=function(b){var a=function(c,d){return c[d]?c[d]:null}(this.colorElementMap,b);return null==a&&(a=function(c,d){return c[d]?c[d]:null}(g.defaultColors_$LI$(),b),null==a)?"":a};g.prototype.getFont=function(b){var a=this.fontElementMap;b=a[b]?a[b]:null;return null==b?"":b};return g}();m.__static_initialized=!1;B.mxPropertiesManager=m;m.__class="com.mxgraph.io.vsdx.mxPropertiesManager"})(A.vsdx||(A.vsdx={}))})(y.io||(y.io={}))})(h.mxgraph||(h.mxgraph={}))})(com|| | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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,d){return c&&c.equals?c.equals(d):c===d}(a,"BeginX")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"BeginY")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"EndY")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"EndX")))return!0}b=b.nextSibling}return!1};g.prototype.getPageDimensions=function(){var b=0,a=0,c=function(f,k){return f[k]?f[k]:null}(this.cellElements,"PageHeight"),d=function(f,k){return f[k]?f[k]:null}(this.cellElements,"PageWidth");null!=c&&(b=parseFloat(c.getAttribute("V"))*
h.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),b=Math.round(100*b)/100);null!=d&&(a=parseFloat(d.getAttribute("V"))*h.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),a=Math.round(100*a)/100);return new mxPoint(a,b)};g.prototype.getDrawingScale=function(){var b=this.cellElements;b=b.DrawingScale?b.DrawingScale:null;return null!=b?parseFloat(b.getAttribute("V"))*h.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():1};g.prototype.getPageScale=function(){var b=this.cellElements;b=b.PageScale? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(h){(function(y){(function(A){(function(B){(function(m){var g=function(){function b(a,c,d){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=c;this.y=d}b.prototype.getX=function(){return this.x};b.prototype.getY=function(){return this.y};b.prototype.getA=function(){return this.a};b.prototype.getB=function(){return this.b};b.prototype.getC=function(){return this.c};b.prototype.getD=function(){return this.d};b.prototype.getFormulaA= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(f.x+=e.offset.x,f.y+=e.offset.y),e=this.getCurrentCellStyle(a[d]),null!=f&&(e=mxUtils.getValue(e,mxConstants.STYLE_ROTATION,0),0!=e&&(f=mxUtils.getBoundingBox(f,e)));null!=f&&(null==c?c=mxRectangle.fromRectangle(f):c.add(f))}}return c};mxGraph.prototype.refresh=function(a){this.view.clear(a,null==a);this.view.validate();this.sizeDidChange();this.fireEvent(new mxEventObject(mxEvent.REFRESH))};mxGraph.prototype.snap=function(a){this.gridEnabled&&(a=Math.round(a/this.gridSize)*this.gridSize);return a}; | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
450,240,!0);F.init()}catch(Q){d.handleError(Q)}else d.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=d.getServiceName()&&"1"!=urlParams.embed&&u.push([mxResources.get("preferences"),function(){d.showLocalStorageDialog(mxResources.get("preferences")+":",Editor.settingsKey,[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(E){d.handleError(E)}})}]])}]); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0,0);L=H.toDataURL("image/jpeg");k[O]=L.substr(23);x++;z()}):J.async("base64").then(function(L){k[O]=L;x++;z()}))})},function(E){null!=c&&c(E)})};m.prototype.createMxGraph=function(){var g=new Graph;g.setExtendParents(!1);g.setExtendParentsOnAdd(!1);g.setConstrainChildren(!1);g.setHtmlLabels(!0);g.getModel().maintainEdgeParent=!1;return g};m.prototype.processPage=function(g,b){g=(new mxCodec).encode(g.getModel());g.setAttribute("style","default-style2");g=mxUtils.getXml(g);var a="";if(null!=b){var c= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
g.prototype.extractThemeIndex=function(b){b=h.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b);null!=b&&(this.themeIndex=parseInt(b.getAttribute("schemeEnum")))};g.prototype.addBasicColor=function(b,a){this.baseColors[b]=h.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(a)};g.prototype.getSchemeColor=function(b){this.processTheme();var a=this.baseColors;b=a[b]?a[b]:null;return null!=b?b.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this):this.defaultClr};g.prototype.getStyleColor=function(b){this.processTheme(); | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.htmlEntities(b.getPageName())+(b.isBackground()?" (Background)":"");b=mxUtils.htmlEntities(b.getPageNameU());a+='<diagram name="'+c+'" id="'+b.replace(/\s/g,"_")+'">'}return a+=Graph.compress(g)};m.prototype.scalePoint=function(g,b){null!=g&&(g.x*=b,g.y*=b);return g};m.prototype.scaleRect=function(g,b){null!=g&&(g.x*=b,g.y*=b,g.height*=b,g.width*=b);return g};m.prototype.importNodes=function(g,b,a,c){var d=a.lastIndexOf("/"),f=a,k=a;if(-1!==d&&(f=a.substring(0,d),k=a.substring(d+1,a.length), | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
match.index+q.length}}N&&(t.push(e.substring(r)),C.setAttributeForCell(u,"label",t.join("")),C.setAttributeForCell(u,"placeholders","1"))}for(var aa in F)if(F.hasOwnProperty(aa)&&aa.toString().startsWith("ShapeData_"))try{var U=F[aa],wa=mxUtils.trim(U.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Za(u,wa,U.Value,C)}catch(ja){window.console&&console.log("Ignored "+aa+":",ja)}}function Za(u,F,C,t){for(var e=F,N=0;null!=t.getAttributeForCell(u,e);)N++,e=F+"_"+N;t.setAttributeForCell(u,
e,null!=C?C:"")}function yb(u,F,C,t,e,N){var r=g(F);if(null!=r){var q=Od[r.Class];null!=q?(u.style+=q,";"!=u.style.charAt(u.style.length-1)&&(u.style+=";")):u.edge||(console.log("No mapping found for: "+r.Class),LucidImporter.hasUnknownShapes=!0);q=null!=r.Properties?r.Properties:r;if(null!=q&&(u.value=N?"":m(q),u.style+=c(u.style,q,r,u,G,!0),u.style.includes("strokeColor")||(u.style+=K(q,r)),ka(u,q,C),q.Title&&q.Title.t&&q.Text&&q.Text.t&&"ExtShape"!=r.Class.substr(0,8)&&(C=u.geometry,C=new mxCell(m(q.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 |
K.status&&299>=K.status)try{var P=new FileReader;P.readAsDataURL(K.response);P.onloadend=function(){var Q=P.result.indexOf(",")+1;k[O]=P.result.substr(Q);x++;z()}}catch(Q){console.log(Q),x++,z()}else x++,z()});K.send(H)}):(x++,z()):function(L,H){var K=L.length-H.length;L=L.indexOf(H,K);return-1!==L&&L===K}(M,".bmp")?JSZip.support.uint8array&&J.async("uint8array").then(function(L){L=new BmpDecoder(L);var H=document.createElement("canvas");H.width=L.width;H.height=L.height;H.getContext("2d").putImageData(L.imageData, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoLine":this.noLine=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoShow":this.noShow=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoSnap":this.noSnap=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoQuickDrag":this.noQuickDrag=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d)}}a=this.rows.length;c=!1;for(f=0;f<b.length;f++)d=h.mxgraph.io.vsdx.geometry.RowFactory.getRowObj(b[f], | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(function(h){(function(y){(function(A){var B=function(){function m(g){this.RESPONSE_END="</mxfile>";this.RESPONSE_DIAGRAM_START="";this.RESPONSE_DIAGRAM_END="</diagram>";this.RESPONSE_HEADER='<?xml version="1.0" encoding="UTF-8"?><mxfile>';this.vertexMap={};this.edgeShapeMap={};this.vertexShapeMap={};this.parentsMap={};this.layerNames=[];this.debugPaths=!1;this.vsdxModel=null;this.editorUi=g;this.shapeIndexShift=0}m.vsdxPlaceholder_$LI$=function(){null==m.vsdxPlaceholder&&(m.vsdxPlaceholder=window.atob? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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;p=null!=p&&-1<p?function(x,z){null==x.entries&&(x.entries=[]);for(var E=0;E<x.entries.length;E++)if(null!=x.entries[E].key.equals&&x.entries[E].key.equals(z)||x.entries[E].key===z)return x.entries[E].value;return null}(this.connects,p):null;null!=p?p.addConnect(k):function(x,z,E){null==x.entries&&(x.entries=[]);for(var I=0;I<x.entries.length;I++)if(null!=x.entries[I].key.equals&&x.entries[I].key.equals(z)||x.entries[I].key===z){x.entries[I].value=E;return}x.entries.push({key:z,value:E,getKey:function(){return this.key}, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(c):-1,d=!1);this.findToPart(b,d)};g.prototype.findToPart=function(b,a){b=b.getAttribute(h.mxgraph.io.vsdx.mxVsdxConstants.TO_PART);b=null!=b&&0!==b.length?parseFloat(b):-1;a?this.sourceToPart=b:this.targetToPart=b};g.prototype.getFromSheet=function(){return this.fromSheet};g.prototype.getSourceToSheet=function(){return this.sourceToSheet};g.prototype.getTargetToSheet=function(){return this.targetToSheet};g.prototype.getSourceToPart=function(){return this.sourceToPart};g.prototype.getTargetToPart= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
O.entries[L].key===M)return O.entries[L].value;return null}(d.vertexMap,new h.mxgraph.io.vsdx.ShapePageId(g.Id,z.Id)),J=new Image;J.onload=function(){var O=E.iData,M=E.iType;try{var L=J.width/E.imgWidth,H=J.height/E.imgHeight,K=-E.imgOffsetX*L,P=(E.imgHeight-E.height+E.imgOffsetY)*H,Q=document.createElement("canvas");Q.width=E.width*L;Q.height=E.height*H;var R=Q.getContext("2d");R.fillStyle="#FFFFFF";R.fillRect(0,0,Q.width,Q.height);R.drawImage(J,K,P,Q.width,Q.height,0,0,Q.width,Q.height);O=Q.toDataURL("image/jpeg").substr(23);
M="jpg"}catch(ha){console.log(ha)}I.style+=";image=data:image/"+M+","+O;x()};J.src="data:image/"+E.iType+";base64,"+E.iData;J.onerror=function(){I.style+=";image=data:image/"+E.iType+","+E.iData;x()}};k(0,a)}else a()}catch(n){console.log(n),a()}};m.prototype.addShape=function(g,b,a,c,d){b.parentHeight=d;var f=h.mxgraph.io.vsdx.VsdxShape.getType(b.getShape());if(null!=f&&(function(n,p){return n&&n.equals?n.equals(p):n===p}(f,h.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(n,p){return n&&n.equals? | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
try{var t=function(Ca,ua){function Na(Ra,la,Ma){null==Ra||Ra.generated||(Ra.x-=la,Ra.y-=Ma)}var Ka=null!=ua.Endpoint1.Block?N[ua.Endpoint1.Block]:null,La=null!=ua.Endpoint2.Block?N[ua.Endpoint2.Block]:null,l=yf(Ca,u,Ka,La);if(ua.Endpoint1&&ua.Endpoint1.Line||ua.Endpoint2&&ua.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==Ka&&null!=ua.Endpoint1&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint1.x),Math.round(.75*ua.Endpoint1.y)),!0);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 |
z.str.concat('","w":');z.str=z.str.concat(H.width);z.str=z.str.concat(',"h":');z.str=z.str.concat(H.height);z.str=z.str.concat(',"title":');M=M.getName();null==M&&(M="");M=mxUtils.htmlEntities(JSON.stringify(M));z.str=z.str.concat(M);z.str=z.str.concat("}");E=","}};for(var J=f,O=0;O<I.length;O++)n(O);k=k.concat(z)}k=k.concat("]</mxlibrary>");if(a)try{a(k)}catch(M){null!=d?d(M):a("")}},c)};g.prototype.normalizeGeo=function(b){var a=b.getGeometry();a.x=0;a.y=0;var c=a.sourcePoint;if(b.isEdge()&&null!=
c){this.transPoint(a.targetPoint,c);this.transPoint(a.offset,c);b=a.points;if(null!=b)for(var d=0;d<b.length;d++)this.transPoint(b[d],c);this.transPoint(c,c)}return a};g.prototype.normalizeGraph=function(b){function a(E){null!=E&&(null==c?(c=E.x,d=E.y,f=E.x+(E.width||0),k=E.y+(E.height||0)):(c=Math.min(E.x,c),d=Math.min(E.y,d),f=Math.max(E.x+(E.width||0),f),k=Math.max(E.y+(E.height||0),k)))}var c,d,f,k,n;for(n in b.model.cells){var p=b.model.cells[n],x=p.geometry;if(null!=x&&1==p.parent.id)if(p.vertex)a(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 |
h.pages?h.pages.length:1;if(null!=h.pages){var T=function(Fa){Fa=Fa.getName();var ka=h.editor.graph,Za=null;null!=ka.themes&&"darkTheme"==ka.defaultThemeName&&(Za=ka.stylesheet,ka.stylesheet=ka.getDefaultStylesheet(),ka.refresh());try{var yb=m(ka);Q[Fa]=x(ka,yb);K(ka,Fa);I(P,ca+1);ha[Fa]=yb}finally{null!=Za&&(ka.stylesheet=Za,ka.refresh())}},V=h.editor.graph.getSelectionCells(),oa=h.currentPage;if(H)T(oa);else{for(var ca=0;ca<h.pages.length;ca++){var qa=h.pages[ca];h.currentPage!=qa&&h.selectPage(qa, | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
g.prototype.getSubShape=function(b){var a=this.childShapes;return a[b]?a[b]:null};g.prototype.getNameU=function(){return this.master.getAttribute("NameU")||""};g.prototype.getName=function(){return this.master.getAttribute("Name")||""};g.prototype.getUniqueID=function(){var b="";this.master.hasAttribute("UniqueID")&&(b=this.master.getAttribute("UniqueID"));return b};g.prototype.getId=function(){return this.Id};g.prototype.getMasterElement=function(){return this.master};return g}();B.mxVsdxMaster= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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))return d}return null};g.prototype.getMaster=function(b){var a=this.masters;return a[b]?a[b]:null};g.prototype.createPage=function(b){return new h.mxgraph.io.vsdx.mxVsdxPage(b,this)};g.prototype.getPropertiesManager=function(){return this.pm};g.prototype.setPropertiesManager=function(b){this.pm=b};g.prototype.getMasterShapes=function(){return this.masters};g.prototype.setMasterShapes=function(b){this.masters=b};g.prototype.getStylesheet=function(b){var a=this.stylesheets;return a[b]?a[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 |
this.sanitiseGraph(b);return f};m.prototype.postImportPage=function(g,b,a){try{var c=function(n){if(null!=n){n=n.entries||[];for(var p=0;p<n.length;p++){var x=n[p].value||{};x.toBeCroppedImg&&f.push(x);c(x.getChildShapes())}}},d=this,f=[];c(g.getShapes());if(0<f.length){var k=function(n,p){function x(){n<f.length-1?k(n+1,p):p()}var z=f[n],E=z.toBeCroppedImg,I=function(O,M){null==O.entries&&(O.entries=[]);for(var L=0;L<O.entries.length;L++)if(null!=O.entries[L].key.equals&&O.entries[L].key.equals(M)|| | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
b.PageScale:null;return null!=b?parseFloat(b.getAttribute("V"))*h.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():1};g.prototype.getCellValue=function(b){var a=this.cellElements;b=a[b]?a[b]:null;return null!=b?b.getAttribute("V")||"":null};g.prototype.getCellIntValue=function(b,a){b=this.getCellValue(b);return null!=b?parseInt(b):a};g.prototype.getId=function(){return this.Id};g.prototype.getPageName=function(){return this.pageName};g.prototype.getPageNameU=function(){return this.pageNameU};g.prototype.getShapes= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(h){(function(y){(function(A){(function(B){(function(m){var g=function(){function b(a,c,d){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=c;this.y=d}b.prototype.getX=function(){return this.x};b.prototype.getY=function(){return this.y};b.prototype.getA=function(){return this.a};b.prototype.getB=function(){return this.b};b.prototype.getC=function(){return this.c};b.prototype.getD=function(){return this.d};b.prototype.getFormulaA= | 0 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.