es6-migrator (npm) · Malicious Code
Affects es6-migratorSource GCVE Database
Malicious package : remove es6-migrator and rotate any secrets on hosts that installed it.
Data as of 25 Nov 2026, 11:28 UTC
Malicious package
Published to npm · OSV MAL-2026-15553
What to do
Remove es6-migrator 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 |
|---|---|---|
| npmes6-migrator | 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 es6-migrator npm package version 1.0.1 contains malicious code that executes during installation. Its preinstall script runs beacon.js, which collects various installer identity fields and exfiltrates them via HTTP requests to a hardcoded IP address and, if that fails, via DNS queries to a controlled domain. This behavior is inconsistent with legitimate telemetry and is designed to bypass egress filtering. The package metadata misleadingly claims to be a 'dependency-confusion proof-of-concept' and 'authorized bug bounty', but these do not legitimize the data exfiltration.
References
- npmjs.com/package/es6-migrator/v/1.0.1 (opens in a new tab)
- npmjs.com/package/es6-migrator/v/1.0.0 (opens in a new tab)
- security.snyk.io/vuln/SNYK-JS-ES6MIGRATOR-19426854 (opens in a new tab)
- github.com/advisories/GHSA-72gm-4hgv-6x64 (opens in a new tab)
- github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/test-in-one/MAL-2026-15562.json (opens in a new tab)