@torbeck/heap (npm) · Malicious Code
Affects @torbeck/heapSource GCVE Database
Malicious package : remove @torbeck/heap and rotate any secrets on hosts that installed it.
Data as of 14 Aug 2026, 19:52 UTC
Malicious package
Published to npm · OSV MAL-2026-10405
What to do
Remove @torbeck/heap from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@torbeck/heap | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The @torbeck/heap npm package is a malicious typosquatting package impersonating the legitimate @datastructures-js/heap library. It contains heavily obfuscated code that executes at require-time to download and execute a hidden binary payload on the host system. This payload is platform-specific and runs detached, providing remote code execution (RCE). The package does not verify the downloaded binary's integrity or authenticity, making it a severe security risk. Any system with this package installed should be considered fully compromised.
References
- npmjs.com/package/@torbeck/heap/v/4.3.14 (opens in a new tab)
- npmjs.com/package/@torbeck/heap/v/4.3.11 (opens in a new tab)
- npmjs.com/package/@torbeck/heap/v/4.3.10 (opens in a new tab)
- github.com/advisories/GHSA-8vr7-5wqc-fjwv (opens in a new tab)
- npmjs.com/package/@torbeck/heap/v/4.3.8 (opens in a new tab)
- npmjs.com/package/@torbeck/heap/v/4.3.12 (opens in a new tab)