this post was submitted on 26 Jun 2024
902 points (98.9% liked)

Technology

59197 readers
3533 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 53 points 4 months ago (3 children)

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.

[–] [email protected] 30 points 4 months ago (2 children)

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.

[–] [email protected] 16 points 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?

[–] [email protected] 6 points 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)

[–] [email protected] 7 points 4 months ago

After the first 100, the other 300 kinda don't matter.

[–] [email protected] 6 points 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.