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