Back to Feed
Supply ChainAug 4, 2026

Popular npm Packages in the keyv and Cacheable Namespaces Compromised in Active Supply Chain Attack

Ten npm packages in keyv and cacheable namespaces compromised with malicious preinstall hooks stealing credentials and

On August 4, 2026, Socket's Threat Research Team discovered an active supply chain compromise affecting at least ten npm packages maintained by Jaredwray, including the widely-used keyv and cacheable libraries. The malicious versions include a preinstall hook that downloads a Bun runtime, executes an obfuscated second-stage payload that harvests cloud/CI credentials, and self-propagates by trojanizing other packages accessible through stolen npm tokens. The compromise remains active with malicious versions still live on npm, affecting tens of millions of weekly downloads through deep transitive dependencies.

AI summary of the linked source. Not reviewed by an editor. How this works

Vendor Watch

Run keyv?

Get an email when a new story names keyv, usually within the hour.

Free. Your list stays private and never appears in a subject line. One click stops it. How Vendor Watch worksPrivacy

The lesson from this incident

Full lesson

Attackers compromised at least ten widely-used npm packages by injecting a preinstall hook that silently downloads a runtime and executes an obfuscated payload to harvest cloud and CI/CD credentials. The stolen npm tokens were then used to trojanize additional packages, creating a self-propagating attack that amplifies impact across the entire dependency graph. With tens of millions of weekly downloads through transitive dependencies, even developers who never directly install these packages are at risk. This incident highlights the critical danger of trusting third-party package maintainer accounts without additional verification — a single compromised account can cascade into widespread infrastructure exposure.

What helps against this

How we list vendors
Get Socket news in your morning briefingA few minutes of audio on the vendors you pick, every morning. Free to try.

Indicators of Compromise

Addresses and file hashes are copied from the publisher's page by pattern matching. Names are picked by AI. On stories from before 17 November 2026, some addresses and hashes were picked by AI too. Not reviewed by an editor. How this works

  • malware: Math_Symbol.js
  • malware: setup.mjs
  • hash_sha256: fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb
  • hash_sha256: 9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc

Entities

keyv (product)cacheable (product)cacheable-request (product)flat-cache (product)file-entry-cache (product)Bun (product)