Polyfill.io CDN served malicious redirects
After the popular polyfill.io domain was acquired by Funnull, the CDN began serving malicious JavaScript to selected visitors.
Story
Polyfill.io was a runtime dependency rather than a package installation. Websites embedded a script URL so older browsers could receive compatibility code on demand. That meant the service owner could change what users received without site operators changing their own source.
After the domain changed hands, researchers observed the CDN serving suspicious JavaScript to selected clients. The malicious behavior was dynamic, based on request context such as headers and device traits. Sansec and The Register described mobile-user redirection through fake analytics-style domains toward scam or gambling destinations.
The incident was not a compromise of the original open-source polyfill project so much as a hostile change in the delivery authority for a widely embedded CDN domain. Andrew Betts, the original project creator, had already warned that the domain transfer created supply-chain risk and advised site owners to remove the dependency.
The practical guidance was simple: stop loading scripts from polyfill.io. Cloudflare and Fastly offered safer mirrors for temporary compatibility, and Google warned advertisers whose sites still embedded impacted third-party library URLs. The count of affected websites was exposure, not a count of confirmed exploited visitors.
Affected Artifacts
- Observed
- 2024-02-01 to 2024-06-27
- Compromised Versions
- Unknown
- Fixed
- Not listed
- Evidence
- distribution: cdn.polyfill.io, distribution: polyfill.io, domain: cdn.polyfill.io, domain: polyfill.io , +3 more
- More than 100,000 websites were reported to embed polyfill.io code; this is exposure count, not a confirmed victim count.
Incident Context
- Motive
- Malicious
- Attribution
- Group
- Cause
- Domain Acquisition
- Transitive
- Yes
- Actor
- Third Party
- User Impact
- 100000
External References
- GitHub Advisory GHSA-6p56-6fvv-f2p2github.com
- Remove Polyfill.io code from your website immediatelytheregister.com
- Polyfill supply chain attack hits 100K+ sitessansec.io
Source record: oss/attacks/polyfill.io/meta.yaml