node-env-resolver-dotenvx (npm) · Malicious Code
Affects node-env-resolver-dotenvxSource GCVE Database
Malicious package : remove node-env-resolver-dotenvx and rotate any secrets on hosts that installed it.
Data as of 9 Jul 2026, 10:05 UTC
Malicious package
Published to npm · OSV MAL-2026-5264
What to do
Remove node-env-resolver-dotenvx 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 |
|---|---|---|
| npmnode-env-resolver-dotenvx | 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 node-env-resolver-dotenvx npm package versions 1.0.1 and 2.0.1 contain malicious code associated with the Miasma malware. This malware is a self-propagating worm that spreads through the npm registry by exploiting weaponized binding.gyp files to execute code during package installation, bypassing typical security inspections. Once executed, it attempts to steal credentials and OIDC tokens for cloud and registry services and propagates by compromising other packages or injecting backdoors into GitHub repositories.
References
- endorlabs.com/learn/malicious-payload-in-ai-sdk-ollama-npm-package (opens in a new tab)
- stepsecurity.io/blog/binding-gyp-npm-supply-chain-attack-spreads-like-worm (opens in a new tab)
- npmjs.com/package/node-env-resolver-dotenvx/v/2.0.1 (opens in a new tab)
- npmjs.com/package/node-env-resolver-dotenvx/v/1.0.1 (opens in a new tab)