B

Verdict

npm is hard to avoid and cheap to use. Public packages are free and unlimited, private packages cost $7 a month for a user, and teams pay $7 per user a month. The grade reflects security rather than price or reach. Self-replicating worms spread through stolen publish tokens in September and November 2025, and a "Mini Shai-Hulud" variant shipped in a package with valid provenance in October 2026. GitHub's response has been real and steady: classic tokens are gone, write tokens default to 2FA and a 90-day maximum lifetime, trusted publishing and staged publishing are maturing, and direct publishing with granular tokens is due to end in January 2027. But the changes have landed in pieces, one of them differs from what was first promised, and the strongest new defence, the package firewall, is limited to Enterprise Cloud. Publish with trusted publishing or staged releases, and treat every install as code execution.

Last reviewed: Nov 2026

HighClarity*
MediumOpenness†
MediumControls
HighLifecycle fit

Rubric (shared with our GitHub and Docker reviews): Clarity covers whether the product and its pricing are easy to understand. Openness covers source access, self-hosting, licensing and portability. Controls covers SSO, roles, policy, secrets and audit. Lifecycle fit covers how it plugs into plan, build, ship and operate. *Three flat-priced plans. †The package format and protocol are widely implemented by other registries and proxies, but the public registry itself is a single service run by GitHub. Controls are rated Medium because the token rules have changed several times in a year and the firewall is Enterprise-only.

How we reviewed Researched from npm's product page and documentation, GitHub's npm security plan and changelog posts, GitHub's billing docs, a GitHub security advisory, a vendor postmortem, and our existing GitHub and Docker reviews. Sourced figures only: we didn't publish packages or test the firewall, and we label vendor claims as claims. Prices are US list prices as of Nov 1, 2026; times are Pacific.

At a glance

npm registry fact sheet · as of Nov 1, 2026
OwnerGitHub (Microsoft), which acquired npm, Inc. in 2020.3
What it isThe public registry for JavaScript packages, plus private packages, organizations and the npm CLI that ships with Node.js.4
PriceFree (unlimited public packages); Pro $7 a month (unlimited private packages); Teams $7 per user a month.4
Publishing authGranular tokens only (classic tokens revoked Nov 19, 2025); write tokens enforce 2FA by default and are capped at 90 days; trusted publishing via OIDC; staged publishing.56
Next dated changeDirect publishing with a granular token is due to be removed in January 2027; stage-only tokens plus promotion replace it.6

What it is

npm is three things: the public registry at registry.npmjs.org, the npmjs.com website for accounts, organizations and package pages, and the npm command-line client. Anyone can publish a public package for free. Paid plans add private packages and team permissions.4 Most other JavaScript tools (pnpm, Yarn, Bun) and most corporate proxies read from the same registry, so its security posture affects nearly every JavaScript build.

The AI and agent angle

Coding agents and CI runners install dependencies with no human watching, which makes install-time malware especially dangerous. GitHub says this is why it built the package firewall announced on Oct 20, an install-time policy gate that inspects metadata requests and downloads for signs of malicious activity. It's in public preview for GitHub Enterprise Cloud customers, supports npm only so far, and is free during the preview.7 Staged publishing, where a maintainer must approve a version before it can be installed, is also aimed at keeping automated pipelines from shipping unreviewed releases.8

Pricing

npm plans · as of Nov 1, 2026
PlanPriceWhat you get
Free$0Unlimited public packages
Pro$7 a monthUnlimited private packages for one user
Teams$7 per user a monthOrganizations with team-based permissions for private packages

Source: npm products page.4 Prices exclude tax. The package firewall is free during its preview, and GitHub says usage will be metered at general availability.7

Business

npm has no separate financials: it is part of GitHub, which Microsoft reports inside its own results. We found no figure for npm revenue, staffing or paid-plan subscribers in an official source. For buyers, the practical points are that the registry is free to read, that GitHub sets the security rules, and that changes arrive through GitHub's changelog.

Reliability and security record

  • Sep 2025, Shai-Hulud. A self-replicating worm spread through stolen maintainer tokens. GitHub said it removed more than 500 compromised packages and blocked uploads containing the malware's indicators. On Sep 22, 2025, it published a plan to allow only 2FA-protected local publishing, granular tokens with a seven-day lifetime, and trusted publishing, and to deprecate classic tokens and TOTP 2FA.9
  • Nov 5, 2025, token changes. GitHub stopped new classic tokens, made write tokens enforce 2FA by default, and capped write tokens at a 90-day maximum lifetime, with existing tokens cut to expire on Feb 3, 2026. Classic tokens were revoked on Nov 19, 2025.5 Conflict flagged: the September plan said seven days, but the November implementation set 90 days. We report both and found no later post reconciling them.95
  • Nov 23–24, 2025, Shai-Hulud 2.0. The second wave hit, among others, PostHog's JavaScript SDKs. PostHog says malicious versions were live from 8:11 PM PT on Nov 23 until about 1:30 AM PT on Nov 24, after a malicious pull request workflow stole a bot's token.10 See our PostHog review.
  • Aug 2026. Tokens with Bypass 2FA can no longer change email, passwords, 2FA, tokens, maintainers or org settings without an interactive 2FA check.6
  • Oct 7, 2026 (PT), "Mini Shai-Hulud". A critical GitHub advisory says tensorlake@0.5.144 was live from about 6:12 PM to 7:54 PM PT and carried valid npm provenance. Its preinstall script stole credentials, and a dead-man's switch would delete the home directory if the stolen GitHub token was revoked.11 The lesson: provenance proves where a package was built, not that the build was safe.

Strengths, weaknesses and risks

Strengths

  • Free public publishing and cheap private plans.4
  • Granular, scoped, expiring tokens; trusted publishing; staged publishing with maintainer approval.68
  • Steady, public hardening through the GitHub changelog.512

Weaknesses and risks

  • Worms keep landing, including one with valid provenance.11
  • Install scripts still run arbitrary code by default.11
  • Moving rules. Token policy has changed several times; automation needs reworking again before January 2027.6
  • Best defence is Enterprise-only (the package firewall).7

Who it's for

  • Anyone publishing open-source JavaScript: it's where users look first.
  • Small teams wanting private packages for $7 a user.

Think twice if: you need private packages tied to repository permissions, multiple package formats in one place, or install-time policy without an Enterprise contract. A proxy registry or GitHub Packages may suit better.

Alternatives

npm and two alternatives we've reviewed · figures as cited
OptionBest forHeadline priceOur grade
npm registryPublic JavaScript packagesFree public; $7 a month private4B
GitHub PackagesPrivate packages tied to repo permissions, many formatsPublic free; private 500 MB storage and 1 GB transfer on Free, 2 GB / 10 GB on Pro and Team, 50 GB / 100 GB on Enterprise Cloud13A−
Docker HubContainer images, not npm packagesAnonymous pulls 100 per 6 hours per IP; 200 signed in on Personal14B+

GitHub Packages' allowances are shared with Actions artifacts; its Container registry is currently free.13 Docker figures are from our Docker review, accessed Oct 18, 2026.

npm vs. GitHub Packages

GitHub Packages hosts npm packages too, alongside containers and other formats, with permissions inherited from repositories and free downloads from Actions using GITHUB_TOKEN.13 Use it for internal packages; publish open-source packages to npm, where users look. Our GitHub review covers the wider platform.

npm vs. Docker Hub

They don't compete directly, but many teams ship the same app both ways. Docker Hub has had its own credential problem: under CVE-2026-105445, converting a personal account to an organization moved its access tokens to the new owner without rotating them. Our Docker review has the details.15

Fresh in the last 60 days

  • Oct 2: npm stage publish can now create new packages, including with stage-only tokens; the first version waits for a maintainer to promote it.8
  • Oct 2: Unvalidated trusted-publishing configurations now expire 48 hours after creation, and npm rejects trusted-publishing tokens from GitHub Actions issue_comment events.12
  • Oct 7 (PT): tensorlake@0.5.144 "Mini Shai-Hulud" compromise.11
  • Oct 20: GitHub package firewall enters public preview for Enterprise Cloud, npm only.7

AI software lifecycle fit

  • Build. Dependency source for nearly every JavaScript and TypeScript build.
  • Ship. Trusted publishing from CI with provenance; staged releases for human approval.68
  • Secure. Granular tokens, 2FA, and the Enterprise package firewall.67

Bottom line

You'll use npm whatever its grade. Make it safer on your side: publish only through trusted publishing or staged releases, move automation to stage-only tokens before January 2027, pin and review dependency updates, disable install scripts where you can, and don't let agents install packages with your real credentials in reach.

What we couldn't verify

  • Registry size, weekly downloads and paid subscriber counts; we found no current official figures.
  • Whether the seven-day token lifetime from the September 2025 plan is still planned; the official changelog sets 90 days.
  • The exact January 2027 date for removing direct publishing, and firewall pricing at general availability.
  • How many packages the October 2026 "Mini Shai-Hulud" wave reached beyond the advisory we cite.

Sources

  1. Microsoft Learn — Use Grok models in Azure AI Foundry — accessed Nov 1, 2026; official
  2. Space Exploration Technologies Corp. — Registration statement (prospectus), competition section — accessed Nov 1, 2026; filed (SEC)
  3. GitHub blog — npm is joining GitHub (Mar 16, 2020) — accessed Nov 1, 2026
  4. npm — Products and pricing — accessed Nov 1, 2026; prices as of access date
  5. GitHub Changelog — npm security update: classic token creation disabled and granular token changes (Nov 5, 2025) — accessed Nov 1, 2026; official
  6. npm Docs — About access tokens (last edited Sep 10, 2026) — accessed Nov 1, 2026; official
  7. GitHub Changelog — GitHub package firewall in public preview (Oct 20, 2026) — accessed Nov 1, 2026; official
  8. GitHub Changelog — npm staged publishing now supports creating new packages (Oct 2, 2026) — accessed Nov 1, 2026; official
  9. GitHub blog — Our plan for a more secure npm supply chain (Sep 22, 2025) — accessed Nov 1, 2026; official
  10. PostHog — Shai-Hulud attack post-mortem (Nov 26, 2025) — accessed Nov 1, 2026; times converted from UTC to PT
  11. GitHub Security Advisory GHSA-8g63-53c9-65j2 — tensorlake 0.5.144 compromise (published Oct 8, 2026 UTC) — accessed Nov 1, 2026; times converted from UTC to PT
  12. GitHub Changelog — Unvalidated npm trusted publishing configurations now expire (Oct 2, 2026) — accessed Nov 1, 2026; official
  13. GitHub Docs — GitHub Packages billing — accessed Nov 1, 2026; official
  14. Docker Docs — Docker Hub pull usage and limits (as cited in our Docker review) — accessed Oct 18, 2026; official
  15. NVD — CVE-2026-105445 (Docker Hub PAT reassignment) (as cited in our Docker review) — accessed Oct 18, 2026; government database

← Platforms Visit npm