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.

  • ShaunaTheDead@fedia.io
    link
    fedilink
    arrow-up
    53
    ·
    4 months ago

    One place I worked at recently was still using Node version 8. Running npm install would give me a mini heart attack… Like 400+ critical vulnerabilities, it was several thousand vulnerabilities all around.

    • corsicanguppy@lemmy.ca
      link
      fedilink
      English
      arrow-up
      31
      arrow-down
      1
      ·
      4 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
        16
        ·
        4 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?

      • AA5B@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        ·
        4 months ago

        You need to get up to date from three years ago. NodeJS 16.20, or thereabouts, enabled dependency auditing by default.

        I’m still fighting my engineers go get current enough to use this (but we do have a proxy artifact server that also attempts to keep downloads clean, and a dependency scanner)

    • unalivejoy@lemm.ee
      link
      fedilink
      English
      arrow-up
      6
      ·
      4 months ago

      If you’re on RHEL 8+, you can install the latest version of node with dnf.

      dnf install nodejs will likely install node 8 :(. Use dnf module install nodejs:20 to install the latest version.