Skip to main content
MalwarePublished

native-env (npm) · Malicious Code

Affects native-envSource GCVE Database

0

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

Data as of 29 Sep 2026, 04:47 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-17237

What to do

Remove native-env 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
npmnative-envAffected
  • =1.0.1
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 native-env@1.0.1 is a malicious package masquerading as a zero-dependency dotenv toolkit. On Windows, it executes attacker-controlled code immediately upon being required or run. It uses a JPEG file as a payload carrier to evade static scanners, writes a VBScript to the temp directory, and launches a PowerShell command with an encoded payload. The package is a typosquatting attempt targeting dotenv-family packages.

References

Community reviews

Loading reviews…