Archived link

The polyfill.js is a popular open source library to support older browsers. 100K+ sites embed it using the cdn.polyfill.io domain. Notable users are JSTOR, Intuit and World Economic Forum. However, in February this year, a Chinese company bought the domain and the Github account. Since then, this domain was caught injecting malware on mobile devices via any site that embeds cdn.polyfill.io. Any complaints were quickly removed (archive here) from the Github repository.

    • @Warl0k3
      link
      English
      65
      edit-2
      3 months ago

      I don’t think we have to choose. “Maintain your websites so you don’t get taken advantage of” and “Here’s an example of a major-world-power-affiliated group exploting that thing you didn’t do” are both pretty important stories.

    • @breakingcups
      link
      English
      483 months ago

      I mean, both are true? It’s not a manipulative headline in my opinion.

    • @[email protected]
      link
      fedilink
      English
      323 months ago

      The malware thing still deserves a headline. They just argue it’s stupid so many even have to use the library to begin with.

      • @[email protected]
        link
        fedilink
        English
        13 months ago

        Have to use? No one has to use any library. It’s convenience, and in this case it’s literally so they don’t have to write code for older browser versions.

        The issue here isn’t that anyone has to use it, it’s the way it was used that is the problem. Directly linking to the current version of the code hosted by a third party instead of hosting a copy yourself.