# GitHub (npm registry) (2025): what the sources say about the cloud incident

Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.

GitHub (npm registry) disclosed the incident on 22 Sep 2025. What was exposed, as the sources state it: The post says 500+ compromised packages were removed from the npm registry and that the worm could steal multiple types of secrets, not just npm tokens.

- **Disclosed:** 22 Sep 2025
- **Incident window:** notified September 14, 2025, as the post says
- **Cloud or provider:** GitHub
- **What was exposed:** The post says 500+ compromised packages were removed from the npm registry and that the worm could steal multiple types of secrets, not just npm tokens.
- **How access was gained:** GitHub stated that a self-replicating worm spread through compromised maintainer accounts by injecting malicious post-install scripts into popular packages.
- **Access path:** [Stolen user credentials and session tokens](/access-paths/stolen-user-credentials/); also [Leaked access keys and secrets](/access-paths/leaked-access-key/)
- **Kind of control that addresses it:** require phishing-resistant multi-factor authentication and short-lived scoped tokens for package publishing and disable install scripts by default

## In the words of the source

“a self-replicating worm that infiltrated the npm ecosystem via compromised maintainer accounts by injecting malicious post-install scripts into popular JavaScript packages.” (provider post mortem, [Our plan for a more secure npm supply chain](https://github.blog/security/supply-chain-security/our-plan-for-a-more-secure-npm-supply-chain/))

## Primary sources

- provider post mortem: [Our plan for a more secure npm supply chain](https://github.blog/security/supply-chain-security/our-plan-for-a-more-secure-npm-supply-chain/), dated 22 Sep 2025

If a field is wrong or a newer primary source exists, [write to the editor](mailto:editor@cloudsecuritybreaches.com?subject=Correction%3A%20GitHub%20(npm%20registry)%20(github-npm-shai-hulud-2025)) with the entry name in the subject.

## Related pages

- [Cloudflare 2025: salesforce drift](/incidents/cloudflare-salesforce-drift-2025/)
- [Nx (Nrwl) 2025: github actions](/incidents/nx-github-actions-2025/)
- [Salesloft (Drift) 2025: leaked access keys and secrets](/incidents/salesloft-drift-2025/)

## Sources

- Our plan for a more secure npm supply chain: https://github.blog/security/supply-chain-security/our-plan-for-a-more-secure-npm-supply-chain/ (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudsecuritybreaches.com/incidents/github-npm-shai-hulud-2025/
