Remote code execution in cdnjs of Cloudflare
There is probably no good reason to use such CDNs nowadays:<p>1) The biggest benefit of using cdn was that scripts stylesheets were often loaded from cache. This is no longer the case anymore.<p>2) It's adding an unnecessary vulnerability as seen from this case.<p>3) CDN scripts can be (possibly) used to track your website traffic.<p>4) They often drop third party cookies which decreases your website load speed among other things.<p>It's best to just host your script on Digital ocean spaces or S3 and use a Cloudfront proxy.