Skip to main content
MalwarePublished

env-stream (npm) · Malicious Code

Affects env-streamSource GCVE Database

0

Malicious package : remove env-stream and rotate any secrets on hosts that installed it.

Data as of 13 Jul 2026, 09:22 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10412

What to do

Remove env-stream 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
npmenv-streamAffected
  • =1.0.1
  • =1.0.2
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 'env-stream' is a malicious typosquatting package impersonating the popular 'dotenv-flow' library. When imported, it fetches and executes arbitrary JavaScript code from a remote attacker-controlled server, resulting in remote code execution with full Node.js privileges on the host machine. Versions 1.0.1 and 1.0.2 of 'env-stream' are affected. There is no official patch or remediation guidance provided.

References

Community reviews

Loading reviews…