26 Sept 2026

Software Supply Chain Attacks: Lessons from the 2026 npm Compromises

A widely-used npm package with over 100 million weekly downloads was hijacked in 2026 through a single compromised maintainer account. Here is what happened and what it means for any business relying on open-source software.

On March 31, 2026, Axios — a widely used npm package for making HTTP requests in JavaScript applications, with over 100 million weekly downloads — was compromised. It’s one of a growing number of 2026 incidents that illustrate a specific and uncomfortable reality: your application’s security depends on the security practices of maintainers you’ve never met, working on projects you may not even know you depend on.

What happened

According to security researchers and CISA’s own advisory, the Axios compromise wasn’t caused by a flaw in the package’s code. It was an account takeover — attackers gained control of a lead maintainer’s npm publishing account, reportedly changing its associated email to lock out the legitimate owner, and bypassed the project’s GitHub Actions CI/CD pipeline protections to publish a malicious version. CISA published an advisory on the incident on April 20, 2026, and the compromise has been attributed to a North Korean threat actor.

This wasn’t an isolated case. March 2026 alone saw five major software supply chain attacks, including compromises affecting Trivy (a widely used vulnerability scanner), KICS (a static analysis tool), LiteLLM (an interface for AI models), and Telnyx (a real-time communications library) — attributed to a group tracked as TeamPCP. Later in the year, a separate campaign known as ChainDrop spread through hundreds of npm packages in August 2026, specifically targeting developer and cloud credentials.

The Shai-Hulud shift: from nuisance to self-propagating

Perhaps the most structurally important development in this space is what security researchers have called the Shai-Hulud worm — a self-replicating malware pattern that automates the compromise and redistribution of malicious npm packages. Earlier generations of supply chain attacks were largely manual: an attacker compromises one package, and the damage is limited to what that package touches. A self-propagating worm changes the economics entirely — one successful compromise can automatically spread to other packages the same maintainer or infrastructure touches, without further attacker effort. Industry researchers have described this as marking the end of the “nuisance” era of npm attacks and the start of a genuinely high-consequence one.

Why package managers alone don’t protect you

It’s worth being direct about a common misconception: using a reputable package manager doesn’t mean the packages you install are vetted the way, say, a mobile app store review process might vet an app. npm, PyPI, and similar registries are largely open publishing platforms — anyone with a maintainer account can push a new version, and that version becomes immediately available to every downstream project with a matching or unpinned version range. The registry infrastructure itself wasn’t what failed in the Axios case; a single human account was.

Security recommendations

  • Pin dependency versions rather than using open ranges, so a compromised new release doesn’t get pulled into your build automatically the next time you install or update.
  • Review your dependency tree periodically, including transitive (indirect) dependencies — the packages your packages depend on, which is where a lot of real exposure hides unnoticed.
  • Use lockfiles and verify them in CI, so an unexpected change to a dependency’s resolved version is visible in a code review rather than silent.
  • Monitor official advisories — CISA, GitHub’s security advisories, and package-specific security mailing lists — for the specific packages your application actually depends on.
  • Apply least-privilege to your own CI/CD pipeline and publishing credentials if you maintain packages yourself, including hardware-backed or short-lived tokens rather than long-lived static credentials, which is exactly the kind of control that would have blunted the Axios account-takeover pattern.
  • Include supply chain review in code review and pre-launch security testing, not just a one-time dependency audit — this is precisely the gap OWASP’s new Software Supply Chain Failures category in the 2025 Top 10 was introduced to address.

Key takeaways

The Axios compromise and the broader wave of 2026 npm attacks share a common lesson: modern software supply chain risk is often a human and process failure — a compromised maintainer account, a bypassed CI/CD safeguard — rather than a technical flaw in the code itself. With self-propagating patterns like Shai-Hulud emerging, the practical response for any business building software isn’t to avoid open-source dependencies (that’s not realistic), but to pin versions, monitor advisories, and build supply chain review into how software actually gets shipped.

Shahid Security’s Custom Software Development service includes secure coding practices and dependency review throughout the build, plus a pre-launch penetration test — not a one-time check that misses what changes after launch.

Building or maintaining software with open-source dependencies you haven’t reviewed recently? Book a free consultation to talk through a review.


Sources: CISA — Supply Chain Compromise Impacts Axios Node Package Manager, industry threat research (Huntress, Zscaler ThreatLabz, Palo Alto Networks Unit 42), April–August 2026.

FAQ

If we do not publish open-source packages ourselves, are we still at risk from these attacks?

Yes. The risk applies to anyone who consumes open-source packages, which in practice means almost every modern software project. A compromised package you depend on — even indirectly, several layers deep in your dependency tree — can affect your application without you ever having published anything yourself.

How was a package with 100 million weekly downloads compromised so easily?

Reported analysis attributes the compromise to an account takeover targeting a lead maintainer, rather than a flaw in the package's own code. Attackers bypassed the project's CI/CD pipeline protections by compromising the maintainer's npm account and changing its associated email — a human and process weakness, not a code vulnerability.

What is the Shai-Hulud worm mentioned in supply chain security coverage?

It is a self-replicating malware pattern observed in 2025 that automated the compromise and redistribution of malicious npm packages, marking a shift from isolated, manually-executed supply chain attacks toward automated, self-propagating ones — a meaningfully more dangerous category.

Shahid Iqbal

Written by Shahid Iqbal

Founder & Cybersecurity Consultant, Shahid Security