Language: JavaScript
Label: vulnerable
CWE: CWE-400 \u2014 Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.

Code:
StyleFormatPanel.prototype.addSvgStyles=function(a){var c=this.editorUi.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="6px";a.style.fontWeight="bold";a.style.display="none";try{var f=c.style.editableCssRules;if(null!=f){var e=new RegExp(f),g=c.style.image.substring(c.style.image.indexOf(",")+1),d=window.atob?atob(g):Base64.decode(g,!0),k=mxUtils.parseXml(d);if(null!=k){var n=k.getElementsByTagName("style");for(c=0;c<n.length;c++){var u=this.getCssRules(mxUtils.getTextContent(n[c]));
for(f=0;f<u.length;f++)this.addSvgRule(a,u[f],k,n[c],u,f,e)}}}}catch(m){}return a};