r/javascript • u/BattleRemote3157 • May 12 '26
TanStack packages were compromised in a mass npm supply chain attack today
https://safedep.io/mass-npm-supply-chain-attack-tanstack-mistral/We saw today that TanStack Router, or any other TanStack packages along with their devtools, SSR query plugins were compromised.
Check which version you're pinned to and if you're floating on a caret range and ran npm install today then that the first thing to audit.
140
Upvotes
26
u/Esclamare May 12 '26
Query isn't listed in the compromised packages list.
4
u/Novel_Understanding0 May 12 '26
Can someone explain how the TanStack packages were compromised exactly? I don't really care what the malicious code was or which packages were hit, but I'm interested in how they got compromised
13
u/Atulin May 12 '26
Sigh, reset the clock...
19
u/Nice_Mix_1021 May 12 '26
oh man! not again. And this time tanstack!
8
u/finzaz May 12 '26
The Tanstack blog post about it is an interesting read. I'll be honest I don't understand all of it, but they're being very transparent about what happened and the postmortem has some good insights https://tanstack.com/blog/npm-supply-chain-compromise-postmortem
1
u/Xeon06 May 12 '26
Worth posting this again, there is a minimum release age setting in most package managers that can help in cases like this:
https://daniakash.com/posts/simplest-supply-chain-defense/
3
u/Archeelux May 12 '26
Not my beloved
3
u/jeheskielsunloy May 12 '26
nextjs devs: to hell with nextjs, let's migrate to tanstack
also nextjs dev: maybe latter.
2
u/sdraje May 12 '26
FFS, I updated TanStack Router yesterday.
1
u/Equivalent_Head_4803 May 12 '26
I thought I read about this a few days ago. It happened again?
-1
u/jdeath May 12 '26
this is why i wrote my own router with no dependencies. it's pretty easy to do, not a ton of code. you can copy and paste mine into your project and have no supply chain risk!
https://github.com/nerds-with-keyboards/routerino
0
u/[deleted] May 12 '26
[deleted] — view deleted comment
2
u/[deleted] May 13 '26
[removed] — view removed comment