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:
F.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var C=mxUtils.parseXml(F).getElementsByTagName("svg");if(0<C.length){var H=parseFloat(C[0].getAttribute("width")),G=parseFloat(C[0].getAttribute("height"));if(isNaN(H)||isNaN(G))try{var aa=C[0].getAttribute("viewBox").split(/\s+/);H=parseFloat(aa[2]);G=parseFloat(aa[3])}catch(da){H=H||100,G=G||100}g(q.convertDataUri(Editor.createSvgDataUri(F)),H,G)}else l({message:mxResources.get("invalidInput")})}catch(da){l(da)}})}catch(F){l(F)}};