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 by device, hour, cookie and page context, so the bytes differed between requests.
  • 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, as actor infrastructure.

Appendix · Affected releases

  • More than 100,000 websites were reported to embed polyfill.io code; this is exposure count, not a confirmed victim count.
Payloads and stagesno published version
2024-06 sha256 2ccefa9d…33150c54 download unavailable
2024-06 sha256 6f705c71…8457df34 download unavailable

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. Remove Polyfill.io code from your website immediatelytheregister.com
  2. Polyfill supply chain attack hits 100K+ sitessansec.io

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