This is true, but there is a mitigation available: The site can require the resource to match a specified cryptographic hash before running. This did not work with polyfill.io because that CDN would dynamically return different resources based on the user agent.
https://developer.mozilla.org/en-US/docs/Web/Security/Subres...