Skip to main content
MalwarePublished Updated

core-dotenv (npm) · Malicious Code

Affects core-dotenvSource GCVE Database

0

Malicious package : remove core-dotenv and rotate any secrets on hosts that installed it.

Data as of 20 Aug 2026, 16:59 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10631

What to do

Remove core-dotenv 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
npmcore-dotenvAffected
  • =1.4.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 core-dotenv npm package version 1.4.1 contains malicious code that fetches and executes remote code at runtime. This behavior occurs when calling its config() or get() functions, which trigger an obfuscated HTTPS request to a remote server. The response is executed with full Node.js privileges, allowing arbitrary code execution on the host. This package should be considered fully compromised, and any system using it is at high risk.

References

Community reviews

Loading reviews…