Skip to main content
MalwarePublished Updated

@torbeck/heap (npm) · Malicious Code

Affects @torbeck/heapSource GCVE Database

0

Malicious package : remove @torbeck/heap and rotate any secrets on hosts that installed it.

Data as of 14 Aug 2026, 19:52 UTC

Classification

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

ProductAffectedFixed in
npm@torbeck/heapAffected
  • =4.3.14
  • =4.3.11
  • =4.3.10
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

Community reviews

Loading reviews…