This question already has an answer here:
Content Delivery Networks (CDNs) are well known to speed up the performance of a website, but they create the obvious security risks if someone were to change the code that resides on the CDN.
What are the security risks of a CDN?
Are there special concerns regarding HTTPS/SSL connections?
What information can a CDN obtain about my site (e.g. via referrer headers)?