mfa-js (npm) · Malicious Code
Affects mfa-jsSource GCVE Database
Malicious package : remove mfa-js and rotate any secrets on hosts that installed it.
Data as of 9 Sep 2026, 20:53 UTC
Malicious package
Published to npm · OSV MAL-2026-15492
What to do
Remove mfa-js 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 |
|---|---|---|
| npmmfa-js | 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 mfa-js npm package versions 1.0.3 and 1.0.4 contain malicious code that downloads and executes a remote JavaScript payload on Windows systems. This payload is persistently installed using multiple mechanisms including registry run keys, environment variables, startup folder scripts, and scheduled tasks. The malicious code continuously updates itself by checking a remote URL and relaunching the payload, enabling ongoing remote code execution. Any system with this package installed or running should be considered fully compromised.