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.

  • corsicanguppy@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 months ago

    Running npm install would give me a mini heart attack

    It should; but more because it installs things right off the net with no validation. Consistency of code product is not the only thing you’re tossing.

    • LordCrom@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      5 months ago

      How else would you get LPAD ? Expect me to write 2 lines of code when I could just import a 100 Mb library to do it for me?