Skip to main content
MalwarePublished Updated

sort-btree (npm) · Malicious Code

Affects sort-btreeSource GCVE Database

0

Malicious package : remove sort-btree and rotate any secrets on hosts that installed it.

Data as of 10 Jul 2026, 10:08 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6063

What to do

Remove sort-btree 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
npmsort-btreeAffected
  • =2.1.6
  • =2.2.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package 'sort-btree' versions 2.1.6 and 2.2.0 contain malicious code. Analysis detected suspicious keywords related to child process execution and HTTP tokens in minified files, but no confirmed evidence of network exfiltration or attacker-controlled endpoints was found. Despite this, the package is considered fully compromising any system where it is installed or running. Immediate removal of the package and rotation of all secrets and keys from a separate, uncompromised system is advised.

References

Community reviews

Loading reviews…