Third-party script hosts after the polyfill.io incident
In late June 2024 the polyfill.io domain, sold earlier in the year, was reported to be injecting malicious redirects into scripts embedded by a very large number of sites. The pages affected had not changed; the party answering the request had.
Inventory script origins
List every external host from which production pages load executable code, including references inside tag managers, old templates and archived microsites. Record why each is used and who approved it. A dependency added in 2016 and never reviewed is still a dependency.
Remove or self-host
Most browsers in a current support policy no longer require the polyfills this service supplied; remove the reference where that is so. Where a script is still needed, serve a reviewed, versioned copy from the organisation’s own origin so that a change of ownership elsewhere cannot alter it.
Constrain what remains
Apply Subresource Integrity to static third-party files and restrict script sources with Content Security Policy. Note that integrity hashes cannot protect a response that legitimately varies by browser, which is the model this service used; such endpoints must be trusted completely or not used.
A script tag is a standing instruction to execute whatever the named host returns. Review the hosts periodically, not only the code they returned on the day of integration.