Skip to main content
MalwarePublished Updated

es6-migrator (npm) · Malicious Code

Affects es6-migratorSource GCVE Database

0

Malicious package : remove es6-migrator and rotate any secrets on hosts that installed it.

Data as of 25 Nov 2026, 11:28 UTC

Classification

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

ProductAffectedFixed in
npmes6-migratorAffected
  • =1.0.1
  • =1.0.0
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

Community reviews

Loading reviews…