Security Alert for All HIVE Devs & Vibecoders: TanStack npm Supply-Chain Compromise
Hey fellow HIVE builders, vibecoders, and JS/TS developers!
If you maintain any frontend, full-stack, or CLI projects that depend on @tanstack/ packages (Router, Query, Table, etc.), stop and read this right now.
What Happened
On May 11, 2026 between 19:20–19:30 UTC, an attacker published 84 malicious versions across 42 @tanstack/ packages.
The malicious versions were live for only a few hours before being deprecated. Anyone who ran npm install, pnpm install, yarn install, or resolved @latest in that window is potentially compromised.
Severity: HIGH
The payload exfiltrates:
- AWS, GCP, Kubernetes & Vault credentials
- GitHub tokens
~/.npmrccontents- SSH keys
It also installs persistence and tries to spread further.
How to Detect If You're Affected
Search your node_modules for this suspicious entry in any package.json:
"optionalDependencies": {
"@tanstack/setup": "github:tanstack/router#79ac49ee..."
}
Or look for a large router_init.js (~2.3 MB) file. If found → treat the machine as compromised.
Immediate Actions
- Rotate all credentials immediately (cloud keys, GitHub tokens, SSH keys, npm tokens)
- Audit your cloud provider logs for the last 24 hours
- Pin to a known-good version and reinstall from a clean lockfile
- Full details + complete list: https://github.com/TanStack/router/issues/7383
Best Protection Going Forward
- Switch to pnpm (best supply-chain protections)
- Set minimum release age — this alone would have blocked the attack.
Add to your project .npmrc (and ideally ~/.npmrc globally):
# pnpm
minimum-release-age=10080 # 7 days (1440 = 24h)
# npm
min-release-age=7d
Recommended hardened .npmrc:
ignore-scripts=true
minimum-release-age=10080
strict-peer-dependencies=true
Why This Matters on HIVE
We build fast and often use latest packages. One bad install in CI/CD can leak keys.
Let's raise the bar:
- Always use lockfiles
- Pin your deps
- Enable
minimum-release-ageby default - Review GitHub Actions carefully
Stay safe and keep shipping! Drop a comment if you want a ready-to-use .npmrc template or scan script.
Leave Security Alert for All HIVE Devs & Vibecoders: TanStack npm Supply-Chain Compromise to:
Read more #devs posts
Best Posts From Crypt0gnome
We have not curated any of crypt0gnome's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Crypt0gnome
- I'm Powering Up to 100K HP This Year — Here's Why.
- Sabres Even It Up: Buffalo Steals Game 4 in Montreal, Series Heads Back to KeyBank
- Security Alert for All HIVE Devs & Vibecoders: TanStack npm Supply-Chain Compromise
- Holozing Alpha Vials
- How I'm Navigating the Wild World of Bitcoin Mining
- Ethereum's Big Leap: Navigating the ETF Waters and Beyond
- Casting Votes with Care 🤗 - A HIVE Community Member's Guide to Witness Voting
- Feeling Bullish...
- Hive Witness Setup Guide : HIAB Version 1.27.4 [ SELF HOSTED VERSION ]
- New Hive Witness - The Gear & The Goals 🔥