Navigate Select ESC Close

This could have destroyed the entire web (the next one probably will)

2025-09-11 Science & Technology
34.1k
1.1k
133
Theo - t3․gg
Theo - t3․gg
539.0k subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

npm got hacked. And while the outcome wasn't too bad, it could have been so much worse... Thank you Daytona for sponsoring! Check them out at: https://soydev.link/daytona (make sure to use THEO_100 for $100 in free credits) SOURCES https://jdstaerk.substack.com/p/we-just-found-malicious-code-in-the https://www.youtube.com/watch?v=OSNObKP-tB4 https://x.com/bunjavascript/status/1965488414754832858 https://x.com/PatrickAlphaC/status/1955657679214608776 https://x.com/jamonholmgren/status/1965273941456683456?t=moslxCRlbP9lL9t_3QAszQ https://x.com/jarredsumner/status/1965489392795172878 Want to sponsor a video? Learn more here: https://soydev.link/sponsor-me Check out my Twitch, Twitter, Discord more at https://t3.gg S/O Ph4se0n3 for the awesome edit 🙏

Top Comments (10)

@matthieumordrel9684 2025-09-11

Hi Theo, I'd like to correct you on a point that is close to me. You seem to think all the devs watching this channel are great devs but as a terrible dev I'd like to fiercly oppose this framing. Could you please amend your statements going forwards so that devs that ship bloated and vulnerable code like myself feel more part of the community ? Thank you sincerely

209 7 replies
@heartoftherobot 2025-09-11

Can't get enough of your content dude, great great stuff especially the content on startup investing.

43 2 replies
@devonlockes2278 2025-09-11

"AI is incredible at writing annoying code." is my favourite quote from this, since it can be true in more than one way.

18 1 replies
@adityaanuragi6916 2025-09-11

This has been npm hacked in 100 seconds

17 2 replies
@kisaragi-hiu 2025-09-11

We got lucky again this time because the payload is so laughably specific (hooking onto the fetch in the same context and rewriting crypto transactions done through the fetch in the same context to go to the attacker's address instead). Given that the payload actually reached libraries used by terminal apps, _running in an unsandboxed environment_, this could've easily been a large scale ransomware attack.

8
@kettanaito 2025-09-11

Now imagine if someone took those "utility packages" and published a breaking change that warns the consumer they don't need this package and suggests how to use built-in APIs to achieve the same. We are discussing what is effectively an educational problem. Unless we educate developers, packages like "is-even" will exist forever.

4
@Sim-i9d 2025-09-11

A code preview right at the top with a copy button on NPM for any package that is small enough could also be good

3
@TheCarribbeanJackSparrow 2025-09-11

I really like the sense of humor you have, good job as always man.

2
@AlucardNoir 2025-09-11

I didn't know Prime Theo gave Emo Theo a medal! Good job broken arm Emo Theo!

2
@lxn7404 2025-09-12

In all the videos that were made on this topic, this is the most useful

1

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot