Skip to main content
MalwarePublished Updated

zod-to-js (npm) · Malicious Code

Affects zod-to-jsSource GCVE Database

0

Malicious package : remove zod-to-js and rotate any secrets on hosts that installed it.

Data as of 25 Nov 2026, 11:31 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-4740

What to do

Remove zod-to-js 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
npmzod-to-jsAffected
  • =13.4.4
  • =13.4.3
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 'zod-to-js' is a malicious package that impersonates the legitimate 'pino' logging library by including its source files and misleading metadata. When imported, it attempts to require a secondary package 'modustack'; if unavailable, it silently installs 'modustack' from npm without version pinning or integrity checks, then executes code from it. This behavior enables attacker-controlled code execution on the machine installing or running the package. Additional code in the package suggests evasion and staging capabilities. Any system with this package installed should be considered fully compromised.

References

Community reviews

Loading reviews…