modern-events (npm) · Malicious Code
Affects modern-eventsSource GCVE Database
Malicious package : remove modern-events and rotate any secrets on hosts that installed it.
Data as of 25 Nov 2026, 11:58 UTC
Malicious package
Published to npm · OSV MAL-2026-2914
What to do
Remove modern-events 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 |
|---|---|---|
| npmmodern-events | 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 npm package 'modern-events' contains malicious code that exfiltrates local system information via Telegram and Slack when the EventEmitter.emit(...) function is used. It also downloads a Win64 backdoor (FaxedCook) to a specific path on the infected system. Systems with this package installed should be considered fully compromised, and all secrets and keys should be rotated from a different machine.