Open Source · · 147 days

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.

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.

Notes

  • No file hash is recorded for the injected script, and none is expected. Sansec describes the payload as served conditionally, varying by device, hour, cookie, and whether an admin or an analytics script was present, so the bytes differed between requests and no single digest identifies what was distributed. Absence here reflects the delivery mechanism rather than incomplete research.
  • Sansec attributed bootcdn.net, bootcss.com, staticfile.net, staticfile.org, unionadjs.com, xhsbpza.com, union.macoms.la, and newcrbpc.com to the same operator, active since at least June 2023. They are recorded as actor infrastructure, not as distribution surfaces for this incident.

Appendix · Affected releases

  • More than 100,000 websites were reported to embed polyfill.io code; this is exposure count, not a confirmed victim count.

Indicators

  • domaincdn.polyfill.io
  • domainkuurza.com
  • domainwww.googie-anaiytics.com
  • domainbootcdn.net
  • domainbootcss.com
  • domainstaticfile.net
  • domainstaticfile.org
  • domainunionadjs.com
  • domainxhsbpza.com
  • domainunion.macoms.la
  • domainnewcrbpc.com
  • cookieadmin_id
  • cookieadminlevels

References

  1. GitHub Advisory GHSA-6p56-6fvv-f2p2github.com
  2. Remove Polyfill.io code from your website immediatelytheregister.com
  3. Polyfill supply chain attack hits 100K+ sitessansec.io

Source record: oss/attacks/polyfill.io/meta.yaml