Malicious npm package js-tree-integer — full host compromise on install; no safe version exists
Severity: critical · Patch status: no-fix-needed · Since 2026-11-30
GitHub's malware advisory database (GHSA-6p5h-693c-vxp8, published 2026-11-30) flags the npm package js-tree-integer as embedded malicious code (CWE-506). Every version (= 0) is affected and no patched version exists. GitHub's guidance states any computer with the package installed or running should be considered fully compromised, with full control potentially handed to an outside entity, so removal of the package alone cannot be assumed to remove all malicious software. The package sees roughly 894 downloads per month, so a limited but real set of developers and build environments may be affected. There is no fix; remediation is removal plus host-level incident response including secret rotation from a clean machine.
What to do
- Treat any machine where js-tree-integer was installed or executed as fully compromised; isolate and forensically review it
- Rotate all secrets, keys, tokens and credentials stored on or accessible from affected machines, from a clean computer
- Remove the package from all projects, lockfiles and CI caches; block it in dependency policy
- Rebuild affected systems from trusted images where compromise is suspected
- Audit npm dependency trees and enable malware/dependency scanning to catch similar packages
Sources
All live incidents on Threat Watch