discord-mfa (npm) · Malicious Code
Affects discord-mfaSource GCVE Database
Malicious package : remove discord-mfa and rotate any secrets on hosts that installed it.
Data as of 9 Sep 2026, 21:37 UTC
Malicious package
Published to npm · OSV MAL-2026-15552
What to do
Remove discord-mfa 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 |
|---|---|---|
| npmdiscord-mfa | 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 discord-mfa npm package versions 3.0.0 and 3.0.1 contain malicious code that, when required on Windows systems, downloads and executes a hidden JavaScript payload. This payload is persistently installed through multiple mechanisms to ensure execution on every user logon. The package falsely advertises MFA functionality but contains no legitimate MFA features.