@osmura/treeify (npm) · Malicious Code
Affects @osmura/treeifySource GCVE Database
Malicious package : remove @osmura/treeify and rotate any secrets on hosts that installed it.
Data as of 9 Jul 2026, 09:55 UTC
Malicious package
Published to npm · OSV MAL-2026-6542
What to do
Remove @osmura/treeify 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@osmura/treeify | 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 npm package @osmura/treeify versions 1.1.0, 1.1.2, and 1.1.3 contains malicious code appended to the legitimate treeify library code. This injected code executes upon requiring the package, spawning a detached Node.js process that fetches and decrypts attacker-controlled payloads from remote servers, then executes them on the victim's machine. The malicious code uses obfuscation techniques and fallback command-and-control URLs to ensure persistence and stealth. This results in arbitrary code execution on any system importing this package version.