Skip to main content
MalwarePublished

envfile-sync (npm) · Malicious Code

Affects envfile-syncSource GCVE Database

0

Malicious package : remove envfile-sync and rotate any secrets on hosts that installed it.

Data as of 29 Jun 2026, 22:34 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6589

What to do

Remove envfile-sync 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
npmenvfile-syncAffected
  • =1.0.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 'envfile-sync' (version 1.0.0) is a malicious typosquatting package branded as 'envsync' that contains hidden native Windows executable code. The JavaScript API is non-functional and serves as a stub, while the actual payload is a 2.9MB undocumented native Windows PE binary loaded and executed via process.dlopen on module import. This native code execution occurs with the privileges of the host process, posing a significant security risk to any Windows user importing this package. The package documentation falsely claims no binaries exist, misleading auditors and users.

References

Community reviews

Loading reviews…