> ## Content Index
> Fetch the complete content index at: https://axelespinosablog.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Why you keep attacking npm?
- URL: https://axelespinosablog.com/why-you-keep-attacking-npm/
- Published: 2026-05-16T05:44:25.000Z
- Updated: 2026-05-16T05:44:25.000Z
- Author: Axel Espinosa

Honestly, it's exhausting to wake up and find out there's yet another attack on the npm ecosystem.

Socket shared [via social media](https://x.com/SocketSecurity/status/2054048025081737446?ref=axelespinosablog.com) that they identified compromised packages — some of them were TanStack.

Why are attackers so obsessed with npm? Seriously, can you stop already?

If you still use npm and haven't disabled post-scripts, you're in serious danger.

Go and disable that right now.

Start using pnpm. Version 11 disables this functionality by default. Of course, some packages still need post-scripts, and in those cases you should manually review and authorize them.

Also, there are tools you can use before installing a package: Socket's [sfw](https://docs.socket.dev/docs/socket-firewall-free?ref=axelespinosablog.com) and [npq](https://github.com/lirantal/npq?ref=axelespinosablog.com).

Hope this helps.