esm-package (npm) · Malicious Code
Affects esm-packageSource GCVE Database
Malicious package : remove esm-package and rotate any secrets on hosts that installed it.
Data as of 29 Oct 2026, 22:53 UTC
Malicious package
Published to npm · OSV MAL-2025-41821
What to do
Remove esm-package 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 |
|---|---|---|
| npmesm-package | 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 'esm-package' npm package versions 7.0.1, 7.0.2, and 1.1.0 have been identified as malicious. This package communicates with domains linked to malicious activity and executes commands associated with harmful behavior. Any system with this package installed should be considered fully compromised, and all secrets and keys stored on the system must be rotated immediately from a secure, unaffected machine. Removing the package alone may not eliminate all malicious components due to potential full system compromise.