Skip to main content
MalwarePublished Updated

happy-dlscord.js (npm) · Malicious Code

Affects happy-dlscord.jsSource GCVE Database

0

Malicious package : remove happy-dlscord.js and rotate any secrets on hosts that installed it.

Data as of 20 Aug 2026, 14:16 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-4575

What to do

Remove happy-dlscord.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

ProductAffectedFixed in
npmhappy-dlscord.jsAffected
  • =14.16.3
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 'happy-dlscord.js' is a typosquatting malicious package that closely mimics the legitimate 'discord.js' library but includes injected code that exfiltrates Discord bot tokens to an attacker-controlled webhook. When the client emits the 'ready' event after login, the package sends the bot token along with identifying information to a hardcoded Discord webhook URL. This compromises the bot completely, allowing an attacker to read and send messages, modify the bot account, and maintain persistence. The affected version is exactly 14.16.3. Removal of the package alone may not be sufficient as the system could be fully compromised.

References

Community reviews

Loading reviews…