npm has invalidated all granular write-access tokens that bypass two-factor authentication (2FA). This platform-wide credential reset, announced on May 19, 2026, aims to disrupt the massive “Mini Shai-Hulud” supply chain campaign that has heavily targeted the JavaScript ecosystem.
Maintainers must now generate new tokens and update their continuous integration (CI) environments.
The registry took this drastic action after an automated burst of malicious activity on May 18. Attackers seized a maintainer account and pushed 639 malicious package versions across the @antv data-visualization ecosystem.
This incident is part of a larger, ongoing threat campaign attributed to the TeamPCP threat actor group. The campaign utilizes a worm that scans developer machines and CI/CD pipelines to harvest credentials.
npm Resets Risky Tokens
The latest @antv compromise follows a highly sophisticated attack on the TanStack ecosystem earlier in the month.
On May 11, attackers compromised 42 TanStack packages, including the popular @tanstack/react-router, which sees 12 million weekly downloads.
The TanStack breach demonstrated the severe capabilities of the Mini Shai-Hulud campaign.
Threat actors utilized a chained exploit involving a “Pwn Request” abuse of pull requests, GitHub Actions cache poisoning, and the runtime extraction of an OIDC token directly from the runner’s memory.
This attack successfully bypassed npm’s Trusted Publishing controls without relying on stolen granular access tokens. These supply chain attacks have widespread cascading effects across the tech industry.
For example, credentials stolen during the TanStack compromise allowed attackers to publish a malicious update to the Nx Console Visual Studio Code extension. This poisoned extension sat on the marketplace for just 18 minutes.
While the mass token reset cuts off credentials the worm has already harvested, it is a temporary roadblock rather than a permanent fix.
To provide a stronger defense against automated supply chain infections, npm officially rolled out “Staged Publishing” in public preview on May 20.
According to Socket research, automated package publishes from a CI workflow do not go live immediately.
Instead, they are routed to a staging area, where maintainers must manually approve the release via an MFA-verified step on the command line or the npm website.
This puts human review back into the automated publishing loop, ensuring that a worm using stolen credentials hits a hard stop at the staging gate.
Developers and security teams must take immediate action to secure their environments. Recommended mitigations include:
- Rotate all credentials in affected environments, including AWS, GCP, Azure, SSH keys, Kubernetes tokens, and AI tool configurations.
- Transition to OIDC Trusted Publishing to reduce reliance on long-lived static secrets.
- Enable the new staged publishing feature for high-impact namespaces by configuring trusted publisher settings to require manual MFA approval.
- Configure package managers to use a minimum release age setting, such as a one-day delay, to prevent automated tools from downloading freshly poisoned package versions.
Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google.