Massive NPM Supply-Chain Compromise
Earlier today, a major outbreak of malicious NPM packages was detected. This incident affects some of the most widely used libraries in the JavaScript ecosystem, with over 2 billion weekly downloads combined.
The compromise happened after a highly privileged maintainer’s account was hijacked, leading to malicious backdoored versions being published.
package.json
instead of using latest
, or caret (^
) ranges.Dangerous config:
Safer config:
npm ls ansi-regex
) to detect transitive usage. / Or view the packages in your Backslash Tenantpackage-lock.json
/ yarn.lock
) to prevent unintentional upgrades. sdfdsgdsgdsfgUseful links :
https://github.com/debug-js/debug/issues/1005#issuecomment-3266868187
https://news.ycombinator.com/item?id=45169657
https://bsky.app/profile/bad-at-computer.bsky.social
This incident is another reminder:
supply-chain security is fragile
Stay safe, stay patched, and always lock down your dependencies.