dotenv-preflight (npm) · Malicious Code
Affects dotenv-preflightSource GCVE Database
Malicious package : remove dotenv-preflight and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:23 UTC
Malicious package
Published to npm · OSV MAL-2026-17324
What to do
Remove dotenv-preflight 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 |
|---|---|---|
| npmdotenv-preflight | 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 dotenv-preflight@1.0.0 is a malicious package that masquerades as a dotenv-related utility but contains heavily obfuscated JavaScript code. This obfuscation is unusual for such tooling and is indicative of concealed malicious behavior, likely credential theft or data exfiltration. The package name is similar to legitimate dotenv packages, increasing the risk of accidental installation. The malicious code executes upon requiring the package, potentially compromising any project that includes it.