npm Ecosystem Hit by Major Supply Chain Compromise Targeting Keyv, SlowMist Warns
Key Takeaways
- •More than 2,000 malicious package versions were published targeting Keyv, a key-value storage abstraction layer with approximately 127 million weekly downloads on npm.
- •Keyv supports multiple storage backends including Redis and PostgreSQL, making it a critical dependency for numerous applications across the crypto and broader technology sectors.
- •The attack techniques observed in this incident resemble those used in previous npm supply chain compromises such as the 2018 event-stream and 2021 ua-parser-js incidents.
- •Security teams are advised to audit all npm dependencies, verify package integrity, update to known-safe versions, and monitor systems for any signs of compromise.
- •The incident highlights the importance of dependency pinning via lockfiles, integrity verification, and automated vulnerability scanning using tools such as npm audit.

A significant npm supply chain compromise has been reported, impacting the Keyv ecosystem, according to a security alert from @SlowMist_Team. Attackers have published over 2,000 malicious package versions, raising alarms given Keyv's extensive adoption, with approximately 127 million weekly downloads.
Scope of the Compromise
The npm ecosystem is confronting a serious security threat, as detailed by SlowMist. The compromise involves more than 2,000 malicious package versions targeting Keyv, a widely used key-value storage abstraction layer. Keyv supports multiple storage backends, including Redis and PostgreSQL, making it a critical dependency for numerous applications across the crypto and broader technology sectors.
Given Keyv's broad integration, the implications for downstream applications are substantial. The attack techniques observed in this incident resemble those used in previous npm supply chain attacks, suggesting a sophisticated and coordinated effort by the perpetrators. Notable past incidents—such as the 2018 event-stream compromise and the 2021 ua-parser-js malware injection—demonstrated how a single compromised or hijacked package can cascade through thousands of dependent projects, as npm's deep transitive dependency chains allow a single malicious layer to reach applications several steps removed from the original package.
Keyv's Role and Exposure
Keyv is a popular key-value solution that provides a simple, unified interface for multiple backends. Its widespread use means that the malicious packages could potentially affect a large number of projects that depend on it for data storage operations.
The npm registry, maintained by GitHub following its 2020 acquisition, handles a significant volume of software dependencies for web application and service development and plays a central role in software supply chain security. Incidents of this nature impact cybersecurity standards across the industry, reinforcing the importance of dependency pinning via lockfiles, integrity verification, and automated vulnerability scanning through tools such as npm audit.
Recommended Actions
Security teams are urged to take the following steps:
- Immediately review and audit all npm package dependencies, particularly those related to Keyv.
- Update to known-safe package versions after verifying their integrity.
- Monitor systems for any signs of compromise that may have resulted from the malicious packages.
- Stay alert for further updates from security researchers and the npm team.
Developers should remain vigilant regarding software dependencies and watch for any new vulnerabilities that may emerge as the situation develops. Increased audits and adoption of more secure package management practices are expected as the community responds to mitigate risks.